Skip to content

Commit 3ca7aef

Browse files
Jess Wassmeta-codesync[bot]
authored andcommitted
Upgrade PyO3 from 0.26 to 0.27
Summary: X-link: https://github.com/mslsrc/prod_inference/pull/5794 X-link: meta-pytorch/monarch#4543 Upgrade PyO3 to 0.27 and fix upgrade-time API breakages: - FromPyObject trait shape changed: - FromPyObject<'py> / extract_bound(&Bound<'py, PyAny>) - becomes FromPyObject<'a, 'py> with type Error and extract(Borrowed<'a, 'py, PyAny>) - extract() error typing is stricter: - extraction no longer always type-infers as PyErr cleanly in nested PyResult contexts. - Stack adds explicit closure return types and .map_err(Into::into) where needed. - Downcast APIs are replaced/deprecated: - downcast, downcast_bound, downcast_into, downcast_unchecked, DowncastError become cast, cast_bound, cast_into, cast_unchecked, CastError - PyCapsule pointer access changed: - old code used reference() or raw pointer() plus manual checks. - stack moves callsites toward pointer_checked(Some(c"...")), is_valid_checked, and CStr capsule names. Also aligns required crates with pins and overlays: - bumps pyo3, pyo3-async-runtimes, pyo3-build-config, pythonize, and numpy to 0.27. - updates pyo3-python-tracing-subscriber to a compatible rev. - pins/patches Arrow crates to the git rev with arrow-pyarrow PyO3 0.27 support - adds a pyo3-build-config 0.27 overlay/fixup so the vendored crate works with our disabled-buildscript/cross-compile setup. Reviewed By: dtolnay, yinghai Differential Revision: D109086625 fbshipit-source-id: a2d1f29792ad00833244f8bcccfa885b899132eb
1 parent 7d33a27 commit 3ca7aef

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Cargo.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
[patch.crates-io]
22
abomonation = { git = "https://github.com/markbt/abomonation", rev = "0f43346d2afa2aedc64d61f3f4273e8d1e454642" }
3+
arrow = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
4+
arrow-arith = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
5+
arrow-array = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
6+
arrow-buffer = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
7+
arrow-cast = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
8+
arrow-csv = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
9+
arrow-data = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
10+
arrow-ipc = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
11+
arrow-json = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
12+
arrow-ord = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
13+
arrow-pyarrow = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
14+
arrow-row = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
15+
arrow-schema = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
16+
arrow-select = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
17+
arrow-string = { version = "57", git = "https://github.com/apache/arrow-rs", rev = "fcfe2b4160f6c99107dc89edecdfcd3ff9a4c867" }
318
audio_streams = { git = "https://github.com/google/crosvm", rev = "299c1e7c3d5a1b98106212c20f58b9fdb7b1b1ea" }
419
backtrace = { git = "https://github.com/rust-lang/backtrace-rs", rev = "df979dcf80027eb047d7bb9e0874710c15009f31" }
520
base64urlsafedata = { git = "https://github.com/kanidm/webauthn-rs.git", rev = "d278c56adfa39a0723c79bdcd461644194bc5138" }

0 commit comments

Comments
 (0)