From 41aa41c372b162bc3d1d080af64256e92d1fc7e1 Mon Sep 17 00:00:00 2001 From: stevanovicmilan839 Date: Tue, 16 Aug 2022 15:28:23 +0200 Subject: [PATCH] Simplify pyproject.toml 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: https://github.com/pypa/setuptools/commit/f7d30a9529378cf69054b5176249e5457aaf640a 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: https://github.com/pypa/setuptools/issues/1689 --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c123f70..40a17b1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"