Skip to content

chore: update pyo3 dependency to 0.29#10134

Merged
Jefffrey merged 2 commits into
apache:mainfrom
timsaucer:feat/pyo3-0.29
Jun 13, 2026
Merged

chore: update pyo3 dependency to 0.29#10134
Jefffrey merged 2 commits into
apache:mainfrom
timsaucer:feat/pyo3-0.29

Conversation

@timsaucer

Copy link
Copy Markdown
Member

Which issue does this PR close?

None, just a dependency update.

Rationale for this change

pyo3 has security vulnerability: https://rustsec.org/advisories/RUSTSEC-2026-0176.html

This PR updates to 0.29 to resolve this vulnerability.

What changes are included in this PR?

Update all crates that use the pyo3 dependency to 0.29

Are these changes tested?

Updated and run against existing integration test suite.

Are there any user-facing changes?

No

Bump pyo3 from 0.26 to 0.29 in arrow-pyarrow, arrow-pyarrow-testing, and
arrow-pyarrow-integration-testing.

Adapt to pyo3 0.29 API changes in arrow-pyarrow:
- `Bound::downcast` -> `cast`
- `PyCapsule::reference`/`pointer` removed -> `pointer_checked`
- `CapsuleName::to_str` removed -> `as_cstr().to_str()`
- `FromPyObject` now takes two lifetimes with an associated `Error` type
  and an `extract(Borrowed)` method

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
cargo install cargo-msrv resolves an unpinned transitive aws-runtime
dependency that fails to compile (E0282 type inference error), breaking
the MSRV job on all branches. --locked uses cargo-msrv's own pinned
Cargo.lock, which compiles cleanly.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Comment on lines +121 to +123
# --locked uses cargo-msrv's pinned Cargo.lock; without it an unpinned transitive
# dep (aws-runtime) resolves to a version that fails to compile (E0282)
run: if which cargo-msrv ; then echo "using existing cargo-msrv binary" ; else cargo install cargo-msrv --locked ; fi

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a drive by change to using the locked version to resolve this CI failure: https://github.com/apache/arrow-rs/actions/runs/27400807826/job/80978193449

@timsaucer timsaucer changed the title feat: Update pyo3 dependency to 0.29 chore: Update pyo3 dependency to 0.29 Jun 12, 2026
@timsaucer timsaucer changed the title chore: Update pyo3 dependency to 0.29 chore: update pyo3 dependency to 0.29 Jun 12, 2026
@Jefffrey Jefffrey merged commit 11a58ac into apache:main Jun 13, 2026
40 of 41 checks passed
@Jefffrey

Copy link
Copy Markdown
Contributor

thanks for the fix to msrv too

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.

2 participants