gorgeous-winter-99296
11/18/2022, 7:31 PMentry_points
. Textbook setup where we use importlib.metadata
to find our group and then load them dynamically. I'm porting the plugin host + some tooling to Pants, but it seems like the entry_points are never available. Which makes sense, I assume that Pants doesn't build and install the wheels for tests. Is there some magic incantation I can use to make entry_points work for tests, or do I need to mock it?happy-kitchen-89482
11/18/2022, 8:29 PMentry_points.txt
in their code already?gorgeous-winter-99296
11/18/2022, 8:33 PMhappy-kitchen-89482
11/18/2022, 8:34 PMresources()
target!gorgeous-winter-99296
11/18/2022, 8:36 PMpython_tests(dependencies=["//src/py:mock-dist-info"])
in every place that this needs to work.happy-kitchen-89482
11/18/2022, 9:11 PMgorgeous-winter-99296
11/18/2022, 9:14 PMimportlib.resources
... I assume a similar mechanic should exist there.resources
target and depend on it.