Skip to content

Commit 3ae3a6b

Browse files
authored
release notes for 0.24.1 and 0.24.2 (PyO3#5083)
* release: 0.24.1 * release: 0.24.2
1 parent b2ee6b6 commit 3ae3a6b

File tree

22 files changed

+44
-28
lines changed

22 files changed

+44
-28
lines changed

CHANGELOG.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,40 @@ 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+
21+
## [0.24.1] - 2025-03-31
22+
23+
### Added
24+
25+
- Add `abi3-py313` feature. [#4969](https://github.com/PyO3/pyo3/pull/4969)
26+
- Add `PyAnyMethods::getattr_opt`. [#4978](https://github.com/PyO3/pyo3/pull/4978)
27+
- Add `PyInt::new` constructor for all supported number types (i32, u32, i64, u64, isize, usize). [#4984](https://github.com/PyO3/pyo3/pull/4984)
28+
- Add `pyo3::sync::with_critical_section2`. [#4992](https://github.com/PyO3/pyo3/pull/4992)
29+
- Implement `PyCallArgs` for `Borrowed<'_, 'py, PyTuple>`, `&Bound<'py, PyTuple>`, and `&Py<PyTuple>`. [#5013](https://github.com/PyO3/pyo3/pull/5013)
30+
31+
### Fixed
32+
33+
- Fix `is_type_of` for native types not using same specialized check as `is_type_of_bound`. [#4981](https://github.com/PyO3/pyo3/pull/4981)
34+
- Fix `Probe` class naming issue with `#[pymethods]`. [#4988](https://github.com/PyO3/pyo3/pull/4988)
35+
- Fix compile failure with required `#[pyfunction]` arguments taking `Option<&str>` and `Option<&T>` (for `#[pyclass]` types). [#5002](https://github.com/PyO3/pyo3/pull/5002)
36+
- Fix `PyString::from_object` causing of bounds reads whith `encoding` and `errors` parameters which are not nul-terminated. [#5008](https://github.com/PyO3/pyo3/pull/5008)
37+
- Fix compile error when additional options follow after `crate` for `#[pyfunction]`. [#5015](https://github.com/PyO3/pyo3/pull/5015)
38+
1339
## [0.24.0] - 2025-03-09
1440

1541
### Packaging
1642

1743
- Add supported CPython/PyPy versions to cargo package metadata. [#4756](https://github.com/PyO3/pyo3/pull/4756)
1844
- Bump `target-lexicon` dependency to 0.13. [#4822](https://github.com/PyO3/pyo3/pull/4822)
1945
- Add optional `jiff` dependency to add conversions for `jiff` datetime types. [#4823](https://github.com/PyO3/pyo3/pull/4823)
46+
- Add optional `uuid` dependency to add conversions for `uuid::Uuid`. [#4864](https://github.com/PyO3/pyo3/pull/4864)
2047
- Bump minimum supported `inventory` version to 0.3.5. [#4954](https://github.com/PyO3/pyo3/pull/4954)
2148

2249
### Added
@@ -25,7 +52,6 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h
2552
- Add `PyCallArgs` trait for passing arguments into the Python calling protocol. This enabled using a faster calling convention for certain types, improving performance. [#4768](https://github.com/PyO3/pyo3/pull/4768)
2653
- Add `#[pyo3(default = ...']` option for `#[derive(FromPyObject)]` to set a default value for extracted fields of named structs. [#4829](https://github.com/PyO3/pyo3/pull/4829)
2754
- Add `#[pyo3(into_py_with = ...)]` option for `#[derive(IntoPyObject, IntoPyObjectRef)]`. [#4850](https://github.com/PyO3/pyo3/pull/4850)
28-
- Add uuid to/from python conversions. [#4864](https://github.com/PyO3/pyo3/pull/4864)
2955
- Add FFI definitions `PyThreadState_GetFrame` and `PyFrame_GetBack`. [#4866](https://github.com/PyO3/pyo3/pull/4866)
3056
- Optimize `last` for `BoundListIterator`, `BoundTupleIterator` and `BorrowedTupleIterator`. [#4878](https://github.com/PyO3/pyo3/pull/4878)
3157
- Optimize `Iterator::count()` for `PyDict`, `PyList`, `PyTuple` & `PySet`. [#4878](https://github.com/PyO3/pyo3/pull/4878)
@@ -60,6 +86,7 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h
6086

6187

6288
## [0.23.5] - 2025-02-22
89+
6390
### Packaging
6491

6592
- Add support for PyPy3.11 [#4760](https://github.com/PyO3/pyo3/pull/4760)
@@ -109,7 +136,6 @@ To see unreleased changes, please see the [CHANGELOG on the main branch guide](h
109136
- Fix unresolved symbol link failures on Windows when compiling for Python 3.13t using the `generate-import-lib` feature. [#4749](https://github.com/PyO3/pyo3/pull/4749)
110137
- Fix compile-time regression in PyO3 0.23.0 where changing `PYO3_CONFIG_FILE` would not reconfigure PyO3 for the new interpreter. [#4758](https://github.com/PyO3/pyo3/pull/4758)
111138

112-
113139
## [0.23.2] - 2024-11-25
114140

115141
### Added
@@ -2113,7 +2139,9 @@ Yanked
21132139

21142140
- Initial release
21152141

2116-
[Unreleased]: https://github.com/pyo3/pyo3/compare/v0.24.0...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
2144+
[0.24.1]: https://github.com/pyo3/pyo3/compare/v0.24.0...v0.24.1
21172145
[0.24.0]: https://github.com/pyo3/pyo3/compare/v0.23.5...v0.24.0
21182146
[0.23.5]: https://github.com/pyo3/pyo3/compare/v0.23.4...v0.23.5
21192147
[0.23.4]: https://github.com/pyo3/pyo3/compare/v0.23.3...v0.23.4

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.0", 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.0"
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.0");
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.0");
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.0");
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.0");
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.0");
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/4969.added.md

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

newsfragments/4978.added.md

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

0 commit comments

Comments
 (0)