From 4cb14212e2eef16201c0cf8a4495b9919deab33c Mon Sep 17 00:00:00 2001 From: Tom Dyas Date: Wed, 5 Mar 2025 19:16:27 -0500 Subject: [PATCH] migrate a comment which mentioned pkg_resources --- src/python/pants/backend/python/target_types.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/python/pants/backend/python/target_types.py b/src/python/pants/backend/python/target_types.py index 99108c49330..9d57e56d280 100644 --- a/src/python/pants/backend/python/target_types.py +++ b/src/python/pants/backend/python/target_types.py @@ -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). """ )