Skip to content

deprecated license metadata #105

@2bndy5

Description

@2bndy5

Building from source (with -v enabled) now yields the following warning:

  !!

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

          License :: OSI Approved :: GNU General Public License v2 (GPLv2)

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

  !!

Which is triggered by

"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",

But the license already is specified using (with SPDX-incompatible expression)
license = {text = "GPLv2"}

Solution

Simply remove this line:

"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",

And change the license metadata:

-license = {text = "GPLv2"} 
+license = "GPL-2.0-only"

Additional Context

The LICENSE file is already automatically copied for both source and binary distributions. So, this change would be purely metadata only.

According to PEP639, a new metadata field can be used to specify what LICENSE files are copied. However, using this new field would require newer versions of pip installed. This new field is really only applicable when multiple licenses are to be included with distributions; previously projects had to manually tell pip what files to copy in case multiple licenses were used. We are only using 1 license for this project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions