Skip to content

Deprecated License Expression in pyproject.toml #209

@Grochocinski

Description

@Grochocinski

Describe the Bug

The pyproject.toml file contains an outdated license classifier (License :: OSI Approved :: MIT License) and raises the following warning when the package is built: By 2026-Feb-18, you need to update your project and remove deprecated calls or your builds will no longer be supported.

Steps To Reproduce

  1. Run uv sync to resolve dependency versions and install dependencies
  2. Run uv build to build the package (building manually via setuptools works too)

Expected Behavior

No warnings when building the package

Environment

Please provide some details about your environment to help us replicate the bug:

  • Operating System: Windows 11
  • Python Version: 3.13.9

Screenshots (If Applicable)

C:\Users\will_\AppData\Local\uv\cache\builds-v0\.tmpDUWmjF\Lib\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.
        ********************************************************************************

!!
  corresp(dist, value, root_dir)
C:\Users\will_\AppData\Local\uv\cache\builds-v0\.tmpDUWmjF\Lib\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 :: MIT License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  dist._finalize_license_expression()
C:\Users\will_\AppData\Local\uv\cache\builds-v0\.tmpDUWmjF\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

        ********************************************************************************
        Please consider removing the following classifiers in favor of a SPDX license expression:

        License :: OSI Approved :: MIT License

        See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
        ********************************************************************************

!!
  self._finalize_license_expression()

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions