diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2203cafe..dc11ebea5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -207,7 +207,7 @@ jobs: run: | import toml cargo_toml = toml.load("Cargo.toml") - cargo_toml["dependencies"]["ndarray"] = "0.13.1" + cargo_toml["dependencies"]["ndarray"] = "0.15.6" cargo_toml["dependencies"]["parking_lot"] = "0.11.2" cargo_toml["dependencies"]["num-complex"] = "0.2.4" cargo_toml["dependencies"]["once_cell"] = "1.14.0" @@ -225,8 +225,8 @@ jobs: cargo_lock = toml.load("Cargo.lock") for pkg in cargo_lock["package"]: pkg_id = pkg["name"] + ":" + pkg["version"] - if pkg["name"] == "ndarray" and pkg["version"] != "0.13.1": - subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.13.1"], check=True) + if pkg["name"] == "ndarray" and pkg["version"] != "0.15.6": + subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.15.6"], check=True) elif pkg["name"] == "parking_lot" and pkg["version"] != "0.11.2": subprocess.run(["cargo", "update", "--package", pkg_id, "--precise", "0.11.2"], check=True) elif pkg["name"] == "once_cell" and pkg["version"] != "1.14.0": diff --git a/README.md b/README.md index b0e105bd5..d90960ab7 100644 --- a/README.md +++ b/README.md @@ -133,17 +133,17 @@ For example, if you specify the following dependencies ```toml numpy = "0.21" -ndarray = "0.13" +ndarray = "0.15" ``` -this will currently depend on both version `0.13.1` and `0.15.3` of `ndarray` by default -even though `0.13.1` is within the range `>= 0.13, < 0.16`. To fix this, you can run +this will currently depend on both version `0.15.6` and `0.16.1` of `ndarray` by default +even though `0.15.6` is within the range `>= 0.15, < 0.17`. To fix this, you can run ```sh -cargo update --package ndarray:0.15.3 --precise 0.13.1 +cargo update --package ndarray:0.16.1 --precise 0.15.6 ``` -to achieve a single dependency on version `0.13.1` of `ndarray`. +to achieve a single dependency on version `0.15.6` of `ndarray`. ## Contributing