Skip to content

Commit 4acd8a1

Browse files
Fix license deprecation warnings (#75)
This PR fixes the following build warnings: ``` /home/runner/work/.../lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated !! ******************************************************************************** Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0). By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** ``` ``` /home/runner/work/.../lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated. !! ******************************************************************************** Please consider removing the following classifiers in favor of a SPDX license expression: License :: OSI Approved :: Apache Software License See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details. ******************************************************************************** ``` We were previously stuck specifying the license using the old method until #74 was merged, since we could not upgrade `setuptools` to a version which supported the newer approach. Now Python 3.8 is no longer supported by the project, we can use the newer method of specifying the license to avoid these warnings. This has the double benefit of having a single source of truth for the license, since we are delegating it to the existing `LICENSE` file. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 80ac8ea commit 4acd8a1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "aurora_dsql_django"
33
dynamic = ["version", "readme"]
44
description = "Aurora DSQL adapter for Django"
5-
license = {text = "Apache License 2.0"}
5+
license-files = ["LICENSE"]
66
authors = [{name = "Amazon Web Services"}]
77
requires-python = ">=3.9"
88
dependencies = [
@@ -11,7 +11,6 @@ dependencies = [
1111
]
1212
classifiers = [
1313
"Intended Audience :: Developers",
14-
"License :: OSI Approved :: Apache Software License",
1514
"Programming Language :: Python",
1615
"Programming Language :: Python :: 3.9",
1716
"Programming Language :: Python :: 3.10",

0 commit comments

Comments
 (0)