Skip to content

Conversation

@danielfrankcom
Copy link
Contributor

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.

@danielfrankcom danielfrankcom merged commit 4acd8a1 into version-0 Oct 1, 2025
28 checks passed
@danielfrankcom danielfrankcom deleted the dev/frankcom/license-warning branch October 1, 2025 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants