From 0d43f412c493d5d360f69052dc4a1a594468121b Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 11 Nov 2022 17:37:23 +0100 Subject: [PATCH] Switch to setuptools-scm >= 7.0.0 pyproject.toml: Switch to setuptools-scm >= 7.0.0, which allows dropping setuptools-scm-git-archive. Remove wheel, as it is not required for building using PEP517 tooling (i.e. setuptools, setuptools-scm, build, installer). setup.py: Raise required setuptools-scm version to match the build-system requirements in pyproject.toml. --- pyproject.toml | 6 ++---- setup.py | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index e3f25bf7..fd6ab5f2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,7 @@ [build-system] requires = [ - "setuptools >= 42", - "setuptools_scm[toml] >= 3.5.0", - "setuptools_scm_git_archive >= 1.1", - "wheel >= 0.33.6", + "setuptools >= 45", + "setuptools_scm[toml] >= 7.0.0", ] build-backend = "setuptools.build_meta" diff --git a/setup.py b/setup.py index 2c120491..05a7ea89 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ packages=["pytest_html"], package_data={"pytest_html": ["resources/*"]}, entry_points={"pytest11": ["html = pytest_html.plugin"]}, - setup_requires=["setuptools_scm"], + setup_requires=["setuptools_scm[toml]>=7.0.0"], install_requires=["py>=1.8.2", "pytest>=5.0,!=6.0.0", "pytest-metadata"], license="Mozilla Public License 2.0 (MPL 2.0)", keywords="py.test pytest html report",