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

"Name" metadata keyword not recognized #2592

Closed
gecrooks opened this issue Mar 5, 2021 · 2 comments · Fixed by #2593
Closed

"Name" metadata keyword not recognized #2592

gecrooks opened this issue Mar 5, 2021 · 2 comments · Fixed by #2593

Comments

@gecrooks
Copy link

gecrooks commented Mar 5, 2021

Starting with v53.1.0 setuptools seems to no longer recognizes the "Name" key in the [metadata] section of setup.cfg. A "name" key is recognized.

The metadata spec uses "Name". https://packaging.python.org/specifications/core-metadata/.

Possible related to issue #1937 that was merged in at that release.

@melissa-kun-li
Copy link
Contributor

@jaraco If we'd like metadata keys to be case-insensitive, I've written a fix to make metadata keys all convert to lowercase as it was originally. I'll go ahead and submit PR

@jaraco
Copy link
Member

jaraco commented Mar 6, 2021

The metadata spec uses "Name". https://packaging.python.org/specifications/core-metadata/.

The metadata spec isn't relevant here. That spec also uses Description where Setuptools expects long_description.

@melissa-kun-li Thanks for helping here. I advise to restore compatibility, but deprecate the use of keys that are not lowercase (same as how dashes are deprecated).

jaraco added a commit that referenced this issue Mar 7, 2021
Warn for uppercase key usage in metadata in setup.cfg, provides compatibility. Fixes #2592
This was referenced Mar 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants