Pants v2: Fast, consistent builds for Python and more

Welcome to the Pants v2 documentation hub!

Pants v2 is a fast, scalable build system for growing codebases. It's currently focused on Python, with support for other languages coming soon.

Here you'll find guides to help you get started with Pants v2, comprehensive documentation on how to configure, run and customize Pants v2, and information on how to get help from the Pants community.

Get Started

dependees

./pants dependees [args]

List all targets that depend on any of the input targets.

Config section: [dependees]

Basic options

--dependees-output-file=<path>
PANTS_DEPENDEES_OUTPUT_FILE
output_file
default: None
Output to this file. If unspecified, outputs to stdout.

--dependees-sep=<separator>
PANTS_DEPENDEES_SEP
sep
default: \n
String to use to separate lines in line-oriented output.

--[no-]dependees-transitive
PANTS_DEPENDEES_TRANSITIVE
transitive
default: False
List all targets which transitively depend on the specified target, rather than only targets that directly depend on the specified target.

--[no-]dependees-closed
PANTS_DEPENDEES_CLOSED
closed
default: False
Include the input targets in the output, along with the dependees.

--dependees-output-format=<DependeesOutputFormat>
PANTS_DEPENDEES_OUTPUT_FORMAT
output_format
one of: text, json
default: text
Use `text` for a flattened list of target addresses; use `json` for each key to be the address of one of the specified targets, with its value being a list of that target's dependees, e.g. `{':example': [':dep1', ':dep2']}`.

Advanced options

None

Deprecated options

None

Related subsystems

dependees, protoc, python-infer, source

Updated about a month ago


dependees


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.