Fixes #3548 - add a pyproject.toml (#4363)

This commit is contained in:
Alex Gaynor 2018-07-23 13:10:13 -04:00 committed by Donald Stufft
parent 162a17e246
commit 2af3d4c51b
3 changed files with 10 additions and 0 deletions

View file

@ -6,6 +6,8 @@ include LICENSE.APACHE
include LICENSE.BSD
include README.rst
include pyproject.toml
recursive-include docs *
recursive-include src/_cffi_src *.py *.c *.h
prune docs/_build

7
pyproject.toml Normal file
View file

@ -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'",
]

View file

@ -43,6 +43,7 @@ with open(os.path.join(src_dir, "cryptography", "__about__.py")) as f:
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":