You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PackageMetadata as returned by metadata()
and Distribution.metadata() now provides normalized
metadata honoring PEP-566:
If a long description is provided in the payload of the
RFC 822 value, it can be retrieved as the Description
field.
Any multi-line values in the metadata will be returned as
such.
For any multi-line values, line continuation characters
are removed. This backward-incompatible change means
that any projects relying on the RFC 822 line continuation
characters being present must be tolerant to them having
been removed.
Add a json property that provides the metadata
converted to a JSON-compatible form per PEP-566.
These changes would be a nice addition to Python 3.10.
Activity
jaraco commentedon Apr 23, 2021
importlib_metadata 4.0 introduced these important changes to the
metadatafunction:PackageMetadataas returned bymetadata()and
Distribution.metadata()now provides normalizedmetadata honoring PEP-566:
RFC 822 value, it can be retrieved as the
Descriptionfield.
such.
are removed. This backward-incompatible change means
that any projects relying on the RFC 822 line continuation
characters being present must be tolerant to them having
been removed.
jsonproperty that provides the metadataconverted to a JSON-compatible form per PEP-566.
These changes would be a nice addition to Python 3.10.
jaraco commentedon May 2, 2021
New changeset 37e0c78 by Jason R. Coombs in branch 'master':
bpo-43926: Cleaner metadata with PEP-566 JSON support. (GH-25565)
37e0c78