Skip to content

Commit

Permalink
Simplify pyproject.toml
Browse files Browse the repository at this point in the history
https://code.djangoproject.com/ticket/33778

The wheel dependency is redundant and discouraged here. Setuptools adds
this dependency via the backend automatically since day one. It was
historically included in the documentation but it was a mistake. See:
pypa/setuptools@f7d30a9

The legacy backend was never supposed to be used in pyproject.toml. It
is only an "internal" fallback that is used by tools like pip when
pyproject.toml is not present at all. The regular backend must always be
used in pyproject.toml. See:
pypa/setuptools#1689
  • Loading branch information
francoisfreitag committed Aug 16, 2022
1 parent 4210327 commit db5647f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
[build-system]
requires = [
"setuptools>=42",
"wheel",
"setuptools_scm[toml]>=3.4",
]
build-backend = "setuptools.build_meta:__legacy__"
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
write_to = "phonenumber_field/version.py"

0 comments on commit db5647f

Please sign in to comment.