Skip to content

⬆️ Update Rust crate pyo3 to 0.25.0 and pyo3-log to 0.12.4#968

Merged
edenhaus merged 3 commits intodevfrom
renovate/pyo3-0.x
May 19, 2025
Merged

⬆️ Update Rust crate pyo3 to 0.25.0 and pyo3-log to 0.12.4#968
edenhaus merged 3 commits intodevfrom
renovate/pyo3-0.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 15, 2025

This PR contains the following updates:

Package Type Update Change
pyo3 dependencies minor 0.24.1 -> 0.25.0
pyo3-log dependencies patch 0.12.3 -> 0.12.4

Release Notes

pyo3/pyo3 (pyo3)

v0.25.0

Compare Source

Packaging
  • Support Python 3.14.0b1. #​4811
  • Bump supported GraalPy version to 24.2. #​5116
  • Add optional bigdecimal dependency to add conversions for bigdecimal::BigDecimal. #​5011
  • Add optional time dependency to add conversions for time types. #​5057
  • Remove cfg-if dependency. #​5110
  • Add optional ordered_float dependency to add conversions for ordered_float::NotNan and ordered_float::OrderedFloat. #​5114
Added
  • Add initial type stub generation to the experimental-inspect feature. #​3977
  • Add #[pyclass(generic)] option to support runtime generic typing. #​4926
  • Implement OnceExt & MutexExt for parking_lot & lock_api. Use the new extension traits by enabling the arc_lock, lock_api, or parking_lot cargo features. #​5044
  • Implement From/Into for Borrowed<T> -> Py<T>. #​5054
  • Add PyTzInfo constructors. #​5055
  • Add FFI definition PY_INVALID_STACK_EFFECT. #​5064
  • Implement AsRef<Py<PyAny>> for Py<T>, Bound<T> and Borrowed<T>. #​5071
  • Add FFI definition PyModule_Add and compat::PyModule_Add. #​5085
  • Add FFI definitions Py_HashBuffer, Py_HashPointer, and PyObject_GenericHash. #​5086
  • Support #[pymodule_export] on const items in declarative modules. #​5096
  • Add #[pyclass(immutable_type)] option (on Python 3.14+ with abi3, or 3.10+ otherwise) for immutable type objects. #​5101
  • Support #[pyo3(rename_all)] support on #[derive(IntoPyObject)]. #​5112
  • Add PyRange wrapper. #​5117
Changed
  • Enable use of datetime types with abi3 feature enabled. #​4970
  • Deprecate timezone_utc in favor of PyTzInfo::utc. #​5055
  • Reduce visibility of some CPython implementation details: #​5064
    • The FFI definition PyCodeObject is now an opaque struct on all Python versions.
    • The FFI definition PyFutureFeatures is now only defined up until Python 3.10 (it was present in CPython headers but unused in 3.11 and 3.12).
  • Change PyAnyMethods::is to take other: &Bound<T>. #​5071
  • Change Py::is to take other: &Py<T>. #​5071
  • Change PyVisit::call to take T: Into<Option<&Py<T>>>. #​5071
  • Expose PyDateTime_DATE_GET_TZINFO and PyDateTime_TIME_GET_TZINFO on PyPy 3.10 and later. #​5079
  • Add #[track_caller] to with_gil and with_gil_unchecked. #​5109
  • Use std::thread::park() instead of libc::pause() or sleep(9999999). #​5115
Removed
  • Remove all functionality deprecated in PyO3 0.23. #​4982
  • Remove deprecated IntoPy and ToPyObject traits. #​5010
  • Remove private types from pyo3-ffi (i.e. starting with _Py) which are not referenced by public APIs: _PyLocalMonitors, _Py_GlobalMonitors, _PyCoCached, _PyCoLineInstrumentationData, _PyCoMonitoringData, _PyCompilerSrcLocation, _PyErr_StackItem. #​5064
  • Remove FFI definition PyCode_GetNumFree (PyO3 cannot support it due to knowledge of the code object). #​5064
  • Remove AsPyPointer trait. #​5071
  • Remove support for the deprecated string form of from_py_with. #​5097
  • Remove FFI definitions of private static variables: _PyMethodWrapper_Type, _PyCoroWrapper_Type, _PyImport_FrozenBootstrap, _PyImport_FrozenStdlib, _PyImport_FrozenTest, _PyManagedBuffer_Type, _PySet_Dummy, _PyWeakref_ProxyType, and _PyWeakref_CallableProxyType. #​5105
  • Remove FFI definitions PyASCIIObjectState, PyUnicode_IS_ASCII, PyUnicode_IS_COMPACT, and PyUnicode_IS_COMPACT_ASCII on Python 3.14 and newer. #​5133
Fixed
  • Correctly pick up the shared state for conda-based Python installation when reading information from sysconfigdata. #​5037
  • Fix compile failure with #[derive(IntoPyObject, FromPyObject)] when using #[pyo3()] options recognised by only one of the two derives. #​5070
  • Fix various compile errors from missing FFI definitions using certain feature combinations on PyPy and GraalPy. #​5091
  • Fallback on backports.zoneinfo for python <3.9 when converting timezones into python. #​5120
vorner/pyo3-log (pyo3-log)

v0.12.4

Compare Source

  • Allow pyo3 0.25.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented May 15, 2025

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path Cargo.toml --workspace
    Updating crates.io index
error: failed to select a version for `pyo3-ffi`.
    ... required by package `pyo3 v0.23.3`
    ... which satisfies dependency `pyo3 = ">=0.23, <0.24"` of package `pyo3-log v0.12.1`
    ... which satisfies dependency `pyo3-log = "^0.12.1"` of package `deebot_client v0.0.0 (/tmp/renovate/repos/github/DeebotUniverse/client.py)`
versions that meet the requirements `=0.23.3` are: 0.23.3

the package `pyo3-ffi` links to the native library `python`, but it conflicts with a previous package which links to `python` as well:
package `pyo3-ffi v0.25.0`
    ... which satisfies dependency `pyo3-ffi = "=0.25.0"` of package `pyo3 v0.25.0`
    ... which satisfies dependency `pyo3 = "^0.25.0"` of package `deebot_client v0.0.0 (/tmp/renovate/repos/github/DeebotUniverse/client.py)`
Only one package in the dependency graph may specify the same links value. This helps ensure that only one copy of a native library is linked in the final binary. Try to adjust your dependencies so that only one package uses the `links = "python"` value. For more information, see https://doc.rust-lang.org/cargo/reference/resolver.html#links.

failed to select a version for `pyo3-ffi` which could resolve this conflict

@edenhaus
Copy link
Copy Markdown
Member

Needs a new version of pyo3-log with vorner/pyo3-log#64 merged

@renovate renovate Bot force-pushed the renovate/pyo3-0.x branch 3 times, most recently from 16fba1f to afc71a2 Compare May 16, 2025 20:07
@renovate renovate Bot force-pushed the renovate/pyo3-0.x branch from afc71a2 to 66200b5 Compare May 17, 2025 20:20
@edenhaus edenhaus changed the title ⬆️ Update Rust crate pyo3 to 0.25.0 ⬆️ Update Rust crate pyo3 to 0.25.0 and pyo3-log to 0.12.4 May 19, 2025
@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented May 19, 2025

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@edenhaus edenhaus enabled auto-merge (squash) May 19, 2025 07:51
@codecov
Copy link
Copy Markdown

codecov Bot commented May 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.63%. Comparing base (52de50e) to head (0e3e9b6).
Report is 2 commits behind head on dev.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #968   +/-   ##
=======================================
  Coverage   93.63%   93.63%           
=======================================
  Files         129      129           
  Lines        4999     4999           
  Branches      325      325           
=======================================
  Hits         4681     4681           
  Misses        258      258           
  Partials       60       60           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 19, 2025

CodSpeed Performance Report

Merging #968 will not alter performance

Comparing renovate/pyo3-0.x (0e3e9b6) with dev (52de50e)

Summary

✅ 6 untouched benchmarks

@edenhaus edenhaus merged commit 22a0b3e into dev May 19, 2025
27 checks passed
@edenhaus edenhaus deleted the renovate/pyo3-0.x branch May 19, 2025 07: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.

1 participant