Skip to content

Commit 3e51ef8

Browse files
committed
Version bumps and package naming in CI and README
1 parent 284bd36 commit 3e51ef8

File tree

3 files changed

+24
-31
lines changed

3 files changed

+24
-31
lines changed

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Thank you for contributing to pyo3-asyncio!
1+
Thank you for contributing to pyo3-async-runtimes!
22

33
Please consider adding the following to your pull request:
44
- an entry in CHANGELOG.md

.github/workflows/ci.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/setup-python@v4
2020
with:
2121
python-version: "3.10"
22-
- run: pip install black==22.8.0
22+
- run: pip install black==24.10.0
2323
- uses: dtolnay/rust-toolchain@stable
2424
with:
2525
toolchain: stable
@@ -49,13 +49,10 @@ jobs:
4949
rust: [stable]
5050
python-version:
5151
[
52-
"3.7",
53-
"3.8",
5452
"3.9",
5553
"3.10",
56-
"3.11-dev",
57-
"pypy-3.7",
58-
"pypy-3.8",
54+
"3.11",
55+
"3.12",
5956
"pypy-3.9",
6057
]
6158
platform:
@@ -83,10 +80,6 @@ jobs:
8380
]
8481
exclude:
8582
# PyPy doesn't release 32-bit Windows builds any more
86-
- python-version: pypy-3.7
87-
platform: { os: "windows-latest", python-architecture: "x86" }
88-
- python-version: pypy-3.8
89-
platform: { os: "windows-latest", python-architecture: "x86" }
9083
- python-version: pypy-3.9
9184
platform: { os: "windows-latest", python-architecture: "x86" }
9285
include:
@@ -103,7 +96,7 @@ jobs:
10396

10497
# Test the `nightly` feature
10598
- rust: nightly
106-
python-version: "3.10"
99+
python-version: "3.12"
107100
platform:
108101
{
109102
os: "ubuntu-latest",

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ 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.20" }
58-
pyo3-asyncio-0-21 = { version = "0.20", features = ["attributes", "async-std-runtime"] }
59-
async-std = "1.9"
57+
pyo3 = { version = "0.22" }
58+
pyo3-async-runtimes = { version = "0.22", features = ["attributes", "async-std-runtime"] }
59+
async-std = "1.13"
6060
```
6161

6262
```rust
@@ -84,9 +84,9 @@ attribute.
8484
```toml
8585
# Cargo.toml dependencies
8686
[dependencies]
87-
pyo3 = { version = "0.20" }
88-
pyo3-asyncio-0-21 = { version = "0.20", features = ["attributes", "tokio-runtime"] }
89-
tokio = "1.9"
87+
pyo3 = { version = "0.22" }
88+
pyo3-async-runtimes = { version = "0.22", features = ["attributes", "tokio-runtime"] }
89+
tokio = "1.40"
9090
```
9191

9292
```rust
@@ -129,18 +129,18 @@ For `async-std`:
129129

130130
```toml
131131
[dependencies]
132-
pyo3 = { version = "0.20", features = ["extension-module"] }
133-
pyo3-asyncio-0-21 = { version = "0.20", features = ["async-std-runtime"] }
134-
async-std = "1.9"
132+
pyo3 = { version = "0.22", features = ["extension-module"] }
133+
pyo3-async-runtimes = { version = "0.22", features = ["async-std-runtime"] }
134+
async-std = "1.13"
135135
```
136136

137137
For `tokio`:
138138

139139
```toml
140140
[dependencies]
141141
pyo3 = { version = "0.20", features = ["extension-module"] }
142-
pyo3-asyncio-0-21 = { version = "0.20", features = ["tokio-runtime"] }
143-
tokio = "1.9"
142+
pyo3-async-runtimes = { version = "0.22", features = ["tokio-runtime"] }
143+
tokio = "1.40"
144144
```
145145

146146
Export an async function that makes use of `async-std`:
@@ -228,7 +228,7 @@ to do something special with the object that it returns.
228228

229229
Normally in Python, that something special is the `await` keyword, but in order to await this
230230
coroutine in Rust, we first need to convert it into Rust's version of a `coroutine`: a `Future`.
231-
That's where `pyo3-asyncio` comes in.
231+
That's where `pyo3-async-runtimes` comes in.
232232
[`pyo3_async_runtimes::into_future`](https://docs.rs/pyo3-asyncio/latest/pyo3_asyncio/fn.into_future.html)
233233
performs this conversion for us:
234234

@@ -433,10 +433,10 @@ name = "my_async_module"
433433
crate-type = ["cdylib"]
434434

435435
[dependencies]
436-
pyo3 = { version = "0.20", features = ["extension-module"] }
437-
pyo3-asyncio-0-21 = { version = "0.20", features = ["tokio-runtime"] }
438-
async-std = "1.9"
439-
tokio = "1.9"
436+
pyo3 = { version = "0.22", features = ["extension-module"] }
437+
pyo3-async-runtimes = { version = "0.22", features = ["tokio-runtime"] }
438+
async-std = "1.13"
439+
tokio = "1.40"
440440
```
441441

442442
```rust
@@ -492,9 +492,9 @@ event loop before we can install the `uvloop` policy.
492492

493493
```toml
494494
[dependencies]
495-
async-std = "1.9"
496-
pyo3 = "0.20"
497-
pyo3-asyncio-0-21 = { version = "0.20", features = ["async-std-runtime"] }
495+
async-std = "1.13"
496+
pyo3 = "0.22"
497+
pyo3-async-runtimes = { version = "0.22", features = ["async-std-runtime"] }
498498
```
499499

500500
```rust no_run

0 commit comments

Comments
 (0)