Add vendored bundle runtime integration#349
Draft
anth-volk wants to merge 8 commits into
Draft
Conversation
This was referenced May 11, 2026
e5f7bfa to
dc14da2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #350
Depends on PolicyEngine/policyengine-bundles#4. The
policyengine-bundlesPR must merge first, and thev4.4.3bundle release assets must exist before this repo's Versioning job can publishpolicyengine==4.4.3.Implements the policyengine.py side of the bundle completion plan.
Changes:
pe.bundleruntime APIs and strict installed-package validation viaPOLICYENGINE_BUNDLE_STRICT=1.pe.us.bundle/pe.uk.bundleand attaches bundle version/digest/profile provenance to managed microsimulations.policyengine-bundlesarchive before bumpingpyproject.tomlto the Towncrier release version.policyenginewheel URL and SHA256 after the wheel exists.Release ordering:
policyengine-bundlescreates the pre-releasev4.4.3bundle without a future.pywheel hash.policyengine.pyVersioning vendors that exact bundle and bumps to4.4.3.policyengine.pyPublish verifies the bundle assets, publishes the wheel, then writespolicyengine-wheel-attestation-4.4.3.jsonto the GitHub release.Validation:
uv run ruff check .github tests src scriptsuv run ruff format --check .github tests src scriptsuv run pytest --noconftest tests/test_policyengine_bundle.py tests/test_vendor_release_bundle.py tests/test_policyengine_wheel_attestation.py tests/test_bump_version.py -quv run python .github/check_bundle_consistency.pyLocal limitation:
--noconftestto isolate the release tooling.