From d7e87b2721c33a88c15e8893312b4c49ff33db7b Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Sun, 31 Mar 2024 15:27:04 +0200 Subject: [PATCH] Prepare to release version 0.21.0 --- CHANGELOG.md | 5 +++++ Cargo.toml | 2 +- README.md | 10 +++++----- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a457676a..c05da0498 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ - Unreleased +- v0.21.0 + - Migrate to the new `Bound` API introduced by PyO3 0.21. ([#410](https://github.com/PyO3/rust-numpy/pull/410)) ([#411](https://github.com/PyO3/rust-numpy/pull/411)) ([#412](https://github.com/PyO3/rust-numpy/pull/412)) ([#415](https://github.com/PyO3/rust-numpy/pull/415)) ([#416](https://github.com/PyO3/rust-numpy/pull/416)) ([#418](https://github.com/PyO3/rust-numpy/pull/418)) ([#419](https://github.com/PyO3/rust-numpy/pull/419)) ([#420](https://github.com/PyO3/rust-numpy/pull/420)) ([#421](https://github.com/PyO3/rust-numpy/pull/421)) ([#422](https://github.com/PyO3/rust-numpy/pull/422)) + - Add a `prelude` module to simplify importing method traits required by the `Bound` API. ([#417](https://github.com/PyO3/rust-numpy/pull/417)) + - Extend documentation to cover some more surprising behaviours. ([#405](https://github.com/PyO3/rust-numpy/pull/405)) ([#414](https://github.com/PyO3/rust-numpy/pull/414)) + - v0.20.0 - Increase MSRV to 1.56 released in October 2021 and available in Debain 12, RHEL 9 and Alpine 3.17 following the same change for PyO3. ([#378](https://github.com/PyO3/rust-numpy/pull/378)) - Add support for ASCII (`PyFixedString`) and Unicode (`PyFixedUnicode`) string arrays, i.e. dtypes `SN` and `UN` where `N` is the number of characters. ([#378](https://github.com/PyO3/rust-numpy/pull/378)) diff --git a/Cargo.toml b/Cargo.toml index 243713bca..4c71108a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "numpy" -version = "0.20.0" +version = "0.21.0" authors = [ "The rust-numpy Project Developers", "PyO3 Project and Contributors " diff --git a/README.md b/README.md index 670df3377..b0e105bd5 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,8 @@ name = "rust_ext" crate-type = ["cdylib"] [dependencies] -pyo3 = { version = "0.20", features = ["extension-module"] } -numpy = "0.20" +pyo3 = { version = "0.21", features = ["extension-module"] } +numpy = "0.21" ``` ```rust @@ -93,8 +93,8 @@ fn rust_ext<'py>(_py: Python<'py>, m: &Bound<'py, PyModule>) -> PyResult<()> { name = "numpy-test" [dependencies] -pyo3 = { version = "0.20", features = ["auto-initialize"] } -numpy = "0.20" +pyo3 = { version = "0.21", features = ["auto-initialize"] } +numpy = "0.21" ``` ```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.20" +numpy = "0.21" ndarray = "0.13" ```