diff --git a/Cargo.toml b/Cargo.toml index 540a19e4f089..78846bb7ec41 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,7 +30,7 @@ foreign-types-shared = "0.1" openssl = "0.10.80" openssl-sys = "0.9.116" pem = { version = "3", default-features = false } -pyo3 = { version = "0.29", features = ["abi3"] } +pyo3 = { version = "0.29", features = ["abi3", "abi3t"] } pyo3-build-config = { version = "0.29" } self_cell = "1" diff --git a/pyproject.toml b/pyproject.toml index 9ee9b787a077..60fca02c6279 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,10 +2,10 @@ # These requirements must be kept sync with the requirements in # ./.github/requirements/build-requirements.{in,txt} requires = [ - "maturin>=1.9.4,<2,!=1.12.0", + "maturin>=1.14.1,<2", # Must be kept in sync with `project.dependencies` - "cffi>=2.0.0; platform_python_implementation != 'PyPy'", + "cffi @ git+https://github.com/ngoldbaum/cffi@abi3t.abi3 ; platform_python_implementation != 'PyPy'", # Used by cffi (which import distutils, and in Python 3.12, distutils has # been removed from the stdlib, but installing setuptools puts it back) as # well as our build.rs for the rust/cffi bridge.