Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support license-files as a list of strings in pyproject.toml #1715

Open
Calvin-L opened this issue Sep 7, 2024 · 0 comments
Open

Support license-files as a list of strings in pyproject.toml #1715

Calvin-L opened this issue Sep 7, 2024 · 0 comments

Comments

@Calvin-L
Copy link

Calvin-L commented Sep 7, 2024

The docs say:

The following files are always included and cannot be excluded:

That links to PEP 639, which gives this example for license-files:

[project]
license-files = ["LICEN[CS]E*", "AUTHORS*"]

However, hatchling doesn't accept this, throwing

TypeError: Field `project.license-files` must be a table

Reading the relevant code it looks like hatchling wants license-files.globs = [...] instead, but I don't see anything in the the hatchling docs about that, and it disagrees with the PEP. I think hatchling should accept the simpler official license-files = list-of-globs format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant