Skip to content

Add .py-owned pip-native stack metadata#425

Draft
anth-volk wants to merge 4 commits into
mainfrom
codex/pip-native-policyengine-stacks
Draft

Add .py-owned pip-native stack metadata#425
anth-volk wants to merge 4 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-stack.toml as the source of truth for official stack package pins and citation metadata.
  • Generate stack extras and packaged stack JSON from the manifest.
  • Add policyengine stack show, policyengine stack verify, and policyengine stack cite.
  • Add stack-only update/export scripts, release assets, docs, CI verification, and focused tests.
  • Include installable UK data in the data, full, uk-data, and uk-full extras while keeping the UK data artifact version as separate citation metadata.

Validation

  • python scripts/generate_stack_artifacts.py --check
  • POLICYENGINE_SKIP_COUNTRY_IMPORTS=1 uv run pytest --noconftest tests/test_stack.py
  • uv run ruff check src/policyengine/stack.py src/policyengine/cli.py src/policyengine/__init__.py scripts/generate_stack_artifacts.py scripts/prepare_stack_update.py scripts/export_stack_release_assets.py tests/test_stack.py
  • uv run ruff format --check src/policyengine/stack.py src/policyengine/cli.py src/policyengine/__init__.py scripts/generate_stack_artifacts.py scripts/prepare_stack_update.py scripts/export_stack_release_assets.py tests/test_stack.py
  • POLICYENGINE_SKIP_COUNTRY_IMPORTS=1 uv run policyengine stack verify --extra models --check-uris
  • uv pip install --python /Users/administrator/miniforge3/bin/python3.13 --dry-run -e ".[uk-full]"

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