[issue43926] Clean metadata (importlib_metadata 4.0)

2021-05-02 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43926] Clean metadata (importlib_metadata 4.0)

2021-05-02 Thread Jason R. Coombs


Jason R. Coombs  added the comment:


New changeset 37e0c7850de902179b28f1378fbbc38a5ed3628c by Jason R. Coombs in 
branch 'master':
bpo-43926: Cleaner metadata with PEP 566 JSON support. (GH-25565)
https://github.com/python/cpython/commit/37e0c7850de902179b28f1378fbbc38a5ed3628c


--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43926] Clean metadata (importlib_metadata 4.0)

2021-04-23 Thread Jason R. Coombs


Change by Jason R. Coombs :


--
keywords: +patch
pull_requests: +24284
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/25565

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43926] Clean metadata (importlib_metadata 4.0)

2021-04-23 Thread Jason R. Coombs


New submission from Jason R. Coombs :

[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.

--
assignee: jaraco
components: Library (Lib)
messages: 391733
nosy: jaraco
priority: normal
severity: normal
status: open
title: Clean metadata (importlib_metadata 4.0)
type: enhancement
versions: Python 3.10

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com