Skip to content

CLI wheel build fails with setuptools PEP 639 license classifier error #8

@chenchenchenchencj

Description

@chenchenchenchencj

Problem

Building the CLI wheel in Docker fails because the latest setuptools enforces PEP 639, which prohibits using both a license field and a License :: classifier simultaneously.

Error:

setuptools.errors.InvalidConfigError: License classifiers have been superseded by license expressions (see https://peps.python.org/pep-0639/). Please remove:

License :: OSI Approved :: Apache Software License

Root Cause

cli/pyproject.toml declares license = "Apache-2.0" (PEP 639 expression) but also includes the legacy classifier License :: OSI Approved :: Apache Software License. Newer versions of setuptools reject this combination.

Expected Behavior

pip wheel should build the CLI package successfully.

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