Skip to content

Commit 21eef8d

Browse files
authored
bump to PyO3 0.23.5, support PyPy 3.11 (#1646)
1 parent bd0bde2 commit 21eef8d

File tree

4 files changed

+18
-23
lines changed

4 files changed

+18
-23
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ jobs:
422422
- os: linux
423423
manylinux: auto
424424
target: x86_64
425-
interpreter: pypy3.9 pypy3.10
425+
interpreter: pypy3.9 pypy3.10 pypy3.11
426426

427427
# musllinux
428428
- os: linux
@@ -442,15 +442,15 @@ jobs:
442442
target: x86_64
443443
- os: macos
444444
target: aarch64
445-
interpreter: 3.9 pypy3.9 pypy3.10
445+
interpreter: 3.9 pypy3.9 pypy3.10 pypy3.11
446446

447447
# windows;
448448
# x86_64 pypy builds are not PGO optimized
449449
# i686 not supported by pypy
450450
# aarch64 only 3.11 and up, also not PGO optimized
451451
- os: windows
452452
target: x86_64
453-
interpreter: pypy3.9 pypy3.10
453+
interpreter: pypy3.9 pypy3.10 pypy3.11
454454
- os: windows
455455
target: i686
456456
python-architecture: x86
@@ -484,7 +484,7 @@ jobs:
484484
with:
485485
target: ${{ matrix.target }}
486486
manylinux: ${{ matrix.manylinux }}
487-
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10' }}
487+
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10 pypy3.11' }}
488488
rust-toolchain: stable
489489
docker-options: -e CI
490490

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rust-version = "1.75"
2929
[dependencies]
3030
# TODO it would be very nice to remove the "py-clone" feature as it can panic,
3131
# but needs a bit of work to make sure it's not used in the codebase
32-
pyo3 = { version = "0.23.4", features = ["generate-import-lib", "num-bigint", "py-clone"] }
32+
pyo3 = { version = "0.23.5", features = ["generate-import-lib", "num-bigint", "py-clone"] }
3333
regex = "1.11.1"
3434
strum = { version = "0.26.3", features = ["derive"] }
3535
strum_macros = "0.26.4"
@@ -73,12 +73,12 @@ debug = true
7373
strip = false
7474

7575
[dev-dependencies]
76-
pyo3 = { version = "0.23.3", features = ["auto-initialize"] }
76+
pyo3 = { version = "0.23.5", features = ["auto-initialize"] }
7777

7878
[build-dependencies]
7979
version_check = "0.9.5"
8080
# used where logic has to be version/distribution specific, e.g. pypy
81-
pyo3-build-config = { version = "0.23.3" }
81+
pyo3-build-config = { version = "0.23.5" }
8282

8383
[lints.clippy]
8484
dbg_macro = "warn"

src/argument_markers.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@ use pyo3::types::{PyDict, PyTuple};
55

66
use crate::tools::safe_repr;
77

8-
// see https://github.com/PyO3/pyo3/issues/4894 - freelist is currently unsound with GIL disabled
9-
#[cfg_attr(
10-
not(Py_GIL_DISABLED),
11-
pyclass(module = "pydantic_core._pydantic_core", get_all, frozen, freelist = 100)
12-
)]
13-
#[cfg_attr(Py_GIL_DISABLED, pyclass(module = "pydantic_core._pydantic_core", get_all, frozen))]
8+
#[pyclass(module = "pydantic_core._pydantic_core", get_all, frozen, freelist = 100)]
149
#[derive(Debug, Clone)]
1510
pub struct ArgsKwargs {
1611
pub(crate) args: Py<PyTuple>,

0 commit comments

Comments
 (0)