Skip to content

Commit

Permalink
bump to PyO3 0.23.5, support PyPy 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhewitt committed Feb 25, 2025
1 parent bd0bde2 commit 9b860fa
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ jobs:
- os: linux
manylinux: auto
target: x86_64
interpreter: pypy3.9 pypy3.10
interpreter: pypy3.9 pypy3.10 pypy3.11

# musllinux
- os: linux
Expand All @@ -442,15 +442,15 @@ jobs:
target: x86_64
- os: macos
target: aarch64
interpreter: 3.9 pypy3.9 pypy3.10
interpreter: 3.9 pypy3.9 pypy3.10 pypy3.11

# windows;
# x86_64 pypy builds are not PGO optimized
# i686 not supported by pypy
# aarch64 only 3.11 and up, also not PGO optimized
- os: windows
target: x86_64
interpreter: pypy3.9 pypy3.10
interpreter: pypy3.9 pypy3.10 pypy3.11
- os: windows
target: i686
python-architecture: x86
Expand Down Expand Up @@ -484,7 +484,7 @@ jobs:
with:
target: ${{ matrix.target }}
manylinux: ${{ matrix.manylinux }}
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10' }}
args: --release --out dist --interpreter ${{ matrix.interpreter || '3.9 3.10 3.11 3.12 3.13 pypy3.9 pypy3.10 pypy3.11' }}
rust-toolchain: stable
docker-options: -e CI

Expand Down
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ rust-version = "1.75"
[dependencies]
# TODO it would be very nice to remove the "py-clone" feature as it can panic,
# but needs a bit of work to make sure it's not used in the codebase
pyo3 = { version = "0.23.4", features = ["generate-import-lib", "num-bigint", "py-clone"] }
pyo3 = { version = "0.23.5", features = ["generate-import-lib", "num-bigint", "py-clone"] }
regex = "1.11.1"
strum = { version = "0.26.3", features = ["derive"] }
strum_macros = "0.26.4"
Expand Down Expand Up @@ -73,12 +73,12 @@ debug = true
strip = false

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

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

[lints.clippy]
dbg_macro = "warn"
Expand Down
7 changes: 1 addition & 6 deletions src/argument_markers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,7 @@ use pyo3::types::{PyDict, PyTuple};

use crate::tools::safe_repr;

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

0 comments on commit 9b860fa

Please sign in to comment.