pkg-inventory: scanner script to discover all apt/apk/pypi packages from repo #159
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Create a single script (
dev/scripts/pkg_inventory.py) that parses the entire repo and emits a canonical JSON manifest of every package installed across all Dockerfiles, pyproject.toml, uv.lock, CI workflows, and shell scripts.Scope
apt-get install/apk addfrom all Dockerfilesdependenciesand[dependency-groups]from pyproject.tomluv addcommands in Dockerfiles (notebooks)data/pkg-manifest.jsonwith sections{"apt": [...], "apk": [...], "pypi": [...], "ci_tools": [...]}Acceptance
uv run python dev/scripts/pkg_inventory.pyproducesdata/pkg-manifest.json