Skip to content

PEP 639 compliance - #914

Merged
layday merged 4 commits into
pypa:mainfrom
DimitriPapadopoulos:PEP639
Aug 1, 2025
Merged

layday merged 4 commits into
pypa:mainfrom
DimitriPapadopoulos:PEP639

Conversation

@DimitriPapadopoulos

@DimitriPapadopoulos DimitriPapadopoulos commented Jul 31, 2025 •

Copy link
Copy Markdown
Contributor

Keep the redundant Trove classifier for now, until tools such as pip-licenses support PEP 639.

Also, implicit is better than explicit: flit can discover the LICENSE file by default, as documented under New style metadata:

license-files

A list of glob patterns for license files to include. Defaults to ['COPYING*', 'LICEN[CS]E*'].

@layday

layday commented Jul 31, 2025

Copy link
Copy Markdown
Member

You'll want to bump flit to 3.11 for this.

Keep the redundant Trove classifier for now, until tools such as
pip-licenses support PEP 639.
Indeed flit will automatically pick up files with standard names,
including `LICEN[CS]E*`:
https://flit.pypa.io/en/stable/pyproject_toml.html#new-style-metadata
flit_core.config.ConfigError: License classifiers are deprecated in favor of the license expression.
                              Remove the 'License :: OSI Approved :: MIT License' classifier
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

Successfully merging this pull request may close these issues.

3 participants