Update pyo3 requirement from 0.21 to 0.23
Updates the requirements on pyo3 to permit the latest version.
Release notes
Sourced from pyo3's releases.
PyO3 0.23.1
This is a re-release of PyO3 0.23.0 with corrections to fix docs.rs builds.
Thanks
@yotamofekfor the reports & fixes!
Changelog
Sourced from pyo3's changelog.
[0.23.1] - 2024-11-16
Re-release of 0.23.0 with fixes to docs.rs build.
[0.23.0] - 2024-11-15
Packaging
- Drop support for PyPy 3.7 and 3.8. #4582
- Extend range of supported versions of
hashbrownoptional dependency to include version 0.15. #4604- Bump minimum version of
eyreoptional dependency to 0.6.8. #4617- Bump minimum version of
hashbrownoptional dependency to 0.14.5. #4617- Bump minimum version of
indexmapoptional dependency to 2.5.0. #4617- Bump minimum version of
num-complexoptional dependency to 0.4.6. #4617- Bump minimum version of
chrono-tzoptional dependency to 0.10. #4617- Support free-threaded Python 3.13t. #4588
Added
- Add
IntoPyObject(fallible) conversion trait to convert from Rust to Python values. #4060- Add
#[pyclass(str="<format string>")]option to generate__str__based on aDisplayimplementation or format string. #4233- Implement
PartialEqforBound<'py, PyInt>withu8,u16,u32,u64,u128,usize,i8,i16,i32,i64,i128andisize. #4317- Implement
PartialEq<f64>andPartialEq<f32>forBound<'py, PyFloat>. #4348- Add
as_superandinto_supermethods forBound<T: PyClass>. #4351- Add FFI definitions
PyCFunctionFastandPyCFunctionFastWithKeywords#4415- Add FFI definitions for
PyMutexon Python 3.13 and newer. #4421- Add
PyDict::locked_for_eachto iterate efficiently on freethreaded Python. #4439- Add FFI definitions
PyObject_GetOptionalAttr,PyObject_GetOptionalAttrString,PyObject_HasAttrWithError,PyObject_HasAttrStringWithError,Py_CONSTANT_*constants,Py_GetConstant,Py_GetConstantBorrowed, andPyType_GetModuleByDefon Python 3.13 and newer. #4447- Add FFI definitions for the Python critical section API available on Python 3.13 and newer. #4477
- Add derive macro for
IntoPyObject. #4495- Add
Borrowed::as_ptr. #4520- Add FFI definition for
PyImport_AddModuleRef. #4529- Add
PyAnyMethods::try_iter. #4553- Add
pyo3::sync::with_critical_section, a wrapper around the Python Critical Section API added in Python 3.13. #4587- Add
#[pymodule(gil_used = false)]option to declare that a module supports the free-threaded build. #4588- Add
PyModule::gil_usedmethod to declare that a module supports the free-threaded build. #4588- Add FFI definition
PyDateTime_CAPSULE_NAME. #4634- Add
PyMappingProxytype to represent themappingproxyPython class. #4644- Add FFI definitions
PyList_ExtendandPyList_Clear. #4667- Add derive macro for
IntoPyObjectRef. #4674- Add
pyo3::sync::OnceExtandpyo3::sync::OnceLockExttraits. #4676Changed
- Prefer
IntoPyObjectoverIntoPy<Py<PyAny>>>for#[pyfunction]and#[pymethods]return types. #4060- Report multiple errors from
#[pyclass]and#[pyo3(..)]attributes. #4243- Nested declarative
#[pymodule]are automatically treated as submodules (noPyInit_entrypoint is created). #4308- Deprecate
PyAnyMethods::is_ellipsis(Py::is_ellipsiswas deprecated in PyO3 0.20). #4322- Deprecate
PyLongin favor ofPyInt. #4347- Rename
IntoPyDict::into_py_dict_boundtoIntoPyDict::into_py_dict. #4388
... (truncated)
Commits
5585240release: 0.23.164008e4docs: Don't try to buildgil-refsfeature (#4712)48771deFix migration guide URL (#4711)c0f756cfixup docs for packaging (#4710)8e9b497release: 0.23.0 (#4651)e7ec730docs: extend documentation onSyncand thread-safety (#4695)71100dbdocs: add narrative docs for BoundObject (#4703)ee229cfsimplify a few uses ofBoundObject(#4706)147f7effixclippy::wildcard_importfiring on#[pyclass](#4707)f3eb624silencenon_upper_case_globalslint on__match_args__(#4705)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.
If you change your mind, just re-open this PR and I'll resolve any conflicts on it.