Separate PyPI and bundle release assets#435
Merged
Merged
Conversation
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 #434
Summary
This keeps bundle release sidecars out of the PyPI upload directory during the main-branch publish workflow.
Changes included:
release-assets/instead ofdist/.release-assets/.pypa/gh-action-pypi-publishwithpackages-dir: dist.release-assets/.skip_existingPyPI action input toskip-existing.4.18.1.Why
The prior publish run passed bundle package metadata verification, but PyPI upload failed because
dist/contained both Python distributions and bundle sidecar files. The PyPI action scans its package directory and rejects non-distribution files such aspolicyengine-bundle-4.18.1.citation.txt.Validation
.github/workflows/push.yamlwith Python YAML loading.python scripts/export_bundle_release_assets.py --dist-dir /tmp/policyengine-release-assets-check..venv/bin/python -m build --outdir /tmp/policyengine-pypi-dist-checkwith network access for isolated build requirements./tmp/policyengine-pypi-dist-checkcontains only the wheel and sdist./tmp/policyengine-release-assets-check.git diff --check.Note: a focused local pytest command was interrupted because pytest bootstrap hung while importing the full US model parameter tree in this local environment. The touched code path is workflow-only; the export script itself was run directly.