Skip to content

Commit 0d30f5d

Browse files
pgansslereaperhulk
authored andcommitted
Add PEP 517 to pyproject.toml (#4783)
This puts a new minimum on the PEP 518 requirement for `setuptools` because older versions of setuptools' PEP 517 backend will fail to include `setup.py` in an sdist.
1 parent 2130f89 commit 0d30f5d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
[build-system]
2-
# Must be kept in sync with `setup_requirements` in `setup.py`
32
requires = [
4-
"setuptools>=18.5",
3+
# The minimum setuptools version is specific to the PEP 517 backend,
4+
# and may be stricter than the version required in `setup.py`
5+
"setuptools>=40.6.0",
56
"wheel",
7+
# Must be kept in sync with the `setup_requirements` in `setup.py`
68
"cffi>=1.8,!=1.11.3; python_implementation != 'PyPy'",
79
]
10+
build-backend = "setuptools.build_meta"

0 commit comments

Comments
 (0)