Raise min setuptools and remove wheel from build (#86040)

* Raise min setuptools for license specifier

Raises the minimum setuptools version used for our build requirements to
support the new license identifiers. This removes a deprecation warning
emitted by setuptools and will avoid breaking the build when the old
format is eventually removed.

* Fix typos referencing PEP 639 in text

The respective metadata docs are
* https://packaging.python.org/en/latest/specifications/pyproject-toml/#license
* https://packaging.python.org/en/latest/specifications/core-metadata/#license-expression

---------

Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
This commit is contained in:
Jordan Borean
2025-11-04 13:33:31 +10:00
committed by GitHub
parent 829373bfb9
commit 55e4ba224d
2 changed files with 8 additions and 6 deletions

View File

@@ -0,0 +1,2 @@
minor_changes:
- The minimum required ``setuptools`` version is now ``77.0.3``, as it is needed for the new PEP 639 license format

View File

@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools >= 70.1, <= 80.3.1"] # lower bound to support controller Python versions, upper bound for latest version tested at release
requires = ["setuptools >= 77.0.3, <= 80.3.1"] # lower bound to support license/license-files (PEP 639), upper bound for latest version tested at release
build-backend = "setuptools.build_meta"
[project]
@@ -10,13 +10,17 @@ authors = [
]
description = "Radically simple IT automation"
readme = "README.md"
license = "GPL-3.0-or-later"
license-files = [
"COPYING",
"licenses/*.txt",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Natural Language :: English",
"Operating System :: POSIX",
"Programming Language :: Python :: 3",
@@ -44,10 +48,6 @@ dependencies = {file = "requirements.txt"}
[tool.setuptools]
include-package-data = false
license-files = [
"COPYING",
"licenses/*.txt",
]
[tool.setuptools.packages.find]
where = ["lib", "test/lib"]