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
---
 pyproject.toml | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/pyproject.toml b/pyproject.toml
index 13d8b2c..9f92fe6 100644
--- a/pyproject.toml
+++ b/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!=74.0.0,!=74.1.0,!=74.1.1,!=74.1.2",
 ]
 build-backend = "maturin"
 
@@ -49,7 +43,6 @@ classifiers = [
 requires-python = ">=3.7,!=3.9.0,!=3.9.1"
 dependencies = [
     # Must be kept in sync with `build-system.requires`
-    "cffi>=1.12; platform_python_implementation != 'PyPy'",
 ]
 
 [project.urls]
