fix: mirror sync also skips local project name
All checks were successful
CI / skinny-install (aco) (push) Successful in 48s
CI / skinny-install (api) (push) Successful in 28s
CI / skinny-install (bcda) (push) Successful in 25s
CI / skinny-install (bib) (push) Successful in 26s
CI / skinny-install (bls) (push) Successful in 20s
CI / skinny-install (ccw) (push) Successful in 25s
CI / skinny-install (cli) (push) Successful in 27s
CI / skinny-install (cms) (push) Successful in 25s
CI / skinny-install (conf) (push) Successful in 27s
CI / skinny-install (pfs) (push) Successful in 28s
CI / skinny-install (rex) (push) Successful in 24s
CI / lint-test (push) Successful in 6m0s
Deploy / build-scan-report (push) Successful in 3m3s

Belt-and-suspenders: even if the manifest still contains a
self-reference to "stack", the sync script now filters it out
before building the pip download requirements list.
This commit is contained in:
kert
2026-03-24 22:45:42 -04:00
parent 1e709afc31
commit 6d291334ca

View File

@@ -144,8 +144,12 @@ def _flat_apt_packages(manifest: dict) -> list[str]:
def _flat_pypi_packages(manifest: dict) -> list[dict]:
seen: set[str] = set()
pkgs: list[dict] = []
# Skip the local project — it can't be downloaded from PyPI
local_project = "stack"
for section in ("project_prod", "project_dev", "notebook", "dockerfile_adhoc"):
for pkg in manifest.get("pypi", {}).get(section, []):
if pkg["name"] == local_project:
continue
if pkg["name"] not in seen:
seen.add(pkg["name"])
pkgs.append(pkg)