curved-policeman-2796
01/04/2023, 10:37 AMrequirements.txt format? It looks like ./pants dependencies used to do this with --type=3rdparty (see ) but that option seems to have disappeared.curved-policeman-2796
01/04/2023, 11:01 AM./pants dependencies --dependencies-transitive <target> | xargs ./pants peek --filter-target-type=python_requirement | jq -r '.[]["requirements"][]'happy-kitchen-89482
01/04/2023, 12:12 PMcurved-policeman-2796
01/04/2023, 12:16 PMcurved-policeman-2796
01/04/2023, 12:18 PMhappy-kitchen-89482
01/04/2023, 12:45 PMhappy-kitchen-89482
01/04/2023, 12:45 PMhappy-kitchen-89482
01/04/2023, 12:45 PMhappy-kitchen-89482
01/04/2023, 12:46 PMcurved-policeman-2796
01/04/2023, 1:04 PMcurved-policeman-2796
01/04/2023, 1:06 PMfresh-cat-90827
01/04/2023, 1:45 PMcurved-policeman-2796
10/17/2023, 11:03 AMpants dependencies --dependencies-transitive <target> | tr '\n' '\0' | xargs -0 pants peek --filter-target-type=python_requirement | jq -r '.[]["requirements"][]' | sort -u
where
• tr '\n' '\0' and xargs -0 account for target names that contain characters that xargs would normally split on (eg spaces/tabs)
• sort -u accounts for cases where xargs invokes pants peek more than once, and combines the output. (This happens in cases where pants dependencies outputs many targets, eg if you pass in ::.)curved-policeman-2796
10/17/2023, 11:04 AMcurved-policeman-2796
10/20/2023, 7:52 PM