From 52d70ca7c7010a065ae5ca40bc53602b747feb25 Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Mon, 18 Apr 2022 16:57:25 +0200 Subject: [PATCH] Bump our version to 0.17.0 in parallel to PyO3's 0.17.0 release. --- CHANGELOG.md | 2 ++ Cargo.toml | 6 +++--- README.md | 10 +++++----- examples/linalg/Cargo.toml | 2 +- examples/parallel/Cargo.toml | 2 +- examples/simple/Cargo.toml | 2 +- 6 files changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 22ee32edf..3583dfc22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,8 @@ # Changelog - Unreleased + +- v0.17.0 - Add dynamic borrow checking to safely construct references into the interior of NumPy arrays. ([#274](https://github.com/PyO3/rust-numpy/pull/274)) - The deprecated iterator builders `NpySingleIterBuilder::{readonly,readwrite}` and `NpyMultiIterBuilder::add_{readonly,readwrite}` now take referencces to `PyReadonlyArray` and `PyReadwriteArray` instead of consuming them. - The destructive `PyArray::resize` method is now unsafe if used without an instance of `PyReadwriteArray`. ([#302](https://github.com/PyO3/rust-numpy/pull/302)) diff --git a/Cargo.toml b/Cargo.toml index 2d514e11e..294c7e871 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "numpy" -version = "0.16.2" +version = "0.17.0" authors = [ "The rust-numpy Project Developers", "PyO3 Project and Contributors " @@ -22,10 +22,10 @@ num-complex = ">= 0.2, < 0.5" num-integer = "0.1" num-traits = "0.2" ndarray = ">= 0.13, < 0.16" -pyo3 = { version = "0.16", default-features = false, features = ["macros"] } +pyo3 = { version = "0.17", default-features = false, features = ["macros"] } [dev-dependencies] -pyo3 = { version = "0.16", default-features = false, features = ["auto-initialize"] } +pyo3 = { version = "0.17", default-features = false, features = ["auto-initialize"] } [package.metadata.docs.rs] all-features = true diff --git a/README.md b/README.md index 76258d2b8..d108eec32 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ name = "rust_ext" crate-type = ["cdylib"] [dependencies] -pyo3 = { version = "0.16", features = ["extension-module"] } -numpy = "0.16" +pyo3 = { version = "0.17", features = ["extension-module"] } +numpy = "0.17" ``` ```rust @@ -93,8 +93,8 @@ fn rust_ext(_py: Python<'_>, m: &PyModule) -> PyResult<()> { name = "numpy-test" [dependencies] -pyo3 = { version = "0.16", features = ["auto-initialize"] } -numpy = "0.16" +pyo3 = { version = "0.17", features = ["auto-initialize"] } +numpy = "0.17" ``` ```rust @@ -132,7 +132,7 @@ on anything but that exact range. It can therefore be necessary to manually unif For example, if you specify the following dependencies ```toml -numpy = "0.16" +numpy = "0.17" ndarray = "0.13" ``` diff --git a/examples/linalg/Cargo.toml b/examples/linalg/Cargo.toml index 2d83fc2f4..0487ffbf9 100644 --- a/examples/linalg/Cargo.toml +++ b/examples/linalg/Cargo.toml @@ -9,7 +9,7 @@ name = "rust_linalg" crate-type = ["cdylib"] [dependencies] -pyo3 = { version = "0.16", features = ["extension-module"] } +pyo3 = { version = "0.17", features = ["extension-module"] } numpy = { path = "../.." } ndarray-linalg = { version = "0.14.1", features = ["openblas-system"] } diff --git a/examples/parallel/Cargo.toml b/examples/parallel/Cargo.toml index b4308d227..1f455ec22 100644 --- a/examples/parallel/Cargo.toml +++ b/examples/parallel/Cargo.toml @@ -9,7 +9,7 @@ name = "rust_parallel" crate-type = ["cdylib"] [dependencies] -pyo3 = { version = "0.16", features = ["extension-module", "multiple-pymethods"] } +pyo3 = { version = "0.17", features = ["extension-module", "multiple-pymethods"] } numpy = { path = "../.." } ndarray = { version = "0.15", features = ["rayon", "blas"] } blas-src = { version = "0.8", features = ["openblas"] } diff --git a/examples/simple/Cargo.toml b/examples/simple/Cargo.toml index 34590aa92..2c8b275d8 100644 --- a/examples/simple/Cargo.toml +++ b/examples/simple/Cargo.toml @@ -9,7 +9,7 @@ name = "rust_ext" crate-type = ["cdylib"] [dependencies] -pyo3 = { version = "0.16", features = ["extension-module", "abi3-py37"] } +pyo3 = { version = "0.17", features = ["extension-module", "abi3-py37"] } numpy = { path = "../.." } [workspace]