File tree 4 files changed +8
-11
lines changed
4 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -87,20 +87,17 @@ jobs:
87
87
run : pip install maturin poetry toml
88
88
- name : Create an isolated example directory
89
89
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
91
91
run : |
92
92
import toml
93
93
cargo_toml = toml.load("Cargo.toml")
94
+ cargo_toml["dependencies"]["numpy"]["path"] = "../rust-numpy"
94
95
cargo_toml["dependencies"]["ndarray"] = "0.13.1"
95
96
cargo_toml["dependencies"]["num-complex"] = "0.2.4"
96
- cargo_toml["dependencies"]["numpy"]["path"] = "../rust-numpy"
97
97
with open("Cargo.toml", "w") as f:
98
98
toml.dump(cargo_toml, f)
99
99
working-directory : ../simple-extension-msrv
100
100
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
104
101
- name : Test Example
105
102
run : |
106
103
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"
29
29
default = []
30
30
rayon = [" ndarray/rayon" ]
31
31
32
-
33
32
[workspace ]
34
- members = [" examples/*" ]
33
+ members = [" examples/*" ]
Original file line number Diff line number Diff line change @@ -10,8 +10,9 @@ crate-type = ["cdylib"]
10
10
11
11
[dependencies ]
12
12
numpy = { 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" ] }
15
16
16
17
[dependencies .pyo3 ]
17
18
version = " 0.13"
Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ crate-type = ["cdylib"]
10
10
11
11
[dependencies ]
12
12
numpy = { path = " ../.." }
13
- ndarray = " 0.14 "
14
- num-complex = " 0.3 "
13
+ ndarray = " 0.15.2 "
14
+ num-complex = " 0.4.0 "
15
15
16
16
[dependencies .pyo3 ]
17
17
version = " 0.13"
You can’t perform that action at this time.
0 commit comments