PyO3 / pyo3-async-runtimes

PyO3-based bridges between Python and Rust async runtimes
Other
47 stars 9 forks source link

pyo3 0.22 Support #11

Closed Zheaoli closed 1 month ago

Zheaoli commented 1 month ago

🐛 Bug Reports

https://github.com/apache/opendal/issues/5224

In some third party library, we are trying to support Python 3.13. we need update the PyO3 to a version larger than 0.22

For now, https://crates.io/crates/pyo3-async-runtimes/0.21.0/dependencies this lib is lock pyo3 to 0.21

So, Should we consider update the pyo3-async-runtimes to 0.22.x support?

cpu commented 1 month ago

:wave: I was also looking into this recently.

0.22 support was merged to main in https://github.com/PyO3/pyo3-async-runtimes/pull/7, however the documentation still needs updating and the Cargo.toml version bumped for a proper release (see https://github.com/PyO3/pyo3-async-runtimes/pull/9).

You could use a Cargo patch in the meantime:

[patch.crates-io]
# TODO(XXX): remove once pyo3-async-runtimes cuts a 0.22 release.
pyo3-async-runtimes  = { git = 'https://github.com/PyO3/pyo3-async-runtimes.git', rev = '284bd36d0426a988026f878cae22abdb179795e6' }
Zheaoli commented 1 month ago

May I ask when will the project release the next version? I think I can not lock the version by using git hash in the upstream repo.

kylebarron commented 1 month ago

You should be able to use the git hash, at least until you plan to publish to crates.io next.

Otherwise, I think we all hope for a new release soon

Xuanwo commented 1 month ago

You should be able to use the git hash, at least until you plan to publish to crates.io next.

Yes, those are exactly our cases.

Is there anything we can help with?

davidhewitt commented 1 month ago

Release is now published! I'm sure there's plenty of things which can be tweaked / improved in this new fork, however I think best to get a working version for PyO3 0.22 out so that people can get on with upgrading and we can iterate from there :)

Xuanwo commented 1 month ago

Release is now published! I'm sure there's plenty of things which can be tweaked / improved in this new fork, however I think best to get a working version for PyO3 0.22 out so that people can get on with upgrading and we can iterate from there :)

That's really great, thank you for your efforts!