narrow-activity-17405
11/08/2021, 8:01 AMhappy-kitchen-89482
11/08/2021, 8:50 AM./pants peek ::
to get a lot of JSON info about your targets, including their explicit and inferred dependencies, and then process that JSON outside Pants. Or if you want to check to be a Pants goal you can write a custom goal that consumes the same data structure used to produce that JSON (see here ) .narrow-activity-17405
11/08/2021, 10:23 AMpeek
but the resulting JSON does not seem to contain inferred dependencies if I'm looking right (I'm on Pants 2.7.0) - there is only stuff from BUILD files. I was also thinking about calling ./pants dependencies
on all top-level python libraries (where each has associated python distribution) and analyzing results, but that would require extracting package names from targets somehow, which would be quite specific and non-elegant 🙂 Maybe I can generate python distributions and read dependencies from their setup.py
...happy-kitchen-89482
11/08/2021, 1:13 PMnarrow-activity-17405
11/09/2021, 7:53 AM