Skip to content

Commit 3e6bdce

Browse files
committed
release: 0.24.2
1 parent bc26a06 commit 3e6bdce

File tree

19 files changed

+38
-31
lines changed

19 files changed

+38
-31
lines changed

CHANGELOG.md

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

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

13+
## [0.24.2] - 2025-04-21
14+
15+
### Fixed
16+
17+
- Fix `unused_imports` lint of `#[pyfunction]` and `#[pymethods]` expanded in `macro_rules` context. [#5030](https://github.com/PyO3/pyo3/pull/5030)
18+
- Fix size of `PyCodeObject::_co_instrumentation_version` ffi struct member on Python 3.13 for systems where `uintptr_t` is not 64 bits. [#5048](https://github.com/PyO3/pyo3/pull/5048)
19+
- Fix struct-type complex enum variant fields incorrectly exposing raw identifiers as `r#ident` in Python bindings. [#5050](https://github.com/PyO3/pyo3/pull/5050)
20+
1321
## [0.24.1] - 2025-03-31
1422

1523
### Added
@@ -2131,7 +2139,8 @@ Yanked
21312139

21322140
- Initial release
21332141

2134-
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.24.1...HEAD
2142+
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.24.2...HEAD
2143+
[0.24.2]: https://github.com/pyo3/pyo3/compare/v0.24.1...v0.24.2
21352144
[0.24.1]: https://github.com/pyo3/pyo3/compare/v0.24.0...v0.24.1
21362145
[0.24.0]: https://github.com/pyo3/pyo3/compare/v0.23.5...v0.24.0
21372146
[0.23.5]: https://github.com/pyo3/pyo3/compare/v0.23.4...v0.23.5

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

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

@@ -68,7 +68,7 @@ static_assertions = "1.1.0"
6868
uuid = { version = "1.10.0", features = ["v4"] }
6969

7070
[build-dependencies]
71-
pyo3-build-config = { path = "pyo3-build-config", version = "=0.24.1", features = ["resolve-config"] }
71+
pyo3-build-config = { path = "pyo3-build-config", version = "=0.24.2", features = ["resolve-config"] }
7272

7373
[features]
7474
default = ["macros"]

README.md

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

7373
[dependencies]
74-
pyo3 = { version = "0.24.1", features = ["extension-module"] }
74+
pyo3 = { version = "0.24.2", features = ["extension-module"] }
7575
```
7676

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

141141
```toml
142142
[dependencies.pyo3]
143-
version = "0.24.1"
143+
version = "0.24.2"
144144
features = ["auto-initialize"]
145145
```
146146

Releasing.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ Wait a couple of days in case anyone wants to hold up the release to add bugfixe
4444
## 4. Put live
4545

4646
To put live:
47-
- 1. run `nox -s publish` to put live on crates.io
48-
- 2. publish the release on Github
49-
- 3. merge the release PR
47+
- 1. merge the release PR
48+
- 2. publish a release on GitHub targeting the release branch
49+
50+
CI will automatically push to `crates.io`.
5051

5152
## 5. Tidy the main branch
5253

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
variable::set("PYO3_VERSION", "0.24.1");
1+
variable::set("PYO3_VERSION", "0.24.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.24.1");
1+
variable::set("PYO3_VERSION", "0.24.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.24.1");
1+
variable::set("PYO3_VERSION", "0.24.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.24.1");
1+
variable::set("PYO3_VERSION", "0.24.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.24.1");
1+
variable::set("PYO3_VERSION", "0.24.2");
22
file::rename(".template/Cargo.toml", "Cargo.toml");
33
file::rename(".template/pyproject.toml", "pyproject.toml");
44
file::delete(".template");

newsfragments/5030.fixed.md

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

0 commit comments

Comments
 (0)