1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
From: Stefano Rivera <stefanor@debian.org>
Date: Sun, 8 Jan 2023 15:57:57 -0400
Subject: Remove run-time dependency on cffi
On Debian we ship a separate cffi-backend package (without the cffi
.egg-info), that just contains the run-time backend. This is all that
cryptography requires at runtime.
However, pkg_resources is pedantic and complains if it can't find
expected run-time dependency's .egg-info. To, avoid the problem, we drop
the dependency.
Bug-Debian: https://bugs.debian.org/1026537
---
setup.cfg | 1 -
1 file changed, 1 deletion(-)
Index: python-cryptography/pyproject.toml
===================================================================
--- python-cryptography.orig/pyproject.toml
+++ python-cryptography/pyproject.toml
@@ -3,12 +3,6 @@
# ./github/requirements/build-requirements.{in,txt}
requires = [
"maturin>=1,<2",
-
- # Must be kept in sync with `project.dependencies`
- "cffi>=1.12; platform_python_implementation != 'PyPy'",
- # Needed because cffi imports distutils, and in Python 3.12, distutils has
- # been removed from the stdlib, but installing setuptools puts it back.
- "setuptools",
]
build-backend = "maturin"
@@ -48,7 +42,6 @@ classifiers = [
requires-python = ">=3.7"
dependencies = [
# Must be kept in sync with `build-system.requires`
- "cffi>=1.12; platform_python_implementation != 'PyPy'",
]
[project.urls]
|