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 ------ 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 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'] 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']},