diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b5e49600..6593e1e7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -25,6 +25,17 @@ updates: - "dependencies" - "rust" groups: + # pyo3 and rust-numpy are lockstep (numpy 0.N requires pyo3 ^0.N), so + # a lone bump of either cannot compile. Listed first so they land in + # this group rather than rust-minor-patch. + pyo3-stack: + patterns: + - "pyo3" + - "numpy" + update-types: + - "major" + - "minor" + - "patch" rust-minor-patch: update-types: - "minor" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 4c253cd8..2c0c9772 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -25,9 +25,10 @@ openblas = ["ndarray/blas"] alloc-profile = [] [dependencies] -# PyO3 0.29 supports Python 3.9-3.14 -pyo3 = "0.29" -numpy = "0.29" +# PyO3 0.30 supports Python 3.9-3.15 (pyo3 and numpy must move together: +# rust-numpy 0.N requires pyo3 ^0.N) +pyo3 = "0.30" +numpy = "0.30" ndarray = { version = "0.17", features = ["rayon"] } rand = "0.10" rand_xoshiro = "0.8"