Fixes #3548 - add a pyproject.toml (#4363)
diff --git a/MANIFEST.in b/MANIFEST.in
index b05a869..373c242 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -6,6 +6,8 @@
include LICENSE.BSD
include README.rst
+include pyproject.toml
+
recursive-include docs *
recursive-include src/_cffi_src *.py *.c *.h
prune docs/_build
diff --git a/pyproject.toml b/pyproject.toml
new file mode 100644
index 0000000..461675f
--- /dev/null
+++ b/pyproject.toml
@@ -0,0 +1,7 @@
+[build-system]
+# Must be kept in sync with `setup_requirements` in `setup.py`
+requires = [
+ "setuptools>=18.5",
+ "wheel",
+ "cffi>=1.7,!=1.11.3; python_implementation != 'PyPy'",
+]
diff --git a/setup.py b/setup.py
index 2fbbd04..8bd31bd 100644
--- a/setup.py
+++ b/setup.py
@@ -43,6 +43,7 @@
VECTORS_DEPENDENCY = "cryptography_vectors=={0}".format(about['__version__'])
+# `setup_requirements` must be kept in sync with `pyproject.toml`
setup_requirements = ["cffi>=1.7,!=1.11.3"]
if platform.python_implementation() == "PyPy":