@@ -171,16 +171,18 @@ group. Read `the setuptools docs
171
171
<https://setuptools.pypa.io/en/latest/userguide/entry_point.html> `_
172
172
for more information on entry points, their definition, and usage.
173
173
174
- *Compatibility Note *
175
-
176
- The "selectable" entry points were introduced in ``importlib_metadata ``
177
- 3.6 and Python 3.10. Prior to those changes, ``entry_points `` accepted
178
- no parameters and always returned a dictionary of entry points, keyed
179
- by group. With ``importlib_metadata `` 5.0 and Python 3.12,
180
- ``entry_points `` always returns an ``EntryPoints `` object. See
181
- `backports.entry_points_selectable <https://pypi.org/project/backports.entry-points-selectable >`_
182
- for compatibility options.
183
-
174
+ .. versionchanged :: 3.12
175
+ The "selectable" entry points were introduced in ``importlib_metadata ``
176
+ 3.6 and Python 3.10. Prior to those changes, ``entry_points `` accepted
177
+ no parameters and always returned a dictionary of entry points, keyed
178
+ by group. With ``importlib_metadata `` 5.0 and Python 3.12,
179
+ ``entry_points `` always returns an ``EntryPoints `` object. See
180
+ `backports.entry_points_selectable <https://pypi.org/project/backports.entry-points-selectable >`_
181
+ for compatibility options.
182
+
183
+ .. versionchanged :: 3.13
184
+ ``EntryPoint `` objects no longer present a tuple-like interface
185
+ (``__getitem__ ``).
184
186
185
187
.. _metadata :
186
188
@@ -342,9 +344,17 @@ instance::
342
344
>>> dist.metadata['License'] # doctest: +SKIP
343
345
'MIT'
344
346
347
+ For editable packages, an origin property may present :pep: `610 `
348
+ metadata::
349
+
350
+ >>> dist.origin.url
351
+ 'file:///path/to/wheel-0.32.3.editable-py3-none-any.whl'
352
+
345
353
The full set of available metadata is not described here.
346
354
See the `Core metadata specifications <https://packaging.python.org/en/latest/specifications/core-metadata/#core-metadata >`_ for additional details.
347
355
356
+ .. versionadded :: 3.13
357
+ The ``.origin `` property was added.
348
358
349
359
Distribution Discovery
350
360
======================
0 commit comments