List the dependencies of the input files/targets.
Config section: <span style="color: purple"><code>[dependencies]</code></span>
## Basic options
<div style="color: purple"> <h3><code>output_file</code></h3> <code>--dependencies-output-file=<path></code><br> <code>PANTS_DEPENDENCIES_OUTPUT_FILE</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>None</code></span>
<br>
Output the goal's stdout to this file. If unspecified, outputs to stdout.
</div> <br>
<div style="color: purple"> <h3><code>sep</code></h3> <code>--dependencies-sep=<separator></code><br> <code>PANTS_DEPENDENCIES_SEP</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>\n</code></span>
<br>
String to use to separate lines in line-oriented output.
</div> <br>
<div style="color: purple"> <h3><code>transitive</code></h3> <code>--[no-]dependencies-transitive</code><br> <code>PANTS_DEPENDENCIES_TRANSITIVE</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>False</code></span>
<br>
List all transitive dependencies. If unspecified, list direct dependencies only.
</div> <br>
<div style="color: purple"> <h3><code>closed</code></h3> <code>--[no-]dependencies-closed</code><br> <code>PANTS_DEPENDENCIES_CLOSED</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">default: <code>False</code></span>
<br>
Include the input targets in the output, along with the dependencies.
</div> <br>
## Advanced options
None
## Deprecated options
<div style="color: purple"> <h3><code>type</code></h3> <code>--dependencies-type=<DependencyType></code><br> <code>PANTS_DEPENDENCIES_TYPE</code><br> </div> <div style="padding-left: 2em;"> <span style="color: green">one of: <code>source, 3rdparty, source-and-3rdparty</code></span><br> <span style="color: green">default: <code>source</code></span> <p style="color: darkred">Deprecated, will be removed in version: 2.9.0.dev0.<br>This option is misleading and not very useful. In the future there will be a more robust way of querying and filtering dependencies. Meanwhile you can get the list of requirement strings for a set of targets using something like
./pants dependencies :: | xargs ./pants filter --target-type=python_requirement | xargs ./pants peek | jq -r '.[]["requirements"][]'
</p> <br>
Which types of dependencies to list, where `source
` means source code dependencies and `3rdparty
` means third-party requirement strings.
</div> <br>