Skip to content

Commit

Permalink
pyembed: upgrade PyO3 to 0.16.5
Browse files Browse the repository at this point in the history
This fixes a nasty bug on Python 3.10 leading to runtime crashes
and wrong behavior. (PyO3/pyo3#2370)
  • Loading branch information
indygreg committed May 15, 2022
1 parent 170cc70 commit d12e9b8
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 25 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyembed-bench/Cargo.toml
Expand Up @@ -11,7 +11,7 @@ repository = "https://github.com/indygreg/PyOxidizer.git"
[dependencies]
anyhow = "1.0"
once_cell = "1.8"
pyo3 = "0.16.4"
pyo3 = "0.16.5"
slog = "2.7"
tempfile = "3.2"
zip = { version = "0.6", default-features = false, features = ["deflate"] }
Expand Down
4 changes: 2 additions & 2 deletions pyembed/Cargo.toml
Expand Up @@ -42,7 +42,7 @@ path = "../python-oxidized-importer"
default-features = false

[dependencies.pyo3]
version = "0.16.4"
version = "0.16.5"
default-features = false
features = ["macros"]

Expand All @@ -52,7 +52,7 @@ path = "../python-packaging"
default-features = false

[build-dependencies]
pyo3-build-config = { version = "0.16.4", features = ["resolve-config"] }
pyo3-build-config = { version = "0.16.5", features = ["resolve-config"] }

[dev-dependencies]
pathdiff = "0.2"
Expand Down
2 changes: 1 addition & 1 deletion pyoxidizer/Cargo.toml
Expand Up @@ -44,7 +44,7 @@ itertools = "0.10"
linked-hash-map = "0.5"
once_cell = "1.7"
path-dedot = "3.0"
pyo3-build-config = "0.16.4"
pyo3-build-config = "0.16.5"
remove_dir_all = "0.7"
rustc_version = "0.4"
semver = "1.0"
Expand Down
3 changes: 3 additions & 0 deletions pyoxidizer/docs/pyoxidizer_history.rst
Expand Up @@ -46,6 +46,9 @@ Bug Fixes
prevented them from working without specifying any arguments. This regression
was introduced in 0.20 with the upgrade of the ``clap`` crate to version 3.1.
(#523)
* PyO3 Rust crates upgraded from 0.16.4 to 0.16.5. The upgrade fixes compatibility
issues with Python 3.10 that could lead to runtime crashes or incorrect behavior
in many configurations.

New Features
^^^^^^^^^^^^
Expand Down
20 changes: 10 additions & 10 deletions pyoxidizer/src/new-project-cargo.lock
Expand Up @@ -287,9 +287,9 @@ dependencies = [

[[package]]
name = "pyo3"
version = "0.16.4"
version = "0.16.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cd86513975ed69bf3fb5d4a286cdcda66dbc56f84bdf4832b6c82b459f4417b2"
checksum = "1e6302e85060011447471887705bb7838f14aba43fcb06957d823739a496b3dc"
dependencies = [
"cfg-if",
"indoc",
Expand All @@ -303,29 +303,29 @@ dependencies = [

[[package]]
name = "pyo3-build-config"
version = "0.16.4"
version = "0.16.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "450e2e56cbfa67bbe224cef93312b7a76d81c471d4e0c459d24d4bfaf3d75b53"
checksum = "b5b65b546c35d8a3b1b2f0ddbac7c6a569d759f357f2b9df884f5d6b719152c8"
dependencies = [
"once_cell",
"target-lexicon",
]

[[package]]
name = "pyo3-ffi"
version = "0.16.4"
version = "0.16.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36e653782972eba2fe86e8319ade54b97822c65fb1ccc1e116368372faa6ebc9"
checksum = "c275a07127c1aca33031a563e384ffdd485aee34ef131116fcd58e3430d1742b"
dependencies = [
"libc",
"pyo3-build-config",
]

[[package]]
name = "pyo3-macros"
version = "0.16.4"
version = "0.16.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "317ce641f29f4e10e75765630bf4d28b2008612226fcc80b27f334fee8184d0f"
checksum = "284fc4485bfbcc9850a6d661d627783f18d19c2ab55880b021671c4ba83e90f7"
dependencies = [
"proc-macro2",
"pyo3-macros-backend",
Expand All @@ -335,9 +335,9 @@ dependencies = [

[[package]]
name = "pyo3-macros-backend"
version = "0.16.4"
version = "0.16.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "59342fce58a05983688e8d81209d06f67f0fcb1597253ef63b390b2da2417522"
checksum = "53bda0f58f73f5c5429693c96ed57f7abdb38fdfc28ae06da4101a257adb7faf"
dependencies = [
"proc-macro2",
"quote",
Expand Down
2 changes: 1 addition & 1 deletion python-oxidized-importer/Cargo.toml
Expand Up @@ -26,7 +26,7 @@ path = "../python-packaging"
default-features = false

[dependencies.pyo3]
version = "0.16.4"
version = "0.16.5"
features = ["macros"]

[dependencies.tugger-file-manifest]
Expand Down
2 changes: 2 additions & 0 deletions python-oxidized-importer/docs/oxidized_importer_history.rst
Expand Up @@ -23,3 +23,5 @@ Changelog
Previously, the implementation of this method didn't work properly on 3.10+.
* Added ``name`` property to :py:class:`OxidizedDistribution`.
* Added ``_normalized_name`` property to :py:class:`OxidizedDistribution`.
* PyO3 Rust crate upgraded to 0.16.5. This gets us better compatibility with
Python 3.10.

0 comments on commit d12e9b8

Please sign in to comment.