fix: add Python 3.9-3.13 CI testing and abi3 wheels#57
Merged
Conversation
Enable abi3 stable ABI in pyproject.toml for universal Python wheels. Add test-python matrix for versions 3.9-3.13 in CI workflow. Update release workflow to build abi3 wheels targeting Python 3.9+. Fixes #55
Merged
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.
Problem
Issue #55 reported lack of Python 3.13 support. While
pyproject.tomldeclares compatibility with Python 3.9-3.13 in classifiers, the CI only tested Python 3.11, and release builds only produced wheels for Python 3.11. Users with other Python versions had to build from source.Solution
This PR adds full Python 3.9-3.13 support using the abi3 stable ABI strategy:
abi3feature inpyproject.tomlto activatepyo3/abi3-py39['3.9', '3.10', '3.11', '3.12', '3.13']Changes
Modified files (4):
.github/workflows/ci.yml: Added Python version matrix to test-python job.github/workflows/release.yml: Changed maturin build from python3.11 to python3.9crates/exarch-python/pyproject.toml: Added "abi3" to maturin featuresCHANGELOG.md: Added entry under [Unreleased]Technical Details
abi3 strategy: Instead of building 35 wheels (7 platforms x 5 Python versions), we build 7 universal abi3 wheels (one per platform) compatible with Python 3.9-3.13. The performance overhead of abi3 is negligible for this I/O-bound library.
CI impact:
Testing
Validation Reports
Related Issues
Fixes #55
Related: #56 (follow-up for ci-success gate improvement)