Skip to content

Setuptools warning: License classifiers are deprecated#55

Description

@hhoffstaette

Packaging fun 馃檮

Accidentally noticed the following:

>>> Compiling source in /tmp/portage/dev-python/btrfs-15/work/python-btrfs-15 ...
 * python3_14: running distutils-r1_run_phase distutils-r1_python_compile
 *   Building the wheel for python-btrfs-15 via setuptools.build_meta:__legacy__
python3.14 -m gpep517 build-wheel --prefix=/usr --backend setuptools.build_meta:__legacy__ --output-fd 3 --wheel-dir /tmp/portage/dev-python/btrfs-15/work/python-btrfs-15-python3_14/wheel
2026-05-06 10:19:45,606 gpep517 INFO Building wheel via backend setuptools.build_meta:__legacy__
/usr/lib/python3.14/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!

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

        License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)

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

!!
  self._finalize_license_expression()

I have only a cursory understanding about what's going on here, but apparently this means this line is supposed to be removed and replaced with the new way of declaring things.

Also see pypa/setuptools#4938

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions