From 7153069bb9fdd198b2c86517f016d3fee63f54fc Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Fri, 4 Oct 2024 14:25:01 +0200 Subject: [PATCH] Bump README/CI ndarray versions --- .github/workflows/ci.yml | 6 +++--- README.md | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c2203caf..dc11ebea 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 b0e105bd..d90960ab 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