Uh oh!
There was an error while loading. Please reload this page.
Fix license metadata to follow PEP 621 - #3326
Conversation
amyreese
commented
Oct 10, 2022
I would imagine this is not worthy of a changelog entry? |
ichard26
left a comment
There was a problem hiding this comment.
Good catch! Feel free to add yourself to the AUTHORS list :)
Uh oh!
There was an error while loading. Please reload this page.
amyreese
commented
Oct 10, 2022
Fixed formatting and updated authors list. :) |
hynek
commented
Oct 11, 2022
JFTR, a plain SPDX id is part of the hopefully as-good-as-passed PEP 639 that Hatch already implements. Technically, the new metadata is wrong-ish, because it’s supposed to be the license, not the license ID. That’s not very useful tho (and clutters the PyPI view), so nobody does it (including myself) and hence PEP 639. All that to say: this should be reverted once PEP 639 passes. ;) |
amyreese
commented
Oct 11, 2022
Neat! When that gets accepted, will PEP621 get updated with the new information, or at least a link to PEP639?
I agree with this sentiment, however, I originally found this because some of our tooling supporting PEP 621 was broken by this metadata. It would be nice to at least give some amount of time for tooling to catch up to PEP 639 before adopting that new format. 😅 |
hynek
commented
Oct 12, 2022
One would hope! Currently it does refer to it in nebulous terms:
Yeah my editor is unhappy too. The Python packaging construction site keeps giving. |
Description
PEP 621 requires the
licensefield to be a table with either afileortextkey: https://peps.python.org/pep-0621/#licenseThe current value of
license = "MIT"is not PEP 621 compliant, even though hatchling allows it.