From 2a62c98921f296572093b5c8e4833cf9e2c1d3f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20P=C3=A4rsson?= Date: Sat, 3 Oct 2026 09:17:55 +0200 Subject: [PATCH 1/4] build: Require setuptools>=77 to build Older setuptools versions ignore the license_expression argument. --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index a865d61..a3166fa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,7 @@ +[build-system] +requires = ["setuptools>=77"] +build-backend = "setuptools.build_meta" + [tool.black] line-length = 110 target_version = ['py310'] From a0b0dc28da9d440017a480f3a209bd2c7c360234 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20P=C3=A4rsson?= Date: Sat, 3 Oct 2026 09:17:56 +0200 Subject: [PATCH 2/4] build: Use SPDX license expression in package metadata Fixes #317. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 558ae56..ad91e90 100644 --- a/setup.py +++ b/setup.py @@ -62,7 +62,8 @@ def read_injector_variable(name): description=description, long_description=long_description, long_description_content_type='text/markdown', - license='BSD', + license_expression='BSD-3-Clause', + license_files=['COPYING'], platforms=['any'], packages=['injector'], package_data={'injector': ['py.typed']}, From 964cd52aac0bec0ddc0d27414a7fd059652ddcd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20P=C3=A4rsson?= Date: Sat, 3 Oct 2026 09:17:56 +0200 Subject: [PATCH 3/4] docs: Use SPDX license identifier in module docstring --- injector/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/injector/__init__.py b/injector/__init__.py index 55f7ab2..402c47c 100644 --- a/injector/__init__.py +++ b/injector/__init__.py @@ -11,7 +11,7 @@ """Injector - Python dependency injection framework, inspired by Guice :copyright: (c) 2012 by Alec Thomas -:license: BSD +:license: BSD-3-Clause """ import functools From 551cfb6bc88a80c3052831930e4f6a2043acba4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20P=C3=A4rsson?= Date: Sat, 3 Oct 2026 09:17:56 +0200 Subject: [PATCH 4/4] docs: Update changelog with SPDX license change --- CHANGES | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGES b/CHANGES index ae5df99..3794d42 100644 --- a/CHANGES +++ b/CHANGES @@ -5,6 +5,7 @@ Injector Change Log ------ - Dropped support for Python 3.8 and 3.9. Python 3.10+ is now required. +- Use the SPDX license identifier `BSD-3-Clause` in package metadata. 0.24.0 ------