Skip to content
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
This repository was archived by the owner on Mar 26, 2026. It is now read-only.

setuptools complaines about license classifiers #31

@fenugrec

Description

@fenugrec

Doesn't prevent the package from building.

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

        License :: OSI Approved

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

Trivial fix :

diff --git a/software/pyproject.toml b/software/pyproject.toml
index 15f0a9d..85687e9 100644
--- a/software/pyproject.toml
+++ b/software/pyproject.toml
@@ -9,10 +9,9 @@ name = "fx2"
 authors = [{name = "whitequark", email = "whitequark@whitequark.org"}]
 description = "A Python package for interacting with Cypress EZ-USB FX2 series chips"
 readme = "README.rst"
-license = {text = "BSD-0-clause"}
+license = "0BSD"
 classifiers = [
   "Development Status :: 4 - Beta",
-  "License :: OSI Approved", # " :: 0-clause BSD License", (not in PyPI)
   "Topic :: Software Development :: Embedded Systems",
   "Topic :: System :: Hardware",
 ]

But I do see the comment " :: 0-clause BSD License", (not in PyPI) so maybe this fix is not strictly correct ?

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