release notes for 0.20.1

This commit is contained in:
David Hewitt 2023-12-29 22:58:16 +00:00
parent 54390bc50b
commit 8fa5294d93
15 changed files with 27 additions and 17 deletions

View File

@ -10,6 +10,24 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h
<!-- towncrier release notes start --> <!-- towncrier release notes start -->
## [0.20.1] - 2023-12-30
### Added
- Add optional `either` feature to add conversions for `either::Either<L, R>` sum type. [#3456](https://github.com/PyO3/pyo3/pull/3456)
- Add optional `smallvec` feature to add conversions for `smallvec::SmallVec`. [#3507](https://github.com/PyO3/pyo3/pull/3507)
- Add `take` and `into_inner` methods to `GILOnceCell` [#3556](https://github.com/PyO3/pyo3/pull/3556)
- `#[classmethod]` methods can now also receive `Py<PyType>` as their first argument. [#3587](https://github.com/PyO3/pyo3/pull/3587)
- `#[pyfunction(pass_module)]` can now also receive `Py<PyModule>` as their first argument. [#3587](https://github.com/PyO3/pyo3/pull/3587)
- Add `traverse` method to `GILProtected`. [#3616](https://github.com/PyO3/pyo3/pull/3616)
- Added `abi3-py312` feature [#3687](https://github.com/PyO3/pyo3/pull/3687)
### Fixed
- Fix minimum version specification for optional `chrono` dependency. [#3512](https://github.com/PyO3/pyo3/pull/3512)
- Silenced new `clippy::unnecessary_fallible_conversions` warning when using a `Py<Self>` `self` receiver. [#3564](https://github.com/PyO3/pyo3/pull/3564)
## [0.20.0] - 2023-10-11 ## [0.20.0] - 2023-10-11
### Packaging ### Packaging
@ -1599,7 +1617,8 @@ Yanked
- Initial release - Initial release
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.20.0...HEAD [Unreleased]: https://github.com/pyo3/pyo3/compare/v0.20.1...HEAD
[0.20.1]: https://github.com/pyo3/pyo3/compare/v0.20.0...v0.20.1
[0.20.0]: https://github.com/pyo3/pyo3/compare/v0.19.2...v0.20.0 [0.20.0]: https://github.com/pyo3/pyo3/compare/v0.19.2...v0.20.0
[0.19.2]: https://github.com/pyo3/pyo3/compare/v0.19.1...v0.19.2 [0.19.2]: https://github.com/pyo3/pyo3/compare/v0.19.1...v0.19.2
[0.19.1]: https://github.com/pyo3/pyo3/compare/v0.19.0...v0.19.1 [0.19.1]: https://github.com/pyo3/pyo3/compare/v0.19.0...v0.19.1

View File

@ -68,7 +68,7 @@ name = "string_sum"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]
pyo3 = { version = "0.20.0", features = ["extension-module"] } pyo3 = { version = "0.20.1", features = ["extension-module"] }
``` ```
**`src/lib.rs`** **`src/lib.rs`**
@ -137,7 +137,7 @@ Start a new project with `cargo new` and add `pyo3` to the `Cargo.toml` like th
```toml ```toml
[dependencies.pyo3] [dependencies.pyo3]
version = "0.20.0" version = "0.20.1"
features = ["auto-initialize"] features = ["auto-initialize"]
``` ```

View File

@ -1,4 +1,4 @@
variable::set("PYO3_VERSION", "0.20.0"); variable::set("PYO3_VERSION", "0.20.1");
file::rename(".template/Cargo.toml", "Cargo.toml"); file::rename(".template/Cargo.toml", "Cargo.toml");
file::rename(".template/pyproject.toml", "pyproject.toml"); file::rename(".template/pyproject.toml", "pyproject.toml");
file::delete(".template"); file::delete(".template");

View File

@ -1,4 +1,4 @@
variable::set("PYO3_VERSION", "0.20.0"); variable::set("PYO3_VERSION", "0.20.1");
file::rename(".template/Cargo.toml", "Cargo.toml"); file::rename(".template/Cargo.toml", "Cargo.toml");
file::rename(".template/pyproject.toml", "pyproject.toml"); file::rename(".template/pyproject.toml", "pyproject.toml");
file::delete(".template"); file::delete(".template");

View File

@ -1,4 +1,4 @@
variable::set("PYO3_VERSION", "0.20.0"); variable::set("PYO3_VERSION", "0.20.1");
file::rename(".template/Cargo.toml", "Cargo.toml"); file::rename(".template/Cargo.toml", "Cargo.toml");
file::rename(".template/plugin_api/Cargo.toml", "plugin_api/Cargo.toml"); file::rename(".template/plugin_api/Cargo.toml", "plugin_api/Cargo.toml");
file::delete(".template"); file::delete(".template");

View File

@ -1,4 +1,4 @@
variable::set("PYO3_VERSION", "0.20.0"); variable::set("PYO3_VERSION", "0.20.1");
file::rename(".template/Cargo.toml", "Cargo.toml"); file::rename(".template/Cargo.toml", "Cargo.toml");
file::rename(".template/setup.cfg", "setup.cfg"); file::rename(".template/setup.cfg", "setup.cfg");
file::delete(".template"); file::delete(".template");

View File

@ -1,4 +1,4 @@
variable::set("PYO3_VERSION", "0.20.0"); variable::set("PYO3_VERSION", "0.20.1");
file::rename(".template/Cargo.toml", "Cargo.toml"); file::rename(".template/Cargo.toml", "Cargo.toml");
file::rename(".template/pyproject.toml", "pyproject.toml"); file::rename(".template/pyproject.toml", "pyproject.toml");
file::delete(".template"); file::delete(".template");

View File

@ -1 +0,0 @@
Add optional conversion support for `either::Either<L, R>` sum type (under "either" feature).

View File

@ -1 +0,0 @@
Add `smallvec` feature to add `ToPyObject`, `IntoPy` and `FromPyObject` implementations for `smallvec::SmallVec`.

View File

@ -1 +0,0 @@
Fix minimum version specification for optional `chrono` dependency

View File

@ -1 +0,0 @@
Add `take` and `into_inner` methods to `GILOnceCell`

View File

@ -1 +0,0 @@
Silenced new `clippy::unnecessary_fallible_conversions` warning when using a `Py<Self>` `self` receiver

View File

@ -1,2 +0,0 @@
- Classmethods can now receive `Py<PyType>` as their first argument
- Function annotated with `pass_module` can now receive `Py<PyModule>` as their first argument

View File

@ -1 +0,0 @@
Add `traverse` method to `GILProtected`

View File

@ -1 +0,0 @@
Added `abi3-py312` feature