-
-
Notifications
You must be signed in to change notification settings - Fork 36
Update to PyO3 0.22 #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to PyO3 0.22 #66
Conversation
As it turns out, simply enabling I will see, if I can come up with a better way. Switched to draft until this is resolved. |
This removes all code that relies on deprecated PyO3 functionality that has now been moved behind the `gil-refs` feature and removes intermittent use of the feature.
Second try. I'm sorry for the seesaw and hope that the change makes more sense now. |
I personally think that as long as Pyo3 still has the pre-bound methods, pythonize should probably have them as well. What about adding a gil-refs feature to pythonize that gates the old methods and enables that feature inside Pyo3? On the other hand I can also understand waning to reduce the maintenance burden earlier in this smaller helper crate. |
I would agree, adding a
Also, this would extend the CI effort a bit, as we would have to ensure building all feature "combinations" does work. Anyone else thoughts on this? |
up |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #66 +/- ##
==========================================
+ Coverage 81.25% 83.83% +2.58%
==========================================
Files 3 3
Lines 1152 1169 +17
Branches 1152 1169 +17
==========================================
+ Hits 936 980 +44
+ Misses 167 140 -27
Partials 49 49 ☔ View full report in Codecov by Sentry. |
Sorry for the long delay here. Thanks for the PR and getting this moving! I think it's ok to remove the gil-refs methods as we'll be removing them in the next PyO3 release anyway. I'll get this merged and released ASAP. Have pushed some commits to finish off & fix conflicts. |
Thanks for your reply and no worries about the delay. I guess, most of us are doing this in our spare time. ❤️ If you run into anything that needs further work, just let me now, I'm happy to support. |
This bumps the PyO3 dependency to the new 0.22 release.
As
PyNativeType
(used insrc/de.rs
) has now been moved behind thegil-refs
feature, I added that feature to the list of PyO3 feature dependencies.As
Clone
(used intests/test_custom_types.rs
) has now been moved behind thepy-clone
feature, I added that feature to the list of PyO3 feature dependencies for development.However, if you would rather go down a different route with the upstream changes than just adding the required features (e.g. removing the corresponding deprecated functions instead), I'm happy to change the PR accordingly.