python-zstandard icon indicating copy to clipboard operation
python-zstandard copied to clipboard

Update PyO3 to latest version

Open ngoldbaum opened this issue 9 months ago • 1 comments

Right now PyO3 is set to 0.21.2 in Cargo.toml but the latest version is 0.23.4. PyO3 0.22 finalized the gil refs migration and it looks like there are some minor things that need to be fixed. You'll be able to turn on 3.13 CI for Rust once this is done.

PyO3 0.23 added support for the free-threaded build, so you'll also need to update to 0.23 to support the free-threaded build with the rust backend.

I'm now a PyO3 maintainer and helped ship 0.23, please let me know if you need a hand with any of this.

Originally posted by @indygreg in https://github.com/indygreg/python-zstandard/pull/243#discussion_r1948231218

ngoldbaum avatar Feb 19 '25 21:02 ngoldbaum

I think based on this assistance would be very much appreciated if you have time Nathan!

ofek avatar Apr 17 '25 23:04 ofek

main is now on PyO3 0.24. We also enabled Rust on Python 3.13. And on Linux and Windows ARM CI (which are now using native ARM runners).

I didn't attempt the IntoPyObject migration yet and could use some help with that.

I also possibly created some future bugs around free-threaded support. But I suppose those will get teased out when we actually implement free-threaded support.

indygreg avatar Aug 17 '25 01:08 indygreg

main is now on PyO3 0.24. We also enabled Rust on Python 3.13. And on Linux and Windows ARM CI (which are now using native ARM runners).

I didn't attempt the IntoPyObject migration yet and could use some help with that.

I also possibly created some future bugs around free-threaded support. But I suppose those will get teased out when we actually implement free-threaded support.

pyo3 is now on 0.25: especially useful for improved free-threading support in 3.14!

clin1234 avatar Aug 17 '25 15:08 clin1234

Yeah, we need to tackle IntoPyObject so we can upgrade to 0.25 and unblock 3.14 support.

I'm putting out the zstandard 0.24.0 release today. But I'd love to get free-threading landed and follow up with a 0.25.0 release as soon as it is ready.

indygreg avatar Aug 17 '25 17:08 indygreg

#273 should close this

clin1234 avatar Aug 22 '25 23:08 clin1234