ci: build wheels for all supported Python versions and platforms#3
Merged
Conversation
Prior to this, `maturin-action` was invoked without an explicit interpreter list, so it only built one cp version per OS (cp312 on mac/win, cp38 on linux). Combined with `macos-latest` now being arm64-only, the v0.9.3 and v0.10.0 releases shipped just three wheels — leaving Intel-Mac and current-Python Linux users unable to install. - Add `macos-13` (Intel) alongside `macos-latest` (arm64). - Pass `-i python3.10 python3.11 python3.12 python3.13` so maturin builds wheels for every interpreter installed by `setup-python`. - Add a `build-sdist` job so platforms not covered by binary wheels can still fall back to a source build. After merging, tag a new release (e.g. v0.10.1) to re-publish with complete wheel coverage; the `optimization/` repo can then bump its pins to `>=0.9.3` without breaking developers on Intel Macs / Linux+cp312.
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.
Summary
Fixes the wheel-coverage gap that blocks
optimization/from bumping itsrao-algorithmspin past 0.6.1.Problem: v0.9.3 and v0.10.0 on PyPI only shipped three wheels:
cp312-macosx_11_0_arm64cp312-win_amd64cp38-manylinux_x86_64No Intel-Mac wheels, no Linux py310/311/312 wheels, no sdist. Pip on Intel Mac + py312 can't install any 0.9+ release.
Root causes in the workflow:
macos-latestrunner is now arm64; no Intel macOS runner in the matrix.maturin-actionhad no-iinterpreter list, so it built for whicheverpython3happened to be on PATH per OS.Fix:
macos-13(Intel) alongsidemacos-latest(arm64).-i python3.10 python3.11 python3.12 python3.13to maturin.build-sdistjob.Test plan
v0.10.1).pip install rao-algorithms>=0.9.3should succeed.optimization/bumping allrao-algorithmspins to>=0.9.3.