Skip to content

Commit

Permalink
Upgrade pyo3 to 0.20 (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
messense authored Dec 12, 2023
1 parent 7dfb268 commit aea183c
Show file tree
Hide file tree
Showing 37 changed files with 338 additions and 247 deletions.
2 changes: 1 addition & 1 deletion guide/src/distribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ or providing any Windows Python library files.

```toml
[dependencies]
pyo3 = { version = "0.19.0", features = ["extension-module", "generate-import-lib"] }
pyo3 = { version = "0.20.0", features = ["extension-module", "generate-import-lib"] }
```

It uses an external [`python3-dll-a`](https://docs.rs/python3-dll-a/latest/python3_dll_a/) crate to
Expand Down
2 changes: 1 addition & 1 deletion guide/src/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ crate-type = ["cdylib"]
rand = "0.8.4"

[dependencies.pyo3]
version = "0.19.0"
version = "0.20.0"
# "abi3-py38" tells pyo3 (and maturin) to build using the stable ABI with minimum Python version 3.8
features = ["abi3-py38"]
```
Expand Down
2 changes: 1 addition & 1 deletion src/templates/Cargo.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ crate-type = ["cdylib"]

[dependencies]
{% if bindings == "pyo3" -%}
pyo3 = "0.19.0"
pyo3 = "0.20.0"
{% elif bindings == "rust-cpython" -%}
cpython = "0.7.1"
{% elif bindings == "uniffi" -%}
Expand Down
2 changes: 1 addition & 1 deletion test-crates/lib_with_disallowed_lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ crate-type = ["cdylib"]

[dependencies]
libz-sys = { version = "1.1.2", default-features = false }
pyo3 = { version = "0.19.0", features = ["extension-module"] }
pyo3 = { version = "0.20.0", features = ["extension-module"] }
2 changes: 1 addition & 1 deletion test-crates/lib_with_path_dep/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ crate-type = ["cdylib"]

[dependencies]
# Don't use the macros feature, which makes compilation much faster
pyo3 = { version = "0.19.0", default-features = false, features = ["extension-module"] }
pyo3 = { version = "0.20.0", default-features = false, features = ["extension-module"] }
some_path_dep = { path = "../some_path_dep" }
39 changes: 23 additions & 16 deletions test-crates/pyo3-abi3-without-version/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 test-crates/pyo3-abi3-without-version/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["konstin <[email protected]>"]
edition = "2021"

[dependencies]
pyo3 = { version = "0.19.0", features = ["abi3", "extension-module"] }
pyo3 = { version = "0.20.0", features = ["abi3", "extension-module"] }

[lib]
name = "pyo3_abi3_without_version"
Expand Down
39 changes: 23 additions & 16 deletions test-crates/pyo3-bin/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 test-crates/pyo3-bin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
pyo3 = { version = "0.19.0", features = ["auto-initialize"] }
pyo3 = { version = "0.20.0", features = ["auto-initialize"] }
39 changes: 23 additions & 16 deletions test-crates/pyo3-feature/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 test-crates/pyo3-feature/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ version = "0.7.3"
edition = "2021"

[dependencies]
pyo3 = { version = "0.19.0", optional = true }
pyo3 = { version = "0.20.0", optional = true }
Loading

0 comments on commit aea183c

Please sign in to comment.