Skip to content

Commit 4168d05

Browse files
committed
release: 0.21.1
1 parent 8cabd26 commit 4168d05

File tree

23 files changed

+43
-29
lines changed

23 files changed

+43
-29
lines changed

CHANGELOG.md

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

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

13+
## [0.21.1] - 2024-04-01
14+
15+
### Added
16+
17+
- Implement `Send` and `Sync` for `PyBackedStr` and `PyBackedBytes`. [#4007](https://github.com/PyO3/pyo3/pull/4007)
18+
- Implement `Clone`, `Debug`, `PartialEq`, `Eq`, `PartialOrd`, `Ord` and `Hash` implementation for `PyBackedBytes` and `PyBackedStr`, and `Display` for `PyBackedStr`. [#4020](https://github.com/PyO3/pyo3/pull/4020)
19+
- Add `import_exception_bound!` macro to import exception types without generating GIL Ref functionality for them. [#4027](https://github.com/PyO3/pyo3/pull/4027)
20+
21+
### Changed
22+
23+
- Emit deprecation warning for uses of GIL Refs as `#[setter]` function arguments. [#3998](https://github.com/PyO3/pyo3/pull/3998)
24+
- Add `#[inline]` hints on many `Bound` and `Borrowed` methods. [#4024](https://github.com/PyO3/pyo3/pull/4024)
25+
26+
### Fixed
27+
28+
- Handle `#[pyo3(from_py_with = "")]` in `#[setter]` methods [#3995](https://github.com/PyO3/pyo3/pull/3995)
29+
- Allow extraction of `&Bound` in `#[setter]` methods. [#3998](https://github.com/PyO3/pyo3/pull/3998)
30+
- Fix some uncovered code blocks emitted by `#[pymodule]`, `#[pyfunction]` and `#[pyclass]` macros. [#4009](https://github.com/PyO3/pyo3/pull/4009)
31+
- Fix typo in the panic message when a class referenced in `pyo3::import_exception!` does not exist. [#4012](https://github.com/PyO3/pyo3/pull/4012)
32+
- Fix compile error when using an async `#[pymethod]` with a receiver and additional arguments. [#4015](https://github.com/PyO3/pyo3/pull/4015)
33+
34+
1335
## [0.21.0] - 2024-03-25
1436

1537
### Added
@@ -1709,6 +1731,8 @@ Yanked
17091731

17101732
- Initial release
17111733

1734+
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.21.1...HEAD
1735+
[0.21.1]: https://github.com/pyo3/pyo3/compare/v0.21.0...v0.21.1
17121736
[0.21.0]: https://github.com/pyo3/pyo3/compare/v0.20.3...v0.21.0
17131737
[0.21.0-beta.0]: https://github.com/pyo3/pyo3/compare/v0.20.3...v0.21.0-beta.0
17141738
[0.20.3]: https://github.com/pyo3/pyo3/compare/v0.20.2...v0.20.3

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.21.0"
3+
version = "0.21.1"
44
description = "Bindings to Python interpreter"
55
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
66
readme = "README.md"
@@ -22,10 +22,10 @@ memoffset = "0.9"
2222
portable-atomic = "1.0"
2323

2424
# ffi bindings to the python interpreter, split into a separate crate so they can be used independently
25-
pyo3-ffi = { path = "pyo3-ffi", version = "=0.21.0" }
25+
pyo3-ffi = { path = "pyo3-ffi", version = "=0.21.1" }
2626

2727
# support crates for macros feature
28-
pyo3-macros = { path = "pyo3-macros", version = "=0.21.0", optional = true }
28+
pyo3-macros = { path = "pyo3-macros", version = "=0.21.1", optional = true }
2929
indoc = { version = "2.0.1", optional = true }
3030
unindent = { version = "0.2.1", optional = true }
3131

@@ -60,7 +60,7 @@ rayon = "1.6.1"
6060
futures = "0.3.28"
6161

6262
[build-dependencies]
63-
pyo3-build-config = { path = "pyo3-build-config", version = "=0.21.0", features = ["resolve-config"] }
63+
pyo3-build-config = { path = "pyo3-build-config", version = "=0.21.1", features = ["resolve-config"] }
6464

6565
[features]
6666
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.21.0", features = ["extension-module"] }
71+
pyo3 = { version = "0.21.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.21.0"
140+
version = "0.21.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.21.0");
1+
variable::set("PYO3_VERSION", "0.21.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.21.0");
1+
variable::set("PYO3_VERSION", "0.21.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.21.0");
1+
variable::set("PYO3_VERSION", "0.21.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.21.0");
1+
variable::set("PYO3_VERSION", "0.21.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.21.0");
1+
variable::set("PYO3_VERSION", "0.21.1");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");

newsfragments/3995.fixed.md

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

newsfragments/3998.changed.md

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

0 commit comments

Comments
 (0)