45 lines
1.8 KiB
Diff
45 lines
1.8 KiB
Diff
--- a/Cargo.toml
|
|
+++ b/Cargo.toml
|
|
@@ -30,7 +30,8 @@ foreign-types-shared = "0.1"
|
|
openssl = "0.10.79"
|
|
openssl-sys = "0.9.115"
|
|
pem = { version = "3", default-features = false }
|
|
-pyo3 = { version = "0.28", features = ["abi3"] }
|
|
+# Disable abi3 for maturin 1.4.0 compatibility - build for specific Python version
|
|
+pyo3 = { version = "0.28" }
|
|
pyo3-build-config = { version = "0.28" }
|
|
self_cell = "1"
|
|
|
|
--- 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.4.0,<2,!=1.12.0",
|
|
|
|
# Must be kept in sync with `project.dependencies`
|
|
- "cffi>=2.0.0; platform_python_implementation != 'PyPy'",
|
|
+ "cffi>=1.16; 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.
|
|
@@ -22,7 +22,6 @@ authors = [
|
|
description = "cryptography is a package which provides cryptographic recipes and primitives to Python developers."
|
|
readme = "README.rst"
|
|
license = "Apache-2.0 OR BSD-3-Clause"
|
|
-license-files = [ "LICENSE", "LICENSE.APACHE", "LICENSE.BSD" ]
|
|
classifiers = [
|
|
"Development Status :: 5 - Production/Stable",
|
|
"Intended Audience :: Developers",
|
|
@@ -49,7 +48,7 @@ classifiers = [
|
|
requires-python = ">=3.9,!=3.9.0,!=3.9.1"
|
|
dependencies = [
|
|
# Must be kept in sync with `build-system.requires`
|
|
- "cffi>=2.0.0; platform_python_implementation != 'PyPy'",
|
|
+ "cffi>=1.16; platform_python_implementation != 'PyPy'",
|
|
# Must be kept in sync with ./.github/requirements/build-requirements.{in,txt}
|
|
"typing-extensions>=4.13.2; python_version < '3.11'",
|
|
]
|