pysonic
pysonic copied to clipboard
Update pyo3 requirement from 0.25 to 0.27
Updates the requirements on pyo3 to permit the latest version.
Release notes
Sourced from pyo3's releases.
PyO3 0.27.1
This release fixes a clippy lint regression in PyO3 0.27.0, and exposes the
PySendResulttype (the return value fromBound<PyIterator>::send).Thank you to the following contributors for the improvements:
Changelog
Sourced from pyo3's changelog.
[0.27.1] - 2025-10-21
Fixed
- Fix
clippy:declare_interior_mutable_constwarning from#[pyfunction]. #5538- Expose
pyo3::types::PySendResultin public API. #5539[0.27.0] - 2025-10-19
Packaging
- Extend range of supported versions of
hashbrownoptional dependency to include version 0.16. #5428- Bump optional
num-bigintdependency minimum version to 0.4.4. #5471- Test against Python 3.14 final release. #5499
- Drop support for PyPy 3.9 and 3.10. #5516
- Provide a better error message when building an outdated PyO3 for a too-new Python version. #5519
Added
- Add
FromPyObjectOwnedas convenient trait bound forFromPyObjectwhen the data is not borrowed from Python. #4390- Add
Borrowed::extract, same asPyAnyMethods::extract, but does not restrict the lifetime by deref. #4390experimental-inspect: basic support for#[derive(IntoPyObject)](no struct fields support yet). #5365experimental-inspect: support#[pyo3(get, set)]and#[pyclass(get_all, set_all)]. #5370- Add
PyTypeCheck::classinfo_objectthat returns an object that can be used as parameter inisinstanceorissubclass. #5387- Implement
PyTypeInfoondatetime.*types even when the limited API is enabled. #5388- Implement
PyTypeInfoonPyIterator,PyMappingandPySequence. #5402- Implement
PyTypeInfoonPyCodewhen using the stable ABI. #5403- Implement
PyTypeInfoonPyWeakrefReferencewhen using the stable ABI. #5404- Add
pyo3::sync::RwLockExttrait, analogous topyo3::sync::MutexExtfor readwrite locks. #5435- Add
PyString::from_bytes. #5437- Implement
AsRef<[u8]>forPyBytes. #5445- Add
CastErrorandCastIntoError. #5468- Add
PyCapsuleMethods::pointer_checkedandPyCapsuleMethods::is_valid_checked. #5474- Add
Borrowed::cast,Borrowed::cast_exactandBorrowed::cast_unchecked. #5475- Add conversions for
jiff::civil::ISOWeekDate. #5478- Add conversions for
&Cstr,CstringandCow<Cstr>. #5482- add
#[pyclass(skip_from_py_object)]option, to opt-out of theFromPyObject: PyClass + Cloneblanket impl. #5488- Add
PyErr::add_note. #5489- Add
FromPyObjectimpl forCow<Path>&Cow<OsStr>. #5497- Add
#[pyclass(from_py_object)]pyclass option, to opt-in to the extraction of pyclasses by value (requiresClone). #5506Changed
- Rework
FromPyObjecttrait for flexibility and performance: #4390
- Add a second lifetime to
FromPyObject, to allow borrowing data from Python objects (e.g.&strfrom Pythonstr).- Replace
extract_boundwithextract, which takesBorrowed<'a, 'py, PyAny>.- Optimize
FromPyObjectimplementations forVec<u8>and[u8; N]frombytesandbytearray. #5244- Deprecate
#[pyfn]attribute. #5384- Fetch type name dynamically on cast errors instead of using
PyTypeCheck::NAME. #5387- Deprecate
PyTypeCheck::NAMEin favour ofPyTypeCheck::classinfo_objectwhich provides the type information at runtime. #5387
... (truncated)
Commits
9fbcf7crelease: 0.27.1fdfddc8Expose types::iterator::PySendResult in types module (#5539)a09540bupdate MSRV shields.io badge (#5540)1e6db53fixes #5537 -- silence a clippy warning on rust 1.83 (#5538)7525512release: 0.27.0 (#5520)b392013ci: install lychee stable usinginstall-action(#5528)f32ed83fix PyPyModule_ExecDef, PyPyModule_FromDefAndSpec2 definitions (#5529)02b54ebmake warning name distinct in warnings tests (#5532)999ee8aci: enable more tests on 3.14t (#5524)8f669e7attempt to improve unsupported Python version error (#5519)- 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)