Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update all non-major dependencies #26

Merged
merged 1 commit into from
Apr 2, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Apr 2, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
pyo3 dependencies minor 0.20 -> 0.21
rust patch 1.77.0 -> 1.77.1

Release Notes

pyo3/pyo3 (pyo3)

v0.21.1

Compare Source

Added
  • Implement Send and Sync for PyBackedStr and PyBackedBytes. #​4007
  • Implement Clone, Debug, PartialEq, Eq, PartialOrd, Ord and Hash implementation for PyBackedBytes and PyBackedStr, and Display for PyBackedStr. #​4020
  • Add import_exception_bound! macro to import exception types without generating GIL Ref functionality for them. #​4027
Changed
  • Emit deprecation warning for uses of GIL Refs as #[setter] function arguments. #​3998
  • Add #[inline] hints on many Bound and Borrowed methods. #​4024
Fixed
  • Handle #[pyo3(from_py_with = "")] in #[setter] methods #​3995
  • Allow extraction of &Bound in #[setter] methods. #​3998
  • Fix some uncovered code blocks emitted by #[pymodule], #[pyfunction] and #[pyclass] macros. #​4009
  • Fix typo in the panic message when a class referenced in pyo3::import_exception! does not exist. #​4012
  • Fix compile error when using an async #[pymethod] with a receiver and additional arguments. #​4015

v0.21.0

Compare Source

Added
  • Add support for GraalPy (24.0 and up). #​3247
  • Add PyMemoryView type. #​3514
  • Allow async fn in for #[pyfunction] and #[pymethods], with the experimental-async feature. #​3540 #​3588 #​3599 #​3931
  • Implement PyTypeInfo for PyEllipsis, PyNone and PyNotImplemented. #​3577
  • Support #[pyclass] on enums that have non-unit variants. #​3582
  • Support chrono feature with abi3 feature. #​3664
  • FromPyObject, IntoPy<PyObject> and ToPyObject are implemented on std::duration::Duration #​3670
  • Add PyString::to_cow. Add Py<PyString>::to_str, Py<PyString>::to_cow, and Py<PyString>::to_string_lossy, as ways to access Python string data safely beyond the GIL lifetime. #​3677
  • Add Bound<T> and Borrowed<T> smart pointers as a new API for accessing Python objects. #​3686
  • Add PyNativeType::as_borrowed to convert "GIL refs" to the new Bound smart pointer. #​3692
  • Add FromPyObject::extract_bound method, to migrate FromPyObject implementations to the Bound API. #​3706
  • Add gil-refs feature to allow continued use of the deprecated GIL Refs APIs. #​3707
  • Add methods to PyAnyMethods for binary operators (add, sub, etc.) #​3712
  • Add chrono-tz feature allowing conversion between chrono_tz::Tz and zoneinfo.ZoneInfo #​3730
  • Add FFI definition PyType_GetModuleByDef. #​3734
  • Conversion between std::time::SystemTime and datetime.datetime #​3736
  • Add Py::as_any and Py::into_any. #​3785
  • Add PyStringMethods::encode_utf8. #​3801
  • Add PyBackedStr and PyBackedBytes, as alternatives to &str and &bytes where a Python object owns the data. #​3802 #​3991
  • Allow #[pymodule] macro on Rust mod blocks, with the experimental-declarative-modules feature. #​3815
  • Implement ExactSizeIterator for set and frozenset iterators on abi3 feature. #​3849
  • Add Py::drop_ref to explicitly drop a `Py`` and immediately decrease the Python reference count if the GIL is already held. #​3871
  • Allow #[pymodule] macro on single argument functions that take &Bound<'_, PyModule>. #​3905
  • Implement FromPyObject for Cow<str>. #​3928
  • Implement Default for GILOnceCell. #​3971
  • Add PyDictMethods::into_mapping, PyListMethods::into_sequence and PyTupleMethods::into_sequence. #​3982
Changed
  • PyDict::from_sequence now takes a single argument of type &PyAny (previously took two arguments Python and PyObject). #​3532
  • Deprecate Py::is_ellipsis and PyAny::is_ellipsis in favour of any.is(py.Ellipsis()). #​3577
  • Split some PyTypeInfo functionality into new traits HasPyGilRef and PyTypeCheck. #​3600
  • Deprecate PyTryFrom and PyTryInto traits in favor of any.downcast() via the PyTypeCheck and PyTypeInfo traits. #​3601
  • Allow async methods to accept &self/&mut self #​3609
  • FromPyObject for set types now also accept frozenset objects as input. #​3632
  • FromPyObject for bool now also accepts NumPy's bool_ as input. #​3638
  • Add AsRefSource associated type to PyNativeType. #​3653
  • Rename .is_true to .is_truthy on PyAny and Py<PyAny> to clarify that the test is not based on identity with or equality to the True singleton. #​3657
  • PyType::name is now PyType::qualname whereas PyType::name efficiently accesses the full name which includes the module name. #​3660
  • The Iter(A)NextOutput types are now deprecated and __(a)next__ can directly return anything which can be converted into Python objects, i.e. awaitables do not need to be wrapped into IterANextOutput or Option any more. Option can still be used as well and returning None will trigger the fast path for __next__, stopping iteration without having to raise a StopIteration exception. #​3661
  • Implement FromPyObject on chrono::DateTime<Tz> for all Tz, not just FixedOffset and Utc. #​3663
  • Add lifetime parameter to PyTzInfoAccess trait. For the deprecated gil-ref API, the trait is now implemented for &'py PyTime and &'py PyDateTime instead of PyTime and PyDate. #​3679
  • Calls to __traverse__ become no-ops for unsendable pyclasses if on the wrong thread, thereby avoiding hard aborts at the cost of potential leakage. #​3689
  • Include PyNativeType in pyo3::prelude. #​3692
  • Improve performance of extract::<i64> (and other integer types) by avoiding call to __index__() converting the value to an integer for 3.10+. Gives performance improvement of around 30% for successful extraction. #​3742
  • Relax bound of FromPyObject for Py<T> to just T: PyTypeCheck. #​3776
  • PySet and PyFrozenSet iterators now always iterate the equivalent of iter(set). (A "fast path" with no noticeable performance benefit was removed.) #​3849
  • Move implementations of FromPyObject for &str, Cow<str>, &[u8] and Cow<[u8]> onto a temporary trait FromPyObjectBound when gil-refs feature is deactivated. #​3928
  • Deprecate GILPool, Python::with_pool, and Python::new_pool. #​3947
Removed
  • Remove all functionality deprecated in PyO3 0.19. #​3603
Fixed
  • Match PyPy 7.3.14 in removing PyPy-only symbol Py_MAX_NDIMS in favour of PyBUF_MAX_NDIM. #​3757
  • Fix segmentation fault using datetime types when an invalid datetime module is on sys.path. #​3818
  • Fix non_local_definitions lint warning triggered by many PyO3 macros. #​3901
  • Disable PyCode and PyCode_Type on PyPy: PyCode_Type is not exposed by PyPy. #​3934

v0.20.3

Compare Source

Packaging
  • Add portable-atomic dependency. #​3619
  • Check maximum version of Python at build time and for versions not yet supported require opt-in to the abi3 stable ABI by the environment variable PYO3_USE_ABI3_FORWARD_COMPATIBILITY=1. #​3821
Fixed
  • Use portable-atomic to support platforms without 64-bit atomics. #​3619
  • Fix compilation failure with either feature enabled without experimental-inspect enabled. #​3834

v0.20.2

Compare Source

Packaging
  • Pin pyo3 and pyo3-ffi dependencies on pyo3-build-config to require the same patch version, i.e. pyo3 0.20.2 requires exactly pyo3-build-config 0.20.2. #​3721
Fixed
  • Fix compile failure when building pyo3 0.20.0 with latest pyo3-build-config 0.20.X. #​3724
  • Fix docs.rs build. #​3722

v0.20.1

Compare Source

Added
  • Add optional either feature to add conversions for either::Either<L, R> sum type. #​3456
  • Add optional smallvec feature to add conversions for smallvec::SmallVec. #​3507
  • Add take and into_inner methods to GILOnceCell #​3556
  • #[classmethod] methods can now also receive Py<PyType> as their first argument. #​3587
  • #[pyfunction(pass_module)] can now also receive Py<PyModule> as their first argument. #​3587
  • Add traverse method to GILProtected. #​3616
  • Added abi3-py312 feature #​3687
Fixed
  • Fix minimum version specification for optional chrono dependency. #​3512
  • Silenced new clippy::unnecessary_fallible_conversions warning when using a Py<Self> self receiver. #​3564
rust-lang/rust (rust)

v1.77.1

Compare Source

===========================


Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot added the dependencies label Apr 2, 2024
@renovate renovate bot enabled auto-merge (rebase) April 2, 2024 04:52
@renovate renovate bot merged commit 679c2ca into master Apr 2, 2024
8 of 9 checks passed
@renovate renovate bot deleted the renovate/all-minor-patch branch April 2, 2024 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants