Skip to content

Commit 3f28634

Browse files
mgornydi
andauthored
Multiple pyproject.toml fixes (#251)
* Remove redundant wheel dep from pyproject.toml Remove the redundant `wheel` dependency, as it is added by the backend automatically. Listing it explicitly in the documentation was a historical mistake and has been fixed since, see: pypa/setuptools@f7d30a9 Signed-off-by: Michał Górny <[email protected]> * Remove install-time dependencies from pyproject.toml requires Remove the install-time dependencies from pyproject.toml `requires` key. This key is used to specify the packages that are needed to build the wheel, and FWICS none of these packages are actually needed throughout the run of `setup.py`. I can also confirm that a pure venv `python -m build -w` works fine without them. Signed-off-by: Michał Górny <[email protected]> * Use the non-legacy setuptools backend in pyproject.toml Use the regular `setuptools.build_meta` backend rather than the `__legacy__` backend. The latter was never meant to be used explicitly in `pyproject.toml` files but rather as implicit fallback in tools such as pip(1). See e.g.: pypa/setuptools#1689 Signed-off-by: Michał Górny <[email protected]> Co-authored-by: Dustin Ingram <[email protected]>
1 parent 4f5fe3c commit 3f28634

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[build-system]
2-
requires = ["setuptools>=40.8.0", "wheel", "bleach>=2.1.0", "docutils>=0.13.1", "Pygments>=2.5.1"]
3-
build-backend = "setuptools.build_meta:__legacy__"
2+
requires = ["setuptools>=40.8.0"]
3+
build-backend = "setuptools.build_meta"
44

55
# TODO: Remove when https://github.com/mgedmin/check-manifest/pull/155 released
66
[tool.check-manifest]

0 commit comments

Comments
 (0)