Repository navigation
Build wheels with cibuildwheel; publish to PyPI by trusted publishing - #45
Merged
Merged
Conversation
pycatch22 shipped only an sdist, so installing it needed a C compiler (on Windows, Visual Studio's build tools). The Wheels workflow builds wheels with cibuildwheel v4.3.1 for CPython 3.9-3.15 on Linux (x86_64 and aarch64, manylinux and musllinux), macOS (Intel and Apple Silicon) and Windows, and tests each against catch22's expected outputs. Python 3.8 (unsupported by cibuildwheel 4) installs from the sdist; free-threaded builds are skipped for now. On a published GitHub release it uploads the wheels and sdist to PyPI by trusted publishing (needs the publisher set up on PyPI, environment "pypi"); it can also be run by hand with publish ticked to add wheels to an existing release, skipping files already on PyPI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
pycatch22 has only ever shipped an sdist, so installing it compiles the C, which needs a C compiler. On Windows that means Visual Studio's build tools, and without them
pip install pycatch22fails. This adds pre-built wheels.Wheels workflow (
.github/workflows/wheels.yml, config inpyproject.toml):Publishing (trusted publishing): on a published GitHub release, the workflow uploads the wheels and sdist to PyPI with
pypa/gh-action-pypi-publish, with no API token. This needs a one-time setup on PyPI: pycatch22 → Manage → Publishing → add a GitHub publisher with ownerDynamicsAndNeuralSystems, repositorypycatch22, workflowwheels.ymland environmentpypi. It can also be run by hand (Actions → Wheels → Run workflow, with publish ticked) to add wheels to an existing release such as 1.0.1. Files already on PyPI, like the 1.0.1 sdist, are skipped.CI result (first run, all green): 56 wheels (6.2 MB in total): CPython 3.9 to 3.15 × manylinux and musllinux on x86_64 and aarch64, macOS x86_64 and arm64, and Windows 64- and 32-bit. Every wheel passed all 1036 tests, including the macOS Intel wheels, which run under Rosetta on the Apple Silicon runner.
🤖 Generated with Claude Code