Skip to content

Commit 59c4fa3

Browse files
authored
release: 0.22.1 (#4314)
1 parent 9afc38a commit 59c4fa3

File tree

20 files changed

+38
-28
lines changed

20 files changed

+38
-28
lines changed

CHANGELOG.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,22 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h
1010

1111
<!-- towncrier release notes start -->
1212

13+
## [0.22.1] - 2024-07-06
14+
15+
### Added
16+
17+
- Add `#[pyo3(submodule)]` option for declarative `#[pymodule]`s. [#4301](https://github.com/PyO3/pyo3/pull/4301)
18+
- Implement `PartialEq<bool>` for `Bound<'py, PyBool>`. [#4305](https://github.com/PyO3/pyo3/pull/4305)
19+
20+
### Fixed
21+
22+
- Return `NotImplemented` instead of raising `TypeError` from generated equality method when comparing different types. [#4287](https://github.com/PyO3/pyo3/pull/4287)
23+
- Handle full-path `#[pyo3::prelude::pymodule]` and similar for `#[pyclass]` and `#[pyfunction]` in declarative modules.[#4288](https://github.com/PyO3/pyo3/pull/4288)
24+
- Fix 128-bit int regression on big-endian platforms with Python <3.13. [#4291](https://github.com/PyO3/pyo3/pull/4291)
25+
- Stop generating code that will never be covered with declarative modules. [#4297](https://github.com/PyO3/pyo3/pull/4297)
26+
- Fix invalid deprecation warning for trailing optional on `#[setter]` function. [#4304](https://github.com/PyO3/pyo3/pull/4304)
27+
28+
1329
## [0.22.0] - 2024-06-24
1430

1531
### Packaging
@@ -1808,7 +1824,8 @@ Yanked
18081824

18091825
- Initial release
18101826

1811-
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.22.0...HEAD
1827+
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.22.1...HEAD
1828+
[0.22.1]: https://github.com/pyo3/pyo3/compare/v0.22.0...v0.22.1
18121829
[0.22.0]: https://github.com/pyo3/pyo3/compare/v0.21.2...v0.22.0
18131830
[0.21.2]: https://github.com/pyo3/pyo3/compare/v0.21.1...v0.21.2
18141831
[0.21.1]: https://github.com/pyo3/pyo3/compare/v0.21.0...v0.21.1

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
description = "Bindings to Python interpreter"
55
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
66
readme = "README.md"
@@ -21,10 +21,10 @@ memoffset = "0.9"
2121
once_cell = "1.13.0"
2222

2323
# ffi bindings to the python interpreter, split into a separate crate so they can be used independently
24-
pyo3-ffi = { path = "pyo3-ffi", version = "=0.22.0" }
24+
pyo3-ffi = { path = "pyo3-ffi", version = "=0.22.1" }
2525

2626
# support crates for macros feature
27-
pyo3-macros = { path = "pyo3-macros", version = "=0.22.0", optional = true }
27+
pyo3-macros = { path = "pyo3-macros", version = "=0.22.1", optional = true }
2828
indoc = { version = "2.0.1", optional = true }
2929
unindent = { version = "0.2.1", optional = true }
3030

@@ -63,7 +63,7 @@ rayon = "1.6.1"
6363
futures = "0.3.28"
6464

6565
[build-dependencies]
66-
pyo3-build-config = { path = "pyo3-build-config", version = "=0.22.0", features = ["resolve-config"] }
66+
pyo3-build-config = { path = "pyo3-build-config", version = "=0.22.1", features = ["resolve-config"] }
6767

6868
[features]
6969
default = ["macros"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ name = "string_sum"
6868
crate-type = ["cdylib"]
6969

7070
[dependencies]
71-
pyo3 = { version = "0.22.0", features = ["extension-module"] }
71+
pyo3 = { version = "0.22.1", features = ["extension-module"] }
7272
```
7373

7474
**`src/lib.rs`**
@@ -137,7 +137,7 @@ Start a new project with `cargo new` and add `pyo3` to the `Cargo.toml` like th
137137

138138
```toml
139139
[dependencies.pyo3]
140-
version = "0.22.0"
140+
version = "0.22.1"
141141
features = ["auto-initialize"]
142142
```
143143

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.0");
1+
variable::set("PYO3_VERSION", "0.22.1");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.0");
1+
variable::set("PYO3_VERSION", "0.22.1");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.0");
1+
variable::set("PYO3_VERSION", "0.22.1");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/plugin_api/Cargo.toml", "plugin_api/Cargo.toml");
44
file::delete(".template");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.0");
1+
variable::set("PYO3_VERSION", "0.22.1");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/setup.cfg", "setup.cfg");
44
file::delete(".template");
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.0");
1+
variable::set("PYO3_VERSION", "0.22.1");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");

newsfragments/4287.changed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

newsfragments/4288.fixed.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)