From 52438284a4da69359eace6f40629dd7543513c6a Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Wed, 31 Jul 2024 14:02:27 -0400 Subject: [PATCH] Replace static version with setuptools-scm version. Ref #4530 --- MANIFEST.in | 20 -------------------- newsfragments/4530.feature.rst | 1 + pyproject.toml | 8 ++++---- 3 files changed, 5 insertions(+), 24 deletions(-) delete mode 100644 MANIFEST.in create mode 100644 newsfragments/4530.feature.rst diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 092612cb213..00000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,20 +0,0 @@ -recursive-include setuptools *.py *.exe *.xml *.tmpl -recursive-include tests *.py -recursive-include setuptools/tests *.html -recursive-include docs *.py *.txt *.rst *.conf *.css *.css_t Makefile indexsidebar.html -recursive-include setuptools/_vendor * -recursive-include pkg_resources *.py *.txt -recursive-include pkg_resources/tests/data * -recursive-include tools * -recursive-include newsfragments * -include *.py -include *.rst -include MANIFEST.in -include LICENSE -include launcher.c -include msvc-build-launcher.cmd -include mypy.ini -include pytest.ini -include tox.ini -include setuptools/tests/config/setupcfg_examples.txt -global-exclude *.py[cod] __pycache__ diff --git a/newsfragments/4530.feature.rst b/newsfragments/4530.feature.rst new file mode 100644 index 00000000000..a13f80bcbf2 --- /dev/null +++ b/newsfragments/4530.feature.rst @@ -0,0 +1 @@ +Replace static version with setuptools-scm version. \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 034de18f54d..b4002823654 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,11 +1,10 @@ [build-system] -requires = [] +requires = ["setuptools_scm[toml]>=3.4.1"] build-backend = "setuptools.build_meta" backend-path = ["."] [project] name = "setuptools" -version = "72.1.0" authors = [ { name = "Python Packaging Authority", email = "distutils-sig@python.org" }, ] @@ -26,6 +25,7 @@ keywords = ["CPAN PyPI distutils eggs package management"] requires-python = ">=3.8" dependencies = [ ] +dynamic = ["version"] [project.urls] Source = "https://github.com/pypa/setuptools" @@ -119,6 +119,8 @@ core = [ "platformdirs >= 2.6.2", ] +[tool.setuptools_scm] + [project.entry-points."distutils.commands"] alias = "setuptools.command.alias:alias" bdist_egg = "setuptools.command.bdist_egg:bdist_egg" @@ -189,5 +191,3 @@ namespaces = true [tool.distutils.sdist] formats = "zip" - -[tool.setuptools_scm]