full-oyster-41619
08/21/2020, 9:56 AM./pants list ::
based on target type? For example, I want to get only the python libraries using something like ./pants list --type=python_library ::
. The only thing I could only find in the docs was something like this:
# find external dependecies
./pants dependencies --type=3rdparty <lib-target>
full-oyster-41619
08/21/2020, 10:25 AM./pants list :: | xargs ./pants filter --filter-target-type=python_library
although this does not work for 3rdparty dependencieshappy-kitchen-89482
08/21/2020, 1:17 PM./pants filter --filter-target-type=python_library ::
happy-kitchen-89482
08/21/2020, 1:17 PM./pants filter --filter-target-type=python_requirement_library ::
hundreds-father-404
08/21/2020, 4:47 PMfilter
- my bad!full-oyster-41619
08/21/2020, 6:50 PMhundreds-father-404
08/21/2020, 6:51 PM./pants filter --target-type=python_requirement_library ::
, rather than ./pants filter --filter-target-type=python_requirement_library ::
. They’re different ways of typing the same thingfull-oyster-41619
08/27/2020, 3:56 PMerror 27-Aug-2020 07:34:27 13:34:27 [ERROR] Unrecognized command line flag '--target-type' on global scope. Suggestions:
error 27-Aug-2020 07:34:27 --filter-target-type, --target-types-details, --target-types-output-file, --target-types-sep
this was my command
./pants --version && ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library | xargs ./pants setup-py ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library | xargs -i ./pants setup-py {} -- sdist && ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_binary
happy-kitchen-89482
08/27/2020, 6:24 PMhappy-kitchen-89482
08/27/2020, 6:25 PM&&
after the first xargs ./pants setup-py
though?happy-kitchen-89482
08/27/2020, 6:31 PM--filter-target-type
flag means "The target_type
option on the filter
scope." This can be shortened to --target-type
if it comes immediately after the filter
goal on the command line. So that error means that pants encountered --target-type
not immediately after filter
.happy-kitchen-89482
08/27/2020, 6:31 PMhappy-kitchen-89482
08/27/2020, 6:31 PM./pants setup-py ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library
11:31:03.16 [ERROR] Unrecognized command line flag '--target-type' on global scope. Suggestions:
--filter-target-type, --target-types-details, --target-types-output-file, --target-types-sep
happy-kitchen-89482
08/27/2020, 6:32 PM/pants setup-py && ./pants --changed-since=develop --changed-include-dependees=transitive filter --target-type=python_library
should workfull-oyster-41619
08/28/2020, 12:42 PMhundreds-father-404
09/17/2020, 7:08 PMfull-oyster-41619
09/24/2020, 1:37 PM