Skip to content

Update PyO3 to 0.29#978

Open
musicinmybrain wants to merge 1 commit into
python-pendulum:masterfrom
musicinmybrain:pyo3-0.29
Open

Update PyO3 to 0.29#978
musicinmybrain wants to merge 1 commit into
python-pendulum:masterfrom
musicinmybrain:pyo3-0.29

Conversation

@musicinmybrain

@musicinmybrain musicinmybrain commented Jun 30, 2026

Copy link
Copy Markdown

Pull Request Check List

  • Added tests for changed code. N/A
  • Updated documentation for changed code. N/A

See https://pyo3.rs/v0.29.0/changelog.html, and note that PyO3 0.29 fixes https://rustsec.org/advisories/RUSTSEC-2026-0176.html and https://rustsec.org/advisories/RUSTSEC-2026-0177.html.

Note also that since PyO3 0.29, the generate-import-lib feature is deprecated and no longer has any effect; it is present only for backward-compatibility. See PyO3/pyo3#5866.

The source-code changes avoids the following warning:

warning: use of deprecated associated constant `pyo3::impl_::deprecated::HasAutomaticFromPyObject::<true>::MSG`: The `FromPyObject` implementation for `#[pyclass]` types which implement `Cl
one` is changing to an opt-in option. Use `#[pyclass(from_py_object)]` to opt-in to the `FromPyObject` derive now, or `#[pyclass(skip_from_py_object)]` to skip the `FromPyObject` implementation.
 --> src/python/types/timezone.rs:5:1
  |
5 | #[pyclass(module = "_pendulum", extends = PyTzInfo)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(deprecated)]` on by default
  = note: this warning originates in the attribute macro `pyclass` (in Nightly builds, run with -Z macro-backtrace for more info)

@codspeed-hq

codspeed-hq Bot commented Jul 1, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 1 untouched benchmark


Comparing musicinmybrain:pyo3-0.29 (cc32cba) with master (cbab60c)

Open in CodSpeed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant