Skip to content

[50.0.x] Bump pyo3 to 0.29.2 - #15731

Merged
reaperhulk merged 2 commits into
50.0.xfrom
claude/trusting-allen-ytdziz-pyo3
Sep 30, 2026
Merged

reaperhulk merged 2 commits into
50.0.xfrom
claude/trusting-allen-ytdziz-pyo3

Conversation

@alex

@alex alex commented Sep 30, 2026

Copy link
Copy Markdown
Member

Updates Cargo.lock on the 50.0.x branch from pyo3 0.29.0 to 0.29.2 (along with pyo3-build-config, pyo3-ffi, pyo3-macros, pyo3-macros-backend). 0.29.2 fixes a 0.29 regression that broke linking under Cygwin / MSYS2.

Addresses #15543.

This is one of a series for a 50.0.2 release: this PR, the 3.15t abi3t wheel backport, then the release prep PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FAY1qMQzUfataGR3NBtbsH


Generated by Claude Code

PyO3 0.29.2 fixes a 0.29 regression that broke linking under Cygwin /
MSYS2. Refs #15543.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FAY1qMQzUfataGR3NBtbsH
@alex alex linked an issue Sep 30, 2026 that may be closed by this pull request
…y-cffi (#15585)

* Fix nightly cargo unused_dependencies warning in cryptography-cffi

The new `cargo::unused_dependencies` lint (stabilized alongside
`[lints.cargo]` in Rust 1.100) flags `openssl-sys` in cryptography-cffi
because nothing in the crate references it. The dependency is required
though: its build script reads `DEP_OPENSSL_INCLUDE` to compile the
CFFI-generated C code against the right OpenSSL headers, and Cargo only
exports a `links` crate's metadata to its immediate dependents.

Mark the dependency as intentional with `use openssl_sys as _;`.

* Shorten the openssl-sys dependency comment

(cherry picked from commit b3f5a12)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FAY1qMQzUfataGR3NBtbsH

alex commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

linux (3.14, rust,tests, beta) failed because of the base branch, not the pyo3 bump. Current beta Rust has the new cargo::unused_dependencies lint, which warns about openssl-sys in cryptography-cffi. That warning ends up in the cargo test --message-format=json output and breaks the nox session's JSON parsing. I reproduced it locally on beta with plain 50.0.x.

Main already fixed this in #15585. I've cherry-picked that fix into this PR (and into #15732 and #15733). With it, the beta rust session passes locally.


Generated by Claude Code

@reaperhulk
reaperhulk enabled auto-merge (squash) September 30, 2026 11:47
@reaperhulk
reaperhulk merged commit 70c881c into 50.0.x Sep 30, 2026
69 checks passed
@reaperhulk
reaperhulk deleted the claude/trusting-allen-ytdziz-pyo3 branch September 30, 2026 11:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Bump pyo3 to v0.29.2 in Cargo.lock for next v50.0.x

3 participants