diff --git a/scripts/package.py b/scripts/package.py index a705cda..8c432ff 100644 --- a/scripts/package.py +++ b/scripts/package.py @@ -27,6 +27,10 @@ def main() -> int: return 1 dirty = bool(git("status", "--porcelain").strip()) names = sorted(set(git("ls-files", "-z", "--cached", "--others", "--exclude-standard").split("\0")) - {""}) + # pplus-library (library/) is a submodule: take the files its checkout tracks, so the zip tests on its own + if (ROOT / "library" / ".git").exists(): + tracked = subprocess.run(["git", "ls-files", "-z"], cwd=ROOT / "library", check=True, capture_output=True, text=True).stdout + names += [f"library/{n}" for n in tracked.split("\0") if n] names = [n for n in names if (ROOT / n).is_file()] out_dir = ROOT / "package" out_dir.mkdir(exist_ok=True)