sudachi.rs
sudachi.rs copied to clipboard
update pyo3 to v0.27 for py314, py314t support
Hi team! Recently, a version of pyo3 supporting CPython 3.14 was released, so I attempted to resolve issue #306.
I'm referencing past PRs(#284, #293), but please let me know if there are any shortcomings ;)
resolve #306
migration guide: https://pyo3.rs/v0.27.1/migration.html
replace deprecated or renamed pyo3 methods:
-
from 0.23 to 0.24
- nothing
-
from 0.24 to 0.25
- nothing
-
from 0.25 to 0.26
- replaced
allow_threads->detach - replaced
PyObject->Py<PyAny> - replaced
GILOnceCell->PyOnceLock
- replaced
-
from 0.26 to 0.27
- replaced
downcast->cast
- replaced
other updates:
- updated release workflow to support CPython 3.14 and 3.14t.
- fixed typos
- resolved
elided lifetime has a namewarnings
note:
- I have verified that the tests in
python/build_and_test.shpass when using CPython 3.14 on my local PC(M2 Macbook Pro). - I referenced the following past pull requests, but I'm not entirely sure if the GitHub Actions changes are appropriate. I'd greatly appreciate it if you could carefully check that part for me!🙏
- #284
- #293