Skip to content

Commit c5a3746

Browse files
authored
release: 0.24 (#34)
2 parents c2b8441 + 988331e commit c5a3746

File tree

11 files changed

+34
-31
lines changed

11 files changed

+34
-31
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118
name: Set MSRV dependencies
119119
run: |
120120
cargo add tokio@=1.38.1
121+
cargo update -p once_cell --precise 1.20.3
121122
122123
- name: Build (no features)
123124
run: cargo build --no-default-features --verbose --target ${{ matrix.platform.rust-target }}

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.vscode
12
target
2-
Cargo.lock
3+
Cargo.lock

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ To see unreleased changes, please see the CHANGELOG on the main branch.
1010

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

13+
## [0.24.0] - 2025-03-11
14+
15+
- Bump to pyo3 0.24. [#34](https://github.com/PyO3/pyo3-async-runtimes/pull/34)
16+
1317
## [0.23.0] - 2024-11-22
1418

1519
- Bump minimum version of `pyo3` dependency to 0.23. [#21](https://github.com/PyO3/pyo3-async-runtimes/pull/21)

Cargo.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pyo3-async-runtimes"
33
description = "PyO3 bridges from Rust runtimes to Python's Asyncio library"
4-
version = "0.23.0"
4+
version = "0.24.0"
55
authors = [
66
"Andrew J Westlake <[email protected]>",
77
"David Hewitt <[email protected]>",
@@ -120,11 +120,11 @@ futures = "0.3"
120120
inventory = { version = "0.3", optional = true }
121121
once_cell = "1.14"
122122
pin-project-lite = "0.2"
123-
pyo3 = "0.23"
124-
pyo3-async-runtimes-macros = { path = "pyo3-async-runtimes-macros", version = "=0.23.0", optional = true }
123+
pyo3 = "0.24"
124+
pyo3-async-runtimes-macros = { path = "pyo3-async-runtimes-macros", version = "=0.24.0", optional = true }
125125

126126
[dev-dependencies]
127-
pyo3 = { version = "0.23", features = ["macros"] }
127+
pyo3 = { version = "0.24", features = ["macros"] }
128128

129129
[dependencies.async-std]
130130
version = "1.12"

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ Here we initialize the runtime, import Python's `asyncio` library and run the gi
5252
```toml
5353
# Cargo.toml dependencies
5454
[dependencies]
55-
pyo3 = { version = "0.23" }
56-
pyo3-async-runtimes = { version = "0.23", features = ["attributes", "async-std-runtime"] }
55+
pyo3 = { version = "0.24" }
56+
pyo3-async-runtimes = { version = "0.24", features = ["attributes", "async-std-runtime"] }
5757
async-std = "1.13"
5858
```
5959

@@ -82,8 +82,8 @@ attribute.
8282
```toml
8383
# Cargo.toml dependencies
8484
[dependencies]
85-
pyo3 = { version = "0.23" }
86-
pyo3-async-runtimes = { version = "0.23", features = ["attributes", "tokio-runtime"] }
85+
pyo3 = { version = "0.24" }
86+
pyo3-async-runtimes = { version = "0.24", features = ["attributes", "tokio-runtime"] }
8787
tokio = "1.40"
8888
```
8989

@@ -128,17 +128,17 @@ For `async-std`:
128128

129129
```toml
130130
[dependencies]
131-
pyo3 = { version = "0.23", features = ["extension-module"] }
132-
pyo3-async-runtimes = { version = "0.23", features = ["async-std-runtime"] }
131+
pyo3 = { version = "0.24", features = ["extension-module"] }
132+
pyo3-async-runtimes = { version = "0.24", features = ["async-std-runtime"] }
133133
async-std = "1.13"
134134
```
135135

136136
For `tokio`:
137137

138138
```toml
139139
[dependencies]
140-
pyo3 = { version = "0.20", features = ["extension-module"] }
141-
pyo3-async-runtimes = { version = "0.23", features = ["tokio-runtime"] }
140+
pyo3 = { version = "0.24", features = ["extension-module"] }
141+
pyo3-async-runtimes = { version = "0.24", features = ["tokio-runtime"] }
142142
tokio = "1.40"
143143
```
144144

@@ -432,8 +432,8 @@ name = "my_async_module"
432432
crate-type = ["cdylib"]
433433

434434
[dependencies]
435-
pyo3 = { version = "0.23", features = ["extension-module"] }
436-
pyo3-async-runtimes = { version = "0.23", features = ["tokio-runtime"] }
435+
pyo3 = { version = "0.24", features = ["extension-module"] }
436+
pyo3-async-runtimes = { version = "0.24", features = ["tokio-runtime"] }
437437
async-std = "1.13"
438438
tokio = "1.40"
439439
```
@@ -492,8 +492,8 @@ event loop before we can install the `uvloop` policy.
492492
```toml
493493
[dependencies]
494494
async-std = "1.13"
495-
pyo3 = "0.23"
496-
pyo3-async-runtimes = { version = "0.23", features = ["async-std-runtime"] }
495+
pyo3 = "0.24"
496+
pyo3-async-runtimes = { version = "0.24", features = ["async-std-runtime"] }
497497
```
498498

499499
```rust no_run

pyo3-async-runtimes-macros/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pyo3-async-runtimes-macros"
33
description = "Proc Macro Attributes for `pyo3-async-runtimes`"
4-
version = "0.23.0"
4+
version = "0.24.0"
55
authors = [
66
"Andrew J Westlake <[email protected]>",
77
"David Hewitt <[email protected]>",

src/async_std.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! ```toml
1111
//! [dependencies.pyo3-async-runtimes]
12-
//! version = "0.23"
12+
//! version = "0.24"
1313
//! features = ["unstable-streams"]
1414
//! ```
1515

src/generic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! ```toml
1111
//! [dependencies.pyo3-async-runtimes]
12-
//! version = "0.23"
12+
//! version = "0.24"
1313
//! features = ["unstable-streams"]
1414
//! ```
1515

src/lib.rs

+6-9
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
//!
301301
//! ```toml
302302
//! [dependencies.pyo3-async-runtimes]
303-
//! version = "0.23"
303+
//! version = "0.24"
304304
//! features = ["attributes"]
305305
//! ```
306306
//!
@@ -313,7 +313,7 @@
313313
//!
314314
//! ```toml
315315
//! [dependencies.pyo3-async-runtimes]
316-
//! version = "0.23"
316+
//! version = "0.24"
317317
//! features = ["async-std-runtime"]
318318
//! ```
319319
//!
@@ -326,7 +326,7 @@
326326
//!
327327
//! ```toml
328328
//! [dependencies.pyo3-async-runtimes]
329-
//! version = "0.23"
329+
//! version = "0.24"
330330
//! features = ["tokio-runtime"]
331331
//! ```
332332
//!
@@ -339,7 +339,7 @@
339339
//!
340340
//! ```toml
341341
//! [dependencies.pyo3-async-runtimes]
342-
//! version = "0.23"
342+
//! version = "0.24"
343343
//! features = ["testing"]
344344
//! ```
345345
@@ -398,10 +398,7 @@ use std::future::Future;
398398

399399
use futures::channel::oneshot;
400400
use once_cell::sync::OnceCell;
401-
use pyo3::{
402-
prelude::*,
403-
types::{PyDict, PyTuple},
404-
};
401+
use pyo3::{call::PyCallArgs, prelude::*, types::PyDict};
405402

406403
static ASYNCIO: OnceCell<PyObject> = OnceCell::new();
407404
static CONTEXTVARS: OnceCell<PyObject> = OnceCell::new();
@@ -579,7 +576,7 @@ impl PyEnsureFuture {
579576
fn call_soon_threadsafe<'py>(
580577
event_loop: &Bound<'py, PyAny>,
581578
context: &Bound<PyAny>,
582-
args: impl IntoPyObject<'py, Target = PyTuple>,
579+
args: impl PyCallArgs<'py>,
583580
) -> PyResult<()> {
584581
let py = event_loop.py();
585582

src/testing.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
//! Also add the `testing` and `attributes` features to the `pyo3-async-runtimes` dependency and select your preferred runtime:
6565
//!
6666
//! ```toml
67-
//! pyo3-async-runtimes = { version = "0.23", features = ["testing", "attributes", "async-std-runtime"] }
67+
//! pyo3-async-runtimes = { version = "0.24", features = ["testing", "attributes", "async-std-runtime"] }
6868
//! ```
6969
//!
7070
//! At this point, you should be able to run the test via `cargo test`

src/tokio.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
//!
1010
//! ```toml
1111
//! [dependencies.pyo3-async-runtimes]
12-
//! version = "0.23"
12+
//! version = "0.24"
1313
//! features = ["unstable-streams"]
1414
//! ```
1515

0 commit comments

Comments
 (0)