From dc75f5094fd85d78d17abb4d81d379d919b6e28d Mon Sep 17 00:00:00 2001 From: Matthew Neeley Date: Wed, 7 Jan 2026 13:37:37 -0800 Subject: [PATCH 1/2] Allow ndarray versions < 0.18 Previously the version constraint was updated to ndarray <= 0.17 but the 0.17 release was yanked and this excludes 0.17.1 and later point releases. This updates the dependency specification to < 0.18 which will allow point releass (and which is closer to what was used before #516). --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 136dd2eb9..2580d7c3e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -27,7 +27,7 @@ nalgebra = { version = ">=0.30, <0.35", default-features = false, optional = tru num-complex = ">= 0.2, < 0.5" num-integer = "0.1" num-traits = "0.2" -ndarray = ">= 0.15, <=0.17" +ndarray = ">= 0.15, < 0.18" pyo3 = { version = "0.27.0", default-features = false, features = ["macros"] } rustc-hash = "2.0" From b9e696f532493a45a0ecb1129681cd3280350a64 Mon Sep 17 00:00:00 2001 From: Matthew Neeley Date: Wed, 7 Jan 2026 13:41:11 -0800 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97707dc45..d0d540824 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog - v0.28.0 - Fix mismatched behavior between `PyArrayLike1` and `PyArrayLike2` when used with floats ([#520](https://github.com/PyO3/rust-numpy/pull/520)) + - Allow ndarray versions < 0.18. ([#526](https://github.com/PyO3/rust-numpy/pull/526)) - v0.27.1 - Bump ndarray dependency to v0.17. ([#516](https://github.com/PyO3/rust-numpy/pull/516))