Skip to content

Commit

Permalink
migrate a comment which mentioned pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
tdyas committed Mar 6, 2025
1 parent afd625a commit 4cb1421
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/python/pants/backend/python/target_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -940,8 +940,10 @@ class PythonTestsEntryPointDependenciesField(DictStringToStringSequenceField):
Plus, an `entry_points.txt` file will be generated in the sandbox so that
each of the `{PythonDistribution.alias}`s appear to be "installed". The
`entry_points.txt` file will only include the entry points requested on this
field. This allows the tests, or the code under test, to lookup entry points
metadata using something like `pkg_resources.iter_entry_points` from `setuptools`.
field. This allows the tests, or the code under test, to lookup entry points'
metadata using an API like the `importlib.metadata.entry_points()` API in the
standard library (available on older Python interpreters via the
`importlib-metadata` distribution).
"""
)

Expand Down

0 comments on commit 4cb1421

Please sign in to comment.