File tree Expand file tree Collapse file tree 4 files changed +8
-11
lines changed
Expand file tree Collapse file tree 4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -87,20 +87,17 @@ jobs:
8787 run : pip install maturin poetry toml
8888 - name : Create an isolated example directory
8989 run : cp -r examples/simple-extension/ ../simple-extension-msrv
90- - name : Edit Cargo.toml
90+ - name : Edit Cargo.toml and change the path of rust-numpy
9191 run : |
9292 import toml
9393 cargo_toml = toml.load("Cargo.toml")
94+ cargo_toml["dependencies"]["numpy"]["path"] = "../rust-numpy"
9495 cargo_toml["dependencies"]["ndarray"] = "0.13.1"
9596 cargo_toml["dependencies"]["num-complex"] = "0.2.4"
96- cargo_toml["dependencies"]["numpy"]["path"] = "../rust-numpy"
9797 with open("Cargo.toml", "w") as f:
9898 toml.dump(cargo_toml, f)
9999 working-directory : ../simple-extension-msrv
100100 shell : python
101- - name : Remove ndarray 0.14.0
102- run : cargo update -p ndarray:0.14.0 --precise 0.13.1
103- working-directory : ../simple-extension-msrv
104101 - name : Test Example
105102 run : |
106103 poetry install && poetry run maturin develop && poetry run pytest
Original file line number Diff line number Diff line change @@ -29,6 +29,5 @@ pyo3 = "0.13"
2929default = []
3030rayon = [" ndarray/rayon" ]
3131
32-
3332[workspace ]
34- members = [" examples/*" ]
33+ members = [" examples/*" ]
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ crate-type = ["cdylib"]
1010
1111[dependencies ]
1212numpy = { path = " ../.." }
13- ndarray = " 0.14"
14- ndarray-linalg = { version = " 0.13" , features = [" openblas-static" ] }
13+ ndarray = " 0.15"
14+ # ndarray-linalg = { version = "0.13", features = ["openblas-static"] }
15+ ndarray-linalg = { git = " https://github.com/rust-ndarray/ndarray-linalg" , features = [" openblas-static" ] }
1516
1617[dependencies .pyo3 ]
1718version = " 0.13"
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ crate-type = ["cdylib"]
1010
1111[dependencies ]
1212numpy = { path = " ../.." }
13- ndarray = " 0.14 "
14- num-complex = " 0.3 "
13+ ndarray = " 0.15.2 "
14+ num-complex = " 0.4.0 "
1515
1616[dependencies .pyo3 ]
1717version = " 0.13"
You can’t perform that action at this time.
0 commit comments