Repository navigation
Build and verify Python releases before publishing to PyPI - #5
Merged
Merged
Conversation
Build a wheel and source distribution on Python 3.12. Check metadata and install the wheel without upload in PRs and manual builds; grant PyPI OIDC only to the release upload job. Declare Python 3.9 as the minimum supported runtime.
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.
The PyPI workflow still uses Python 3.8 on
ubuntu-latest, which has nosetup-pythonbuild on Ubuntu 26.04. Build a wheel and source distribution on Python 3.12, check their metadata, and install the wheel before publishing. Pull requests and manual runs stop after validation and artifact upload to GitHub Actions. Only a published stable GitHub release can use the PyPI Trusted Publisher, whose repository and workflow identity are unchanged.Package metadata now requires Python 3.9, the oldest supported runtime in the test matrix and the minimum needed by the connector’s type annotations.
Validated locally with
v2.0.0: both formats passedtwine check --strict; the wheel installed and imported on Python 3.12 and the source distribution on Python 3.9. Both containpolypheny==2.0.0metadata and require Prism API 2.2. No package was uploaded to PyPI.