Pin pplus-core as the git submodule core/
core/ now lives in its own repository (pplus-core, extracted from this one with its history), so the site takes it at one commit and moves the pointer on purpose, in a commit that says what it brings. - .gitmodules: core at ../pplus-core.git, beside this repository on the same host, tracking main. - scripts/package.py: the shared zip includes the files core's checkout tracks, so it builds without a second download. Gate: site 110 pass against core c5157fc; pplus-core from a fresh clone 306 pass (the Dafny check skips until dafny-fetch), corpus status --strict passes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FgvbRdoEheAHqsRmr2WuKZ
This commit is contained in:
1517 files changed
+13
-997095
No files matched your search
+8
-2
@@ -3,7 +3,7 @@
|
||||
|
||||
pixi run package # writes package/programming-plus-<commit>.zip
|
||||
|
||||
Nothing git ignores goes in: no .DS_Store, __pycache__, scratch/, dist/, site/, node_modules/ or
|
||||
pplus-core (the core/ submodule) goes in as its checkout tracks it. Nothing git ignores goes in: no .DS_Store, __pycache__, scratch/, dist/, site/, node_modules/ or
|
||||
.pixi/. Files are stored under a top folder named programming-plus/, as the shared zips were.
|
||||
Standard library only, like the corpus pipeline.
|
||||
"""
|
||||
@@ -27,7 +27,13 @@ def main() -> int:
|
||||
return 1
|
||||
dirty = bool(git("status", "--porcelain").strip())
|
||||
names = sorted(set(git("ls-files", "-z", "--cached", "--others", "--exclude-standard").split("\0")) - {""})
|
||||
names = [n for n in names if (ROOT / n).is_file()]
|
||||
# pplus-core (core/) is a submodule: take the files its checkout tracks, so the zip builds on its own.
|
||||
subs = git("config", "-f", ".gitmodules", "--get-regexp", r"\.path$").split() if (ROOT / ".gitmodules").exists() else []
|
||||
for sub in subs[1::2]:
|
||||
if (ROOT / sub / ".git").exists():
|
||||
tracked = subprocess.run(["git", "ls-files", "-z"], cwd=ROOT / sub, check=True, capture_output=True, text=True).stdout
|
||||
names += [f"{sub}/{n}" for n in tracked.split("\0") if n]
|
||||
names = sorted(n for n in set(names) if (ROOT / n).is_file())
|
||||
out_dir = ROOT / "package"
|
||||
out_dir.mkdir(exist_ok=True)
|
||||
out = out_dir / f"programming-plus-{commit}{'-dirty' if dirty else ''}.zip"
|
||||
|
||||
Reference in new issue
Block a user