From f7f7012fb66b73b187e97cae9529cb04dc7b816f Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 31 Jul 2025 10:28:28 +0200 Subject: [PATCH 1/2] PEP 639 compliance --- pyproject.toml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index d6005cd3..d9b7b415 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,7 +3,7 @@ [build-system] build-backend = "_own_version_helper:build_meta" requires = [ - "setuptools>=61", + "setuptools>=77.0.3", 'tomli<=2.0.2; python_version < "3.11"', ] backend-path = [ @@ -15,7 +15,8 @@ backend-path = [ name = "setuptools-scm" description = "the blessed package to manage your versions by scm tags" readme = "README.md" -license.file = "LICENSE" +license = "MIT" +license-files = ["LICENSE"] authors = [ {name="Ronny Pfannschmidt", email="opensource@ronnypfannschmidt.de"} ] @@ -23,7 +24,6 @@ requires-python = ">=3.8" classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", - "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", From 2121cdeb189f62c3403cf3a4a6044e0fe9d07282 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Thu, 31 Jul 2025 15:33:42 +0200 Subject: [PATCH 2/2] No need to explictly specify LICENSE file Indeed setuptools will automatically pick up files with standard names, including `LICEN[CS]E*`: https://setuptools.pypa.io/en/latest/userguide/miscellaneous.html --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index d9b7b415..79399984 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,7 +16,6 @@ name = "setuptools-scm" description = "the blessed package to manage your versions by scm tags" readme = "README.md" license = "MIT" -license-files = ["LICENSE"] authors = [ {name="Ronny Pfannschmidt", email="opensource@ronnypfannschmidt.de"} ]