Repository navigation
Fix build for PyO3 0.28 and maturin 1.x - #32
Merged
Merged
Conversation
Port the module function to the Bound API (the &PyModule form was removed in PyO3 0.23), drop maturin flags removed in 1.x (--no-sdist, --universal2), give each job's wheel artifact a unique name, and let the sdist build with maturin 1.x. 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.
Before: every CI run fails on Linux, macOS and Windows, including Dependabot's #30 and #31.
src/lib.rsstill uses the&PyModulemodule signature that PyO3 removed in 0.23, and the workflow passes maturin flags that maturin 1.x no longer accepts.After: the extension builds again on PyO3 0.28, and the three build jobs can upload their wheels side by side.
How: the module function takes
&Bound<'_, PyModule>. The Windows and macOS jobs drop--no-sdistand swap--universal2for--target universal2-apple-darwin. Each job uploadswheels-<os>(upload-artifact v4+ rejects three uploads under one name) and the release job downloads them withpattern: wheels-*. The build-system pin moves frommaturin<0.13to>=1.0,<2.0. Built and imported a Linux wheel locally with maturin 1.16.0. Once this merges, #30 and #31 should go green after a rebase.Generated by Claude Code