bpo-44246: Update What's New for importlib.metadata. (#26408)

* bpo-44246: Update What's New for importlib.metadata.

Bump version of importlib_metadata included.
Add note about compatibility notice and fix link to entry_points documentation.
Add note about removal of access by index on Distribution.entry_points.

* Fix syntax mistake in issue reference.

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>

* Fix broken reference in entry-points.

Co-authored-by: Ken Jin <28750310+Fidget-Spinner@users.noreply.github.com>
This commit is contained in:
Jason R. Coombs 2021-05-27 19:36:06 -04:00 committed by GitHub
parent e90e042218
commit 28f12c9f4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 3 deletions

View File

@ -1039,11 +1039,17 @@ and will be incorrect in some rare cases, including some ``_``-s in
importlib.metadata importlib.metadata
------------------ ------------------
Feature parity with ``importlib_metadata`` 3.7. Feature parity with ``importlib_metadata`` 4.2
(`history <https://importlib-metadata.readthedocs.io/en/latest/history.html>`_).
:func:`importlib.metadata.entry_points` now provides a nicer experience :ref:`importlib.metadata entry points <entry-points>`
now provides a nicer experience
for selecting entry points by group and name through a new for selecting entry points by group and name through a new
:class:`importlib.metadata.EntryPoints` class. :class:`importlib.metadata.EntryPoints` class. See the Compatibility
Note in the docs for more info on the deprecation and usage.
Incidentally, these changes also removed access by index on the
result of :func:`importlib.metadata.Distribution.entry_points`
(see :issue:`44246` for more detail).
Added :func:`importlib.metadata.packages_distributions` for resolving Added :func:`importlib.metadata.packages_distributions` for resolving
top-level Python modules and packages to their top-level Python modules and packages to their