Skip to content

Commit

Permalink
Update PyO3 to 0.22
Browse files Browse the repository at this point in the history
  • Loading branch information
prehner committed Oct 5, 2024
1 parent 397fba4 commit d7b500d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
7 changes: 4 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ exclude = ["/.github/*", "*.ipynb", "/docs"]
rustdoc-args = ["--html-in-header", "./src/docs-header.html"]

[dependencies]
ndarray = { version = "0.15", features = ["approx-0_5"] }
ndarray = { version = "0.16", features = ["approx"] }
approx = "0.5"
num-traits = "0.2"
typenum = "1.17"
pyo3 = { version = "0.21", optional = true }
numpy = { version = "0.21", optional = true }
pyo3 = { version = "0.22", optional = true }
# numpy = { version = "0.21", optional = true }
numpy = { git = "https://github.com/JRRudy1/rust-numpy", branch = "pyo3-0.22.0", optional = true }

[features]
default = []
Expand Down
4 changes: 2 additions & 2 deletions example/extend_quantity/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ name = "extend_quantity"
crate-type = ["cdylib"]

[dependencies]
pyo3 = { version = "0.21.0", features = ["extension-module", "abi3-py39"] }
pyo3 = { version = "0.22.0", features = ["extension-module", "abi3-py39"] }
quantity = { version = "*", path = "../../", features = ["python"] }
ndarray = "0.15"
ndarray = "0.16"
7 changes: 4 additions & 3 deletions si-units/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,13 @@ crate-type = ["cdylib"]

[dependencies]
ang = "0.6"
ndarray = "0.15"
pyo3 = { version = "0.21", features = [
ndarray = "0.16"
pyo3 = { version = "0.22", features = [
"extension-module",
"abi3",
"abi3-py37",
] }
numpy = "0.21"
# numpy = "0.21"
numpy = { git = "https://github.com/JRRudy1/rust-numpy", branch = "pyo3-0.22.0" }
thiserror = "1.0"
regex = "1.10"

0 comments on commit d7b500d

Please sign in to comment.