From 59c36c774227a527946d52d18656ba8cfdd6da7d Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Wed, 16 Aug 2023 15:21:55 +0100 Subject: [PATCH] Remove distutils from ``importlib.metadata`` --- Doc/library/importlib.metadata.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Doc/library/importlib.metadata.rst b/Doc/library/importlib.metadata.rst index d2cc769e2c8400..e9db09e5f75a3a 100644 --- a/Doc/library/importlib.metadata.rst +++ b/Doc/library/importlib.metadata.rst @@ -86,8 +86,9 @@ You can get the version string for ``wheel`` by running the following: >>> version('wheel') # doctest: +SKIP '0.32.3' -You can also get a collection of entry points selectable by properties of the EntryPoint (typically 'group' or 'name'), such as -``console_scripts``, ``distutils.commands`` and others. Each group contains a +You can also get a collection of entry points selectable by properties of +the EntryPoint (typically 'group' or 'name'), such as +``console_scripts``, ``gui_scripts`` and others. Each group contains a collection of :ref:`EntryPoint ` objects. You can get the :ref:`metadata for a distribution `:: @@ -127,7 +128,7 @@ a collection of all ``EntryPoint`` objects with ``names`` and ``groups`` attributes for convenience:: >>> sorted(eps.groups) # doctest: +SKIP - ['console_scripts', 'distutils.commands', 'distutils.setup_keywords', 'egg_info.writers', 'setuptools.installation'] + {'array_api', 'console_scripts', 'gui_scripts', 'pytest11', 'sphinx.html_themes'} ``EntryPoints`` has a ``select`` method to select entry points matching specific properties. Select entry points in the