Skip to content

Commit 0ce6d6d

Browse files
Pyo3 0.19 (#97)
* Update pyo3 requirement from 0.18 to 0.19 Updates the requirements on [pyo3](https://github.com/pyo3/pyo3) to permit the latest version. - [Release notes](https://github.com/pyo3/pyo3/releases) - [Changelog](https://github.com/PyO3/pyo3/blob/main/CHANGELOG.md) - [Commits](PyO3/pyo3@v0.18.0...v0.19.0) --- updated-dependencies: - dependency-name: pyo3 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> * Updated PyO3 dependency + version in docs * Changed edition to 2021 * Updated Rust MSRV * Updated MSRV to 1.62 * Removed LD_LIBRARY_PATH prep --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 291a72e commit 0ce6d6d

File tree

8 files changed

+30
-40
lines changed

8 files changed

+30
-40
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
platform: { os: "windows-latest", python-architecture: "x86" }
9292
include:
9393
# Test minimal supported Rust version
94-
- rust: 1.48.0
94+
- rust: 1.62.0
9595
python-version: "3.10"
9696
platform:
9797
{
@@ -128,19 +128,9 @@ jobs:
128128
toolchain: ${{ matrix.rust }}
129129
target: ${{ matrix.platform.rust-target }}
130130

131-
- if: matrix.platform.os == 'ubuntu-latest'
132-
name: Prepare LD_LIBRARY_PATH (Ubuntu only)
133-
run: echo LD_LIBRARY_PATH=${pythonLocation}/lib >> $GITHUB_ENV
134-
135-
- if: matrix.msrv == 'MSRV'
136-
name: Prepare minimal package versions (MSRV only)
137-
run: |
138-
set -x
139-
cargo update -p tokio --precise 1.13.1
140-
cargo update -p indexmap --precise 1.6.2
141-
cargo update -p parking_lot:0.12.1 --precise 0.11.2
142-
cargo update -p async-global-executor --precise 2.2.0
143-
cargo update -p once_cell --precise 1.14.0
131+
# - if: matrix.platform.os == 'ubuntu-latest'
132+
# name: Prepare LD_LIBRARY_PATH (Ubuntu only)
133+
# run: echo LD_LIBRARY_PATH=${pythonLocation}/lib >> $GIHUB_ENV
144134

145135
- name: Build (no features)
146136
run: cargo build --no-default-features --verbose --target ${{ matrix.platform.rust-target }}

Cargo.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pyo3-asyncio"
33
description = "PyO3 utilities for Python's Asyncio library"
4-
version = "0.18.0"
4+
version = "0.19.0"
55
authors = ["Andrew J Westlake <[email protected]>"]
66
readme = "README.md"
77
keywords = ["pyo3", "python", "ffi", "async", "asyncio"]
@@ -11,7 +11,7 @@ documentation = "https://docs.rs/crate/pyo3-asyncio/"
1111
categories = ["api-bindings", "development-tools::ffi"]
1212
license = "Apache-2.0"
1313
exclude = ["/.gitignore", "/codecov.yml", "/Makefile"]
14-
edition = "2018"
14+
edition = "2021"
1515

1616
[workspace]
1717
members = ["pyo3-asyncio-macros"]
@@ -116,11 +116,11 @@ futures = "0.3"
116116
inventory = { version = "0.3", optional = true }
117117
once_cell = "1.14"
118118
pin-project-lite = "0.2"
119-
pyo3 = "0.18"
120-
pyo3-asyncio-macros = { path = "pyo3-asyncio-macros", version = "=0.18.0", optional = true }
119+
pyo3 = "0.19"
120+
pyo3-asyncio-macros = { path = "pyo3-asyncio-macros", version = "=0.19.0", optional = true }
121121

122122
[dev-dependencies]
123-
pyo3 = { version = "0.18", features = ["macros"] }
123+
pyo3 = { version = "0.19", features = ["macros"] }
124124

125125
[dependencies.async-std]
126126
version = "1.12"

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Actions Status](https://github.com/awestlake87/pyo3-asyncio/workflows/CI/badge.svg)](https://github.com/awestlake87/pyo3-asyncio/actions)
44
[![codecov](https://codecov.io/gh/awestlake87/pyo3-asyncio/branch/master/graph/badge.svg)](https://codecov.io/gh/awestlake87/pyo3-asyncio)
55
[![crates.io](https://img.shields.io/crates/v/pyo3-asyncio)](https://crates.io/crates/pyo3-asyncio)
6-
[![minimum rustc 1.48](https://img.shields.io/badge/rustc-1.48+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
6+
[![minimum rustc 1.62](https://img.shields.io/badge/rustc-1.62+-blue.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html)
77

88
[Rust](http://www.rust-lang.org/) bindings for [Python](https://www.python.org/)'s [Asyncio Library](https://docs.python.org/3/library/asyncio.html). This crate facilitates interactions between Rust Futures and Python Coroutines and manages the lifecycle of their corresponding event loops.
99

@@ -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.18" }
56-
pyo3-asyncio = { version = "0.18", features = ["attributes", "async-std-runtime"] }
55+
pyo3 = { version = "0.19" }
56+
pyo3-asyncio = { version = "0.19", features = ["attributes", "async-std-runtime"] }
5757
async-std = "1.9"
5858
```
5959

@@ -82,8 +82,8 @@ attribute.
8282
```toml
8383
# Cargo.toml dependencies
8484
[dependencies]
85-
pyo3 = { version = "0.18" }
86-
pyo3-asyncio = { version = "0.18", features = ["attributes", "tokio-runtime"] }
85+
pyo3 = { version = "0.19" }
86+
pyo3-asyncio = { version = "0.19", features = ["attributes", "tokio-runtime"] }
8787
tokio = "1.9"
8888
```
8989

@@ -127,17 +127,17 @@ For `async-std`:
127127

128128
```toml
129129
[dependencies]
130-
pyo3 = { version = "0.18", features = ["extension-module"] }
131-
pyo3-asyncio = { version = "0.18", features = ["async-std-runtime"] }
130+
pyo3 = { version = "0.19", features = ["extension-module"] }
131+
pyo3-asyncio = { version = "0.19", features = ["async-std-runtime"] }
132132
async-std = "1.9"
133133
```
134134

135135
For `tokio`:
136136

137137
```toml
138138
[dependencies]
139-
pyo3 = { version = "0.18", features = ["extension-module"] }
140-
pyo3-asyncio = { version = "0.18", features = ["tokio-runtime"] }
139+
pyo3 = { version = "0.19", features = ["extension-module"] }
140+
pyo3-asyncio = { version = "0.19", features = ["tokio-runtime"] }
141141
tokio = "1.9"
142142
```
143143

@@ -431,8 +431,8 @@ name = "my_async_module"
431431
crate-type = ["cdylib"]
432432

433433
[dependencies]
434-
pyo3 = { version = "0.18", features = ["extension-module"] }
435-
pyo3-asyncio = { version = "0.18", features = ["tokio-runtime"] }
434+
pyo3 = { version = "0.19", features = ["extension-module"] }
435+
pyo3-asyncio = { version = "0.19", features = ["tokio-runtime"] }
436436
async-std = "1.9"
437437
tokio = "1.9"
438438
```
@@ -491,8 +491,8 @@ event loop before we can install the `uvloop` policy.
491491
```toml
492492
[dependencies]
493493
async-std = "1.9"
494-
pyo3 = "0.18"
495-
pyo3-asyncio = { version = "0.18", features = ["async-std-runtime"] }
494+
pyo3 = "0.19"
495+
pyo3-asyncio = { version = "0.19", features = ["async-std-runtime"] }
496496
```
497497

498498
```rust no_run

pyo3-asyncio-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-asyncio-macros"
33
description = "Proc Macro Attributes for PyO3 Asyncio"
4-
version = "0.18.0"
4+
version = "0.19.0"
55
authors = ["Andrew J Westlake <[email protected]>"]
66
readme = "../README.md"
77
keywords = ["pyo3", "python", "ffi", "async", "asyncio"]

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-asyncio]
12-
//! version = "0.18"
12+
//! version = "0.19"
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-asyncio]
12-
//! version = "0.18"
12+
//! version = "0.19"
1313
//! features = ["unstable-streams"]
1414
//! ```
1515

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@
300300
//!
301301
//! ```toml
302302
//! [dependencies.pyo3-asyncio]
303-
//! version = "0.18"
303+
//! version = "0.19"
304304
//! features = ["attributes"]
305305
//! ```
306306
//!
@@ -313,7 +313,7 @@
313313
//!
314314
//! ```toml
315315
//! [dependencies.pyo3-asyncio]
316-
//! version = "0.18"
316+
//! version = "0.19"
317317
//! features = ["async-std-runtime"]
318318
//! ```
319319
//!
@@ -326,7 +326,7 @@
326326
//!
327327
//! ```toml
328328
//! [dependencies.pyo3-asyncio]
329-
//! version = "0.18"
329+
//! version = "0.19"
330330
//! features = ["tokio-runtime"]
331331
//! ```
332332
//!
@@ -339,7 +339,7 @@
339339
//!
340340
//! ```toml
341341
//! [dependencies.pyo3-asyncio]
342-
//! version = "0.18"
342+
//! version = "0.19"
343343
//! features = ["testing"]
344344
//! ```
345345

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-asyncio]
12-
//! version = "0.18"
12+
//! version = "0.19"
1313
//! features = ["unstable-streams"]
1414
//! ```
1515

0 commit comments

Comments
 (0)