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
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:
@@ -144,8 +144,12 @@ def _flat_apt_packages(manifest: dict) -> list[str]:
|
|||||||
def _flat_pypi_packages(manifest: dict) -> list[dict]:
|
def _flat_pypi_packages(manifest: dict) -> list[dict]:
|
||||||
seen: set[str] = set()
|
seen: set[str] = set()
|
||||||
pkgs: list[dict] = []
|
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 section in ("project_prod", "project_dev", "notebook", "dockerfile_adhoc"):
|
||||||
for pkg in manifest.get("pypi", {}).get(section, []):
|
for pkg in manifest.get("pypi", {}).get(section, []):
|
||||||
|
if pkg["name"] == local_project:
|
||||||
|
continue
|
||||||
if pkg["name"] not in seen:
|
if pkg["name"] not in seen:
|
||||||
seen.add(pkg["name"])
|
seen.add(pkg["name"])
|
||||||
pkgs.append(pkg)
|
pkgs.append(pkg)
|
||||||
|
|||||||
Reference in New Issue
Block a user