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
319
319
of that information from the ``Distribution`` class. A ``Distribution`` is an
320
320
abstract object that represents the metadata for
321
-
a Python :term:`packaging:Distribution Package`. You can
321
+
a Python `Distribution Package<https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_. You can
322
322
get the ``Distribution`` instance::
323
323
324
324
>>> from importlib.metadata import distribution # doctest: +SKIP
@@ -339,14 +339,14 @@ instance::
339
339
'MIT'
340
340
341
341
The full set of available metadata is not described here.
342
-
See the :ref:`packaging:core-metadata` for additional details.
342
+
See the `Core metadata specifications <https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata>`_ for additional details.
343
343
344
344
345
345
Distribution Discovery
346
346
======================
347
347
348
348
By default, this package provides built-in support for discovery of metadata
349
-
for file system and zip file :term:`packaging:Distribution Package`\s.
349
+
for file system and zip file `Distribution Package<https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_\s.
350
350
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:
351
351
352
352
- ``importlib.metadata`` does not honor :class:`bytes` objects on ``sys.path``.
@@ -356,7 +356,7 @@ This metadata finder search defaults to ``sys.path``, but varies slightly in how
356
356
Extending the search algorithm
357
357
==============================
358
358
359
-
Because :term:`packaging:Distribution Package` metadata
359
+
Because `Distribution Package<https://packaging.python.org/en/latest/glossary/#term-Distribution-Package>`_ metadata
360
360
is not available through :data:`sys.path` searches, or
361
361
package loaders directly,
362
362
the metadata for a distribution is found through import
0 commit comments