Skip to content

Commit 80887a0

Browse files
committed
Bump to pyo3 0.24
1 parent 4ab275c commit 80887a0

File tree

9 files changed

+30
-30
lines changed

9 files changed

+30
-30
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"rust-analyzer.cargo.features": "all"
3+
}

Cargo.toml

Lines changed: 4 additions & 4 deletions
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

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ Here we initialize the runtime, import Python's `asyncio` library and run the gi
5454
```toml
5555
# Cargo.toml dependencies
5656
[dependencies]
57-
pyo3 = { version = "0.23" }
58-
pyo3-async-runtimes = { version = "0.23", features = ["attributes", "async-std-runtime"] }
57+
pyo3 = { version = "0.24" }
58+
pyo3-async-runtimes = { version = "0.24", features = ["attributes", "async-std-runtime"] }
5959
async-std = "1.13"
6060
```
6161

@@ -84,8 +84,8 @@ attribute.
8484
```toml
8585
# Cargo.toml dependencies
8686
[dependencies]
87-
pyo3 = { version = "0.23" }
88-
pyo3-async-runtimes = { version = "0.23", features = ["attributes", "tokio-runtime"] }
87+
pyo3 = { version = "0.24" }
88+
pyo3-async-runtimes = { version = "0.24", features = ["attributes", "tokio-runtime"] }
8989
tokio = "1.40"
9090
```
9191

@@ -130,17 +130,17 @@ For `async-std`:
130130

131131
```toml
132132
[dependencies]
133-
pyo3 = { version = "0.23", features = ["extension-module"] }
134-
pyo3-async-runtimes = { version = "0.23", features = ["async-std-runtime"] }
133+
pyo3 = { version = "0.24", features = ["extension-module"] }
134+
pyo3-async-runtimes = { version = "0.24", features = ["async-std-runtime"] }
135135
async-std = "1.13"
136136
```
137137

138138
For `tokio`:
139139

140140
```toml
141141
[dependencies]
142-
pyo3 = { version = "0.20", features = ["extension-module"] }
143-
pyo3-async-runtimes = { version = "0.23", features = ["tokio-runtime"] }
142+
pyo3 = { version = "0.24", features = ["extension-module"] }
143+
pyo3-async-runtimes = { version = "0.24", features = ["tokio-runtime"] }
144144
tokio = "1.40"
145145
```
146146

@@ -434,8 +434,8 @@ name = "my_async_module"
434434
crate-type = ["cdylib"]
435435

436436
[dependencies]
437-
pyo3 = { version = "0.23", features = ["extension-module"] }
438-
pyo3-async-runtimes = { version = "0.23", features = ["tokio-runtime"] }
437+
pyo3 = { version = "0.24", features = ["extension-module"] }
438+
pyo3-async-runtimes = { version = "0.24", features = ["tokio-runtime"] }
439439
async-std = "1.13"
440440
tokio = "1.40"
441441
```
@@ -494,8 +494,8 @@ event loop before we can install the `uvloop` policy.
494494
```toml
495495
[dependencies]
496496
async-std = "1.13"
497-
pyo3 = "0.23"
498-
pyo3-async-runtimes = { version = "0.23", features = ["async-std-runtime"] }
497+
pyo3 = "0.24"
498+
pyo3-async-runtimes = { version = "0.24", features = ["async-std-runtime"] }
499499
```
500500

501501
```rust no_run

pyo3-async-runtimes-macros/Cargo.toml

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 9 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)