Skip to content

Commit

Permalink
Bump README/CI ndarray versions
Browse files Browse the repository at this point in the history
  • Loading branch information
magnusuMET committed Oct 4, 2024
1 parent a92082b commit abe7de5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit abe7de5

Please sign in to comment.