Repository navigation
ci: build Python wheels and publish them to PyPI on release - #33
Merged
Merged
Conversation
A published GitHub release now builds abi3 wheels for Python 3.10 and later (Linux x86_64 and aarch64 on manylinux_2_28, macOS arm64 and x86_64, Windows x64) and an sdist from the committed Cargo.lock. Each wheel is installed and runs the Python tests on the oldest supported Python, then everything is attached to the release with build provenance and published to PyPI as wsi-rs through trusted publishing in the `pypi` environment. The release tag must match the wsi-rs-python version. Pull requests that touch the bindings or this workflow build and test the same wheels without publishing. The Python README, now the PyPI page, leads with `pip install wsi-rs`, and pyproject gains classifiers and project URLs.
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.
Adds
.github/workflows/python-wheels.ymlso a release ships the Python bindings to PyPI aswsi-rs, andpip install wsi-rsworks.What it does
Cargo.lock. The wheels cover:wsi-rs-python/tests.wsi-rs-pythonversion;pypienvironment. No token is stored.wsi-rs-python/**or this workflow, and on manual runs: builds and tests only. This PR runs it.Actions are pinned by commit SHA, using releases at least two weeks old:
The only event input used in a shell step is the release tag, passed through
env.The Python README, which becomes the PyPI project page, now leads with
pip install wsi-rs.pyproject.tomlgains keywords, classifiers, and Issues and Changelog URLs.Setup needed before the first release
wsi-rs. The name is currently free:frames-sgwsi-rspython-wheels.ymlpypipypienvironment. Optionally add yourself as a required reviewer, so each PyPI publish waits for approval.Verification
actionlintpasses on the workflow.python-wheelsrun builds and tests all five wheels and the sdist.