From fcfe0ef900f8aea0c218ce0d1f55f95a0ad707ea Mon Sep 17 00:00:00 2001 From: elhoim Date: Mon, 31 Aug 2026 13:52:36 +0000 Subject: [PATCH] Use SPDX license expression in pyproject.toml The project.license field used the deprecated PEP 621 file-table form ({ file = "LICENSE" }), which setuptools>=68 already flags with a SetuptoolsDeprecationWarning. Since build-system.requires pins setuptools>=68 with no upper bound and the workflow installs the latest setuptools/build each run, a future setuptools release can turn this into a hard build failure with no change in this repo. Switch to the SPDX license expression string form (license = "AGPL-3.0-or-later"), matching the AGPLv3 text in LICENSE. Verified by invoking setuptools.build_meta.prepare_metadata_for_build_wheel directly: the deprecation warning fires with the old file-table form and is gone after the fix. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 907ad3b..7117fb5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ version = "0.1.0" description = "CLI client for querying MISP expansion modules" readme = "README.md" requires-python = ">=3.10" -license = { file = "LICENSE" } +license = "AGPL-3.0-or-later" authors = [ { name = "misp-modules-cli contributors" } ]