Skip to content

Commit 4c88e9a

Browse files
committed
release: 0.22.5
1 parent 8f6464e commit 4c88e9a

File tree

15 files changed

+31
-24
lines changed

15 files changed

+31
-24
lines changed

CHANGELOG.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h
1010

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

13+
## [0.22.5] - 2024-10-15
14+
15+
### Fixed
16+
17+
- Fix regression in 0.22.4 of naming collision in `__clear__` slot and `clear` method generated code. [#4619](https://github.com/PyO3/pyo3/pull/4619)
18+
19+
1320
## [0.22.4] - 2024-10-12
1421

1522
### Added
@@ -1894,7 +1901,8 @@ Yanked
18941901

18951902
- Initial release
18961903

1897-
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.22.4...HEAD
1904+
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.22.5...HEAD
1905+
[0.22.5]: https://github.com/pyo3/pyo3/compare/v0.22.4...v0.22.5
18981906
[0.22.4]: https://github.com/pyo3/pyo3/compare/v0.22.3...v0.22.4
18991907
[0.22.3]: https://github.com/pyo3/pyo3/compare/v0.22.2...v0.22.3
19001908
[0.22.2]: https://github.com/pyo3/pyo3/compare/v0.22.1...v0.22.2

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3"
3-
version = "0.22.4"
3+
version = "0.22.5"
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"
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.4" }
24+
pyo3-ffi = { path = "pyo3-ffi", version = "=0.22.5" }
2525

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

@@ -64,7 +64,7 @@ futures = "0.3.28"
6464
static_assertions = "1.1.0"
6565

6666
[build-dependencies]
67-
pyo3-build-config = { path = "pyo3-build-config", version = "=0.22.4", features = ["resolve-config"] }
67+
pyo3-build-config = { path = "pyo3-build-config", version = "=0.22.5", features = ["resolve-config"] }
6868

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

README.md

+2-2
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.4", features = ["extension-module"] }
71+
pyo3 = { version = "0.22.5", 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.4"
140+
version = "0.22.5"
141141
features = ["auto-initialize"]
142142
```
143143

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.4");
1+
variable::set("PYO3_VERSION", "0.22.5");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.4");
1+
variable::set("PYO3_VERSION", "0.22.5");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.4");
1+
variable::set("PYO3_VERSION", "0.22.5");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/plugin_api/Cargo.toml", "plugin_api/Cargo.toml");
44
file::delete(".template");
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.4");
1+
variable::set("PYO3_VERSION", "0.22.5");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/setup.cfg", "setup.cfg");
44
file::delete(".template");
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.22.4");
1+
variable::set("PYO3_VERSION", "0.22.5");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");

newsfragments/4619.fixed.md

-1
This file was deleted.

pyo3-build-config/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-build-config"
3-
version = "0.22.4"
3+
version = "0.22.5"
44
description = "Build configuration for the PyO3 ecosystem"
55
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
66
keywords = ["pyo3", "python", "cpython", "ffi"]

pyo3-ffi/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-ffi"
3-
version = "0.22.4"
3+
version = "0.22.5"
44
description = "Python-API bindings for the PyO3 ecosystem"
55
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
66
keywords = ["pyo3", "python", "cpython", "ffi"]
@@ -41,7 +41,7 @@ generate-import-lib = ["pyo3-build-config/python3-dll-a"]
4141
paste = "1"
4242

4343
[build-dependencies]
44-
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.4", features = ["resolve-config"] }
44+
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.5", features = ["resolve-config"] }
4545

4646
[lints]
4747
workspace = true

pyo3-macros-backend/Cargo.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-macros-backend"
3-
version = "0.22.4"
3+
version = "0.22.5"
44
description = "Code generation for PyO3 package"
55
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
66
keywords = ["pyo3", "python", "cpython", "ffi"]
@@ -16,7 +16,7 @@ edition = "2021"
1616
[dependencies]
1717
heck = "0.5"
1818
proc-macro2 = { version = "1.0.60", default-features = false }
19-
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.4", features = ["resolve-config"] }
19+
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.5", features = ["resolve-config"] }
2020
quote = { version = "1", default-features = false }
2121

2222
[dependencies.syn]
@@ -25,7 +25,7 @@ default-features = false
2525
features = ["derive", "parsing", "printing", "clone-impls", "full", "extra-traits"]
2626

2727
[build-dependencies]
28-
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.4" }
28+
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.5" }
2929

3030
[lints]
3131
workspace = true

pyo3-macros/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-macros"
3-
version = "0.22.4"
3+
version = "0.22.5"
44
description = "Proc macros for PyO3 package"
55
authors = ["PyO3 Project and Contributors <https://github.com/PyO3>"]
66
keywords = ["pyo3", "python", "cpython", "ffi"]
@@ -22,7 +22,7 @@ gil-refs = ["pyo3-macros-backend/gil-refs"]
2222
proc-macro2 = { version = "1.0.60", default-features = false }
2323
quote = "1"
2424
syn = { version = "2", features = ["full", "extra-traits"] }
25-
pyo3-macros-backend = { path = "../pyo3-macros-backend", version = "=0.22.4" }
25+
pyo3-macros-backend = { path = "../pyo3-macros-backend", version = "=0.22.5" }
2626

2727
[lints]
2828
workspace = true

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
[tool.towncrier]
55
filename = "CHANGELOG.md"
6-
version = "0.22.4"
6+
version = "0.22.5"
77
start_string = "<!-- towncrier release notes start -->\n"
88
template = ".towncrier.template.md"
99
title_format = "## [{version}] - {project_date}"

tests/ui/reject_generics.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
error: #[pyclass] cannot have generic parameters. For an explanation, see https://pyo3.rs/v0.22.4/class.html#no-generic-parameters
1+
error: #[pyclass] cannot have generic parameters. For an explanation, see https://pyo3.rs/v0.22.5/class.html#no-generic-parameters
22
--> tests/ui/reject_generics.rs:4:25
33
|
44
4 | struct ClassWithGenerics<A> {
55
| ^
66

7-
error: #[pyclass] cannot have lifetime parameters. For an explanation, see https://pyo3.rs/v0.22.4/class.html#no-lifetime-parameters
7+
error: #[pyclass] cannot have lifetime parameters. For an explanation, see https://pyo3.rs/v0.22.5/class.html#no-lifetime-parameters
88
--> tests/ui/reject_generics.rs:9:27
99
|
1010
9 | struct ClassWithLifetimes<'a> {

0 commit comments

Comments
 (0)