aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2018-06-28 13:19:38 +0200
committerBenoit Pierre <benoit.pierre@gmail.com>2018-06-28 13:31:39 +0200
commit601f82e57247edf8505696304fbc7a3da4013cfc (patch)
tree7be4408b414738138db94214ce4f9fc96a18deb7
parent5c816483500519a07a3db4364daaced379780eb7 (diff)
downloadexternal_python_setuptools-601f82e57247edf8505696304fbc7a3da4013cfc.tar.gz
external_python_setuptools-601f82e57247edf8505696304fbc7a3da4013cfc.tar.bz2
external_python_setuptools-601f82e57247edf8505696304fbc7a3da4013cfc.zip
fix PEP 518 configuration
Add `build-system.requires` key to `pyproject.toml`: - this is necessary with pip 10.0.1, as otherwise the defaults will be to require both `setuptools` and `wheel` (and we only need the later) - a `pyproject.toml` with no `build-system.requires` key will be invalid and rejected by a future version of pip (see https://github.com/pypa/pip/issues/5416#issuecomment-399638608)
-rw-r--r--changelog.d/1404.misc.rst1
-rw-r--r--pyproject.toml3
2 files changed, 4 insertions, 0 deletions
diff --git a/changelog.d/1404.misc.rst b/changelog.d/1404.misc.rst
new file mode 100644
index 00000000..2d4bd629
--- /dev/null
+++ b/changelog.d/1404.misc.rst
@@ -0,0 +1 @@
+Fix PEP 518 configuration: set build requirements in ``pyproject.toml`` to ``["wheel"]``.
diff --git a/pyproject.toml b/pyproject.toml
index cffd0e9a..07c23bb5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,3 +1,6 @@
+[build-system]
+requires = ["wheel"]
+
[tool.towncrier]
package = "setuptools"
package_dir = "setuptools"