From 0da56a61b46946d2be591c7233b3021ea957d7ef Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 16 Apr 2023 19:48:31 -0400 Subject: [PATCH] Add blurb --- .../2023-04-16-19-48-21.gh-issue-103584.3mBTuM.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Misc/NEWS.d/next/Library/2023-04-16-19-48-21.gh-issue-103584.3mBTuM.rst diff --git a/Misc/NEWS.d/next/Library/2023-04-16-19-48-21.gh-issue-103584.3mBTuM.rst b/Misc/NEWS.d/next/Library/2023-04-16-19-48-21.gh-issue-103584.3mBTuM.rst new file mode 100644 index 000000000000000..d0acb7931359bcb --- /dev/null +++ b/Misc/NEWS.d/next/Library/2023-04-16-19-48-21.gh-issue-103584.3mBTuM.rst @@ -0,0 +1,12 @@ +Updated ``importlib.metadata`` with changes from ``importlib_metadata`` 5.2 +through 6.4.1, including: Support ``installed-files.txt`` for +``Distribution.files`` when present. ``PackageMetadata`` now stipulates an +additional ``get`` method allowing for easy querying of metadata keys that +may not be present. ``packages_distributions`` now honors packages and +modules with Python modules that not ``.py`` sources (e.g. ``.pyc``, +``.so``). Expand protocol for ``PackageMetadata.get_all`` to match the +upstream implementation of ``email.message.Message.get_all`` in +python/typeshed#9620. Declared ``Distribution`` as an abstract class, +enforcing definition of abstract methods in instantiated subclasses. +Deprecated expectation that ``PackageMetadata.__getitem__`` will return +``None`` for missing keys. In the future, it will raise a ``KeyError``.