Skip to content

Add .py-owned bundle installer and metadata#425

Merged
anth-volk merged 16 commits into
mainfrom
codex/pip-native-policyengine-stacks
Jun 23, 2026
Merged

Add .py-owned bundle installer and metadata#425
anth-volk merged 16 commits into
mainfrom
codex/pip-native-policyengine-stacks

Conversation

@anth-volk

@anth-volk anth-volk commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Fixes #424

Summary

  • Add policyengine bundle install/status/verify/manifest with .py as the bundle-version authority.
  • Install the selected bundle's first-party package scaffold with pip into an explicit --venv or --python target.
  • Download certified country datasets from manifest-pinned HF/GCS URIs, move replaced files into .policyengine-bundle-backups, and write a .policyengine-bundle.json receipt.
  • Add bundle_version and data_releases to the generated manifest, publish policyengine-bundle-* release assets, and keep temporary stack-named aliases.
  • Document the uvx --from policyengine policyengine bundle install --venv .venv path.

Validation

  • POLICYENGINE_SKIP_COUNTRY_IMPORTS=1 uv run pytest --noconftest tests/test_stack.py tests/test_bundle.py -q
  • uv run ruff check scripts/export_stack_release_assets.py src/policyengine/bundle.py src/policyengine/cli.py scripts/generate_stack_artifacts.py tests/test_stack.py tests/test_bundle.py
  • uv run ruff format --check scripts/export_stack_release_assets.py src/policyengine/bundle.py src/policyengine/cli.py scripts/generate_stack_artifacts.py tests/test_stack.py tests/test_bundle.py
  • git diff --check -- .github/workflows/push.yaml README.md changelog.d/stack-system.added.md docs/release-bundles.md docs/stacks.md scripts/export_stack_release_assets.py scripts/generate_stack_artifacts.py src/policyengine/cli.py src/policyengine/data/stack/manifest.json src/policyengine/bundle.py tests/test_stack.py tests/test_bundle.py

@anth-volk anth-volk changed the title Add .py-owned pip-native stack metadata Add .py-owned bundle installer and metadata Jun 22, 2026
@anth-volk anth-volk force-pushed the codex/pip-native-policyengine-stacks branch from 9dc67ba to 0bb35c0 Compare June 22, 2026 17:26
@anth-volk anth-volk marked this pull request as ready for review June 23, 2026 19:03
@anth-volk anth-volk merged commit 4485a4f into main Jun 23, 2026
13 checks passed
@anth-volk anth-volk deleted the codex/pip-native-policyengine-stacks branch June 23, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement .py-owned pip-native PolicyEngine stacks

1 participant