Pants plugin to export repository dependency graph.
Project description
pants-dep-graph
Pants plugin to query and export repository dependency graph.
Enable the plugin in your Pants repository:
[GLOBAL]
plugins = ["pants-plugin-dep-graph==<release-version>"]
Examples
Export dependencies
# only for Python sources
pants dep-graph --filter-target-type=python_sources --deps src::
# for every target
pants dep-graph --deps src::
# for every target of source code nature
pants dep-graph --deps --sources-only src::
Export reverse dependencies (dependents)
# for every target
pants dep-graph --rdeps src::
# include in the list of dependents only targets of source code nature
pants dep-graph --deps --sources-only src::
Debugging
pants --print-stacktrace --no-local-cache --no-pantsd dep-graph --deps src::
pants --print-stacktrace --no-local-cache --no-pantsd dep-graph --rdeps src::
Analytics
Install
$ pip install dep-graph-analytics
Usage
$ dep-graph-analytics cycles tests/cycles.json
['src/moduleC.py', 'src/moduleA.py', 'src/moduleB.py']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pants-plugin-dep-graph-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e73bd7d14b9fcbc59b6b0e3a971f836ca56715f8a169e31304a8e22ea9817d2 |
|
MD5 | d9092b7b0b2eff9a4e19cfd272f773f2 |
|
BLAKE2b-256 | a1c958e5aa78f14ef616b8a3e45d015fe3bca8b4f1fce5fa8e97847fc06589e8 |
Close
Hashes for pants_plugin_dep_graph-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4720fbf419ff863109c85077f7db48fe8a5b9a63a278ed24901c9e7b4961bd00 |
|
MD5 | ef95abb90bc12ee3a581e09922fc86ce |
|
BLAKE2b-256 | 6fcc3467b6957bb897321a4839f8146c88006eb4c4c0bfd15849537e13dd84fc |