diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c35325..96ef345 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,8 @@ To see unreleased changes, please see the CHANGELOG on the main branch. +## [0.27.0] - 2025-10-20 + - Avoid attaching to the runtime when cloning TaskLocals by using std::sync::Arc. [#62](https://github.com/PyO3/pyo3-async-runtimes/pull/62) - **Breaking**: Finalize the future without holding GIL inside async-std/tokio runtime. Trait `Runtime` now requires `spawn_blocking` function, @@ -17,10 +19,12 @@ To see unreleased changes, please see the CHANGELOG on the main branch. [#60](https://github.com/PyO3/pyo3-async-runtimes/pull/60) - Change pyo3 `downcast` calls to `cast` calls [#65](https://github.com/PyO3/pyo3-async-runtimes/pull/65) - Use `pyo3::intern!` for method calls and `getattr` calls [#66](https://github.com/PyO3/pyo3-async-runtimes/pull/66) +- Fix missing LICENSE file in macros crate by @musicinmybrain in https://github.com/PyO3/pyo3-async-runtimes/pull/63 +- Bump to pyo3 0.27. [#68](https://github.com/PyO3/pyo3-async-runtimes/pull/68) ## [0.26.0] - 2025-09-02 -- Bump to pyo3 0.26. [#54](https://github.com/PyO3/pyo3-async-runtimes/pull/54) +- Bump to pyo3 0.26. [#54](https://github.com/PyO3/pyo3-async-runtimes/pull/54) ## [0.25.0] - 2025-05-14 diff --git a/Cargo.toml b/Cargo.toml index 329b51e..8d2a029 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pyo3-async-runtimes" description = "PyO3 bridges from Rust runtimes to Python's Asyncio library" -version = "0.26.0" +version = "0.27.0" authors = [ "Andrew J Westlake ", "David Hewitt ", @@ -121,7 +121,7 @@ inventory = { version = "0.3", optional = true } once_cell = "1.14" pin-project-lite = "0.2" pyo3 = "0.27" -pyo3-async-runtimes-macros = { path = "pyo3-async-runtimes-macros", version = "=0.26.0", optional = true } +pyo3-async-runtimes-macros = { path = "pyo3-async-runtimes-macros", version = "=0.27.0", optional = true } [dev-dependencies] pyo3 = { version = "0.27", features = ["macros"] } diff --git a/README.md b/README.md index 6080325..fd1e690 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,8 @@ Here we initialize the runtime, import Python's `asyncio` library and run the gi ```toml # Cargo.toml dependencies [dependencies] -pyo3 = { version = "0.26" } -pyo3-async-runtimes = { version = "0.26", features = ["attributes", "async-std-runtime"] } +pyo3 = { version = "0.27" } +pyo3-async-runtimes = { version = "0.27", features = ["attributes", "async-std-runtime"] } async-std = "1.13" ``` @@ -80,8 +80,8 @@ attribute. ```toml # Cargo.toml dependencies [dependencies] -pyo3 = { version = "0.26" } -pyo3-async-runtimes = { version = "0.26", features = ["attributes", "tokio-runtime"] } +pyo3 = { version = "0.27" } +pyo3-async-runtimes = { version = "0.27", features = ["attributes", "tokio-runtime"] } tokio = "1.40" ``` @@ -126,8 +126,8 @@ For `async-std`: ```toml [dependencies] -pyo3 = { version = "0.26", features = ["extension-module"] } -pyo3-async-runtimes = { version = "0.26", features = ["async-std-runtime"] } +pyo3 = { version = "0.27", features = ["extension-module"] } +pyo3-async-runtimes = { version = "0.27", features = ["async-std-runtime"] } async-std = "1.13" ``` @@ -135,8 +135,8 @@ For `tokio`: ```toml [dependencies] -pyo3 = { version = "0.26", features = ["extension-module"] } -pyo3-async-runtimes = { version = "0.26", features = ["tokio-runtime"] } +pyo3 = { version = "0.27", features = ["extension-module"] } +pyo3-async-runtimes = { version = "0.27", features = ["tokio-runtime"] } tokio = "1.40" ``` @@ -430,8 +430,8 @@ name = "my_async_module" crate-type = ["cdylib"] [dependencies] -pyo3 = { version = "0.26", features = ["extension-module"] } -pyo3-async-runtimes = { version = "0.26", features = ["tokio-runtime"] } +pyo3 = { version = "0.27", features = ["extension-module"] } +pyo3-async-runtimes = { version = "0.27", features = ["tokio-runtime"] } async-std = "1.13" tokio = "1.40" ``` @@ -462,7 +462,7 @@ $ maturin develop && python3 🔗 Found pyo3 bindings 🐍 Found CPython 3.8 at python3 Finished dev [unoptimized + debuginfo] target(s) in 0.04s -Python 3.8.8 (default, Apr 13 2021, 19:58:26) +Python 3.8.8 (default, Apr 13 2021, 19:58:27) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or "license" for more information. >>> import asyncio @@ -490,8 +490,8 @@ event loop before we can install the `uvloop` policy. ```toml [dependencies] async-std = "1.13" -pyo3 = "0.26" -pyo3-async-runtimes = { version = "0.26", features = ["async-std-runtime"] } +pyo3 = "0.27" +pyo3-async-runtimes = { version = "0.27", features = ["async-std-runtime"] } ``` ```rust no_run diff --git a/pyo3-async-runtimes-macros/Cargo.toml b/pyo3-async-runtimes-macros/Cargo.toml index d50fc7f..729854f 100644 --- a/pyo3-async-runtimes-macros/Cargo.toml +++ b/pyo3-async-runtimes-macros/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "pyo3-async-runtimes-macros" description = "Proc Macro Attributes for `pyo3-async-runtimes`" -version = "0.26.0" +version = "0.27.0" authors = [ "Andrew J Westlake ", "David Hewitt ",