File: drop-cffi-dep.patch

package info (click to toggle)
python-cryptography 45.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,400 kB
  • sloc: python: 52,617; java: 319; makefile: 161
file content (43 lines) | stat: -rw-r--r-- 1,446 bytes parent folder | download
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
43
From: Andrey Rakhmatullin <wrar@debian.org>
Date: Sat, 30 Aug 2025 18:42:28 +0500
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
---
 pyproject.toml | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 4746201..d801196 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,13 +3,6 @@
 # ./.github/requirements/build-requirements.{in,txt}
 requires = [
     "maturin>=1.8.6,<2",
-
-    # Must be kept in sync with `project.dependencies`
-    "cffi>=1.14; 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.
-    "setuptools!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2",
 ]
 build-backend = "maturin"
 
@@ -49,7 +42,6 @@ classifiers = [
 requires-python = ">=3.7,!=3.9.0,!=3.9.1"
 dependencies = [
     # Must be kept in sync with `build-system.requires`
-    "cffi>=1.14; platform_python_implementation != 'PyPy'",
 ]
 
 [project.urls]