This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author jaraco
Recipients jaraco
Date 2021-04-23.20:45:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1619210744.46.0.218619498947.issue43926@roundup.psfhosted.org>
In-reply-to
Content
[importlib_metadata 4.0](https://importlib-metadata.readthedocs.io/en/latest/history.html#v4-0-0) introduced these important changes to the `metadata` function:

``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.
History
Date User Action Args
2021-04-23 20:45:44jaracosetrecipients: + jaraco
2021-04-23 20:45:44jaracosetmessageid: <1619210744.46.0.218619498947.issue43926@roundup.psfhosted.org>
2021-04-23 20:45:44jaracolinkissue43926 messages
2021-04-23 20:45:44jaracocreate