You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the above API is the most common and convenient usage, you can get all
320
320
of that information from the ``Distribution`` class. A ``Distribution`` is an
321
321
abstract object that represents the metadata for
322
-
a Python :term:`packaging:Distribution Package`. You can
322
+
a Python `Distribution Package<https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_. You can
323
323
get the ``Distribution`` instance::
324
324
325
325
>>> from importlib.metadata import distribution # doctest: +SKIP
@@ -340,14 +340,14 @@ instance::
340
340
'MIT'
341
341
342
342
The full set of available metadata is not described here.
343
-
See the :ref:`packaging:core-metadata` for additional details.
343
+
See the `Core metadata specifications <https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata>`_ for additional details.
344
344
345
345
346
346
Distribution Discovery
347
347
======================
348
348
349
349
By default, this package provides built-in support for discovery of metadata
350
-
for file system and zip file :term:`packaging:Distribution Package`\s.
350
+
for file system and zip file `Distribution Package<https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_\s.
351
351
This metadata finder search defaults to ``sys.path``, but varies slightly in how it interprets those values from how other import machinery does. In particular:
352
352
353
353
- ``importlib.metadata`` does not honor :class:`bytes` objects on ``sys.path``.
@@ -357,7 +357,7 @@ This metadata finder search defaults to ``sys.path``, but varies slightly in how
357
357
Extending the search algorithm
358
358
==============================
359
359
360
-
Because :term:`packaging:Distribution Package` metadata
360
+
Because `Distribution Package<https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_ metadata
361
361
is not available through :data:`sys.path` searches, or
362
362
package loaders directly,
363
363
the metadata for a distribution is found through import
0 commit comments