Skip to content

[BUG] license-files should be allowed in [project]?! #4828

@calestyo

Description

@calestyo

setuptools version

75.6.0

Python version

3.13

OS

Debian

Additional environment information

No response

Description

Hey.

Not sure whether you guys already work on this (cause I saw #4706, which seems however to be rather about License-Expression), but AFAIU https://packaging.python.org/en/latest/specifications/pyproject-toml/#license-files, the license-files key should now be allowed in [project], but setuptools errors out on such pyproject.toml:

…
ValueError: invalid pyproject.toml config: `project`.
configuration error: `project` must not contain {'license-files'} properties

Also, the same key should then probably be removed from the Setuptools-specific configuration?!

Cheers,
Chris.

Expected behavior

see above

How to Reproduce

see above

Output

... how I hat such enforced templates ^^

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs TriageIssues that need to be evaluated for severity and status.bug

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions