]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Remove dead links to `pkg_resources` in `importlib` docs (GH-148344) (#148964)
authorStan Ulbrych <stan@python.org>
Thu, 30 Apr 2026 19:42:35 +0000 (20:42 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Apr 2026 19:42:35 +0000 (20:42 +0100)
(cherry picked from commit 1b691564a785721dc71e230a9809dd37adff5f13)

Doc/library/importlib.metadata.rst
Doc/library/importlib.resources.rst

index 12014309e26ec9329a3e1cc0cbab8c81e5aa3e86..3d5f4420a4f3823b0b24f4dee6277f305da939be 100644 (file)
@@ -18,11 +18,9 @@ the metadata of an installed `Distribution Package <https://packaging.python.org
 such as its entry points
 or its top-level names (`Import Package <https://packaging.python.org/en/latest/glossary/#term-Import-Package>`_\s, modules, if any).
 Built in part on Python's import system, this library
-intends to replace similar functionality in the `entry point
-API`_ and `metadata API`_ of ``pkg_resources``. Along with
-:mod:`importlib.resources`,
-this package can eliminate the need to use the older and less efficient
-``pkg_resources`` package.
+provides the entry point and metadata APIs that were previously
+exposed by the now-removed ``pkg_resources`` package. Along with
+:mod:`importlib.resources`, it supersedes ``pkg_resources``.
 
 ``importlib.metadata`` operates on third-party *distribution packages*
 installed into Python's ``site-packages`` directory via tools such as
@@ -588,7 +586,3 @@ packages served by the ``DatabaseImporter``, assuming that the
 The ``DatabaseDistribution`` may also provide other metadata files, like
 ``RECORD`` (required for ``Distribution.files``) or override the
 implementation of ``Distribution.files``. See the source for more inspiration.
-
-
-.. _`entry point API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#entry-points
-.. _`metadata API`: https://setuptools.readthedocs.io/en/latest/pkg_resources.html#metadata-api
index 46eab78a22b66a999c4934b64c730df3be45ba2b..45d42634f66292a208d61208168409390a522011 100644 (file)
@@ -39,14 +39,6 @@ for example, a package and its resources can be imported from a zip file using
 
 .. note::
 
-   This module provides functionality similar to `pkg_resources
-   <https://setuptools.readthedocs.io/en/latest/pkg_resources.html>`_ `Basic
-   Resource Access
-   <https://setuptools.readthedocs.io/en/latest/pkg_resources.html#basic-resource-access>`_
-   without the performance overhead of that package.  This makes reading
-   resources included in packages easier, with more stable and consistent
-   semantics.
-
    The standalone backport of this module provides more information
    on `using importlib.resources
    <https://importlib-resources.readthedocs.io/en/latest/using.html>`_ and