X Tutup
Skip to content

Metadata 2.1 updates#412

Merged
ncoghlan merged 5 commits intopypa:masterfrom
di:metadata-1.3-updates
Mar 4, 2018
Merged

Metadata 2.1 updates#412
ncoghlan merged 5 commits intopypa:masterfrom
di:metadata-1.3-updates

Conversation

@di
Copy link
Member

@di di commented Dec 8, 2017

This PR captures all changes we need to make now that PEP 566 is accepted.

Fixes #410, fixes #411, closes #449.

(cc @takluyver)

@di di force-pushed the metadata-1.3-updates branch from 87982ad to 8fe8677 Compare December 8, 2017 16:22
regex (run with ``re.IGNORECASE``)::

The name of the distributions.
^([A-Z0-9]|[A-Z0-9][A-Z0-9._-]*[A-Z0-9])$
Copy link
Member

@takluyver takluyver Dec 8, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth adding a prose description of this as well? Here's some words we could use:

A valid name consists only of ASCII letters and numbers, period, underscore and hyphen. It must start and end with a letter or number.

@di di changed the title Metadata 1.3 updates [WIP] Metadata 2.1 updates [WIP] Feb 9, 2018
@ncoghlan
Copy link
Member

PEP 566 has been accepted: python/peps@c839748

However, the PR requires a few updates to match the accepted version of the PEP:

  • metadata version is now 2.1
  • needs versionadded notes for Description-Content-Type and Provides-Extra
  • Description can now be the metadata body (and needs a versionchanged note for that)
  • Requires-Dist et al should have a versionchanged note for 2.1 that says something like: "The field format specification was relaxed to accept the syntax used by popular publishing tools. Metadata consumers may want to use the more relaxed formatting rules even for metadata files that are nominally version 1.2" (Alternatively, it may make sense to have a separate section on interpreting older metadata, and reduce the note on each field to just the first sentence about relaxing the rules to match common practices).

@di di force-pushed the metadata-1.3-updates branch from 8fe8677 to f9dcd98 Compare March 3, 2018 19:15
@di di changed the title Metadata 2.1 updates [WIP] Metadata 2.1 updates Mar 3, 2018
@di
Copy link
Member Author

di commented Mar 3, 2018

@ncoghlan I think I've addressed all your points (thank you for the checklist, BTW). Could you review/merge?

@ncoghlan ncoghlan merged commit e634317 into pypa:master Mar 4, 2018
@ncoghlan
Copy link
Member

ncoghlan commented Mar 4, 2018

Huzzah! I'll go mark the PEP as Final as well :)

ncoghlan added a commit to python/peps that referenced this pull request Mar 4, 2018
pypa/packaging.python.org#412 has been
merged, updating the core metadata specification to match the PEP.
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.

Metadata spec: version spec without parentheses? Metadata spec: what's a valid name?

4 participants

X Tutup