Skip to content

Commit 92b0f15

Browse files
committed
release: 0.22.2
1 parent da9f52e commit 92b0f15

File tree

19 files changed

+41
-30
lines changed

19 files changed

+41
-30
lines changed

CHANGELOG.md

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

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

13+
## [0.22.2] - 2024-07-17
14+
15+
### Packaging
16+
17+
- Require opt-in to freethreaded Python using the `UNSAFE_PYO3_BUILD_FREE_THREADED=1` environment variable (it is not yet supported by PyO3). [#4327](https://github.com/PyO3/pyo3/pull/4327)
18+
19+
### Changed
20+
21+
- Use FFI function calls for reference counting on all abi3 versions. [#4324](https://github.com/PyO3/pyo3/pull/4324)
22+
- `#[pymodule(...)]` now directly accepts all relevant `#[pyo3(...)]` options. [#4330](https://github.com/PyO3/pyo3/pull/4330)
23+
24+
### Fixed
25+
26+
- Fix compile failure in declarative `#[pymodule]` under presence of `#![no_implicit_prelude]`. [#4328](https://github.com/PyO3/pyo3/pull/4328)
27+
- Fix compile failure due to c-string literals on Rust < 1.79. [#4353](https://github.com/PyO3/pyo3/pull/4353)
28+
29+
1330
## [0.22.1] - 2024-07-06
1431

1532
### Added
@@ -1824,7 +1841,8 @@ Yanked
18241841

18251842
- Initial release
18261843

1827-
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.22.1...HEAD
1844+
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.22.2...HEAD
1845+
[0.22.2]: https://github.com/pyo3/pyo3/compare/v0.22.1...v0.22.2
18281846
[0.22.1]: https://github.com/pyo3/pyo3/compare/v0.22.0...v0.22.1
18291847
[0.22.0]: https://github.com/pyo3/pyo3/compare/v0.21.2...v0.22.0
18301848
[0.21.2]: https://github.com/pyo3/pyo3/compare/v0.21.1...v0.21.2

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.1"
3+
version = "0.22.2"
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.1" }
24+
pyo3-ffi = { path = "pyo3-ffi", version = "=0.22.2" }
2525

2626
# support crates for macros feature
27-
pyo3-macros = { path = "pyo3-macros", version = "=0.22.1", optional = true }
27+
pyo3-macros = { path = "pyo3-macros", version = "=0.22.2", 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.1", features = ["resolve-config"] }
66+
pyo3-build-config = { path = "pyo3-build-config", version = "=0.22.2", 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.1", features = ["extension-module"] }
71+
pyo3 = { version = "0.22.2", 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.1"
140+
version = "0.22.2"
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.1");
1+
variable::set("PYO3_VERSION", "0.22.2");
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.1");
1+
variable::set("PYO3_VERSION", "0.22.2");
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.1");
1+
variable::set("PYO3_VERSION", "0.22.2");
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.1");
1+
variable::set("PYO3_VERSION", "0.22.2");
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.1");
1+
variable::set("PYO3_VERSION", "0.22.2");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");

newsfragments/4324.changed.md

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

newsfragments/4327.packaging.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

newsfragments/4330.changed.md

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

newsfragments/4346.changed.md

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

newsfragments/4353.fixed.md

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

pyo3-build-config/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-build-config"
3-
version = "0.22.1"
3+
version = "0.22.2"
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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-ffi"
3-
version = "0.22.1"
3+
version = "0.22.2"
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"]
@@ -38,7 +38,7 @@ abi3-py312 = ["abi3", "pyo3-build-config/abi3-py312"]
3838
generate-import-lib = ["pyo3-build-config/python3-dll-a"]
3939

4040
[build-dependencies]
41-
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.1", features = ["resolve-config"] }
41+
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.2", features = ["resolve-config"] }
4242

4343
[lints]
4444
workspace = true

pyo3-macros-backend/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-macros-backend"
3-
version = "0.22.1"
3+
version = "0.22.2"
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.1", features = ["resolve-config"] }
19+
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.2", 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.1" }
28+
pyo3-build-config = { path = "../pyo3-build-config", version = "=0.22.2" }
2929

3030
[lints]
3131
workspace = true

pyo3-macros/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "pyo3-macros"
3-
version = "0.22.1"
3+
version = "0.22.2"
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.1" }
25+
pyo3-macros-backend = { path = "../pyo3-macros-backend", version = "=0.22.2" }
2626

2727
[lints]
2828
workspace = true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

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

tests/ui/reject_generics.stderr

Lines changed: 2 additions & 2 deletions
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.23.0-dev/class.html#no-generic-parameters
1+
error: #[pyclass] cannot have generic parameters. For an explanation, see https://pyo3.rs/v0.22.2/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.23.0-dev/class.html#no-lifetime-parameters
7+
error: #[pyclass] cannot have lifetime parameters. For an explanation, see https://pyo3.rs/v0.22.2/class.html#no-lifetime-parameters
88
--> tests/ui/reject_generics.rs:9:27
99
|
1010
9 | struct ClassWithLifetimes<'a> {

0 commit comments

Comments
 (0)