]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` (#23758)
authorJason R. Coombs <jaraco@jaraco.com>
Thu, 31 Dec 2020 17:56:43 +0000 (12:56 -0500)
committerGitHub <noreply@github.com>
Thu, 31 Dec 2020 17:56:43 +0000 (12:56 -0500)
commitdfdca85dfa64e72df385b3a486f85b773fc0f135
treef035325cbc5e8787d8e7824bdd7ad4edbe42e795
parentf4936ad1c4d0ae1948e428aeddc7d3096252dae4
bpo-42382: In importlib.metadata, `EntryPoint` objects now expose `dist` (#23758)

* bpo-42382: In importlib.metadata, `EntryPoint` objects now expose a `.dist` object referencing the `Distribution` when constructed from a `Distribution`.

Also, sync importlib_metadata 3.3:

- Add support for package discovery under package normalization rules.
- The object returned by `metadata()` now has a formally-defined protocol called `PackageMetadata` with declared support for the `.get_all()` method.

* Add blurb

* Remove latent footnote.
Doc/library/importlib.metadata.rst
Lib/importlib/metadata.py
Lib/test/test_importlib/fixtures.py
Lib/test/test_importlib/test_main.py
Lib/test/test_importlib/test_metadata_api.py
Lib/test/test_importlib/test_zip.py
Misc/NEWS.d/next/Library/2020-12-13-22-05-35.bpo-42382.2YtKo5.rst [new file with mode: 0644]