File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -30,8 +30,16 @@ class Graph(OutputMixin, Command):
30
30
31
31
@staticmethod
32
32
def _create_dependency_graph (pex ):
33
- graph = DiGraph (pex .path (), fontsize = "14" )
34
- marker_environment = PythonInterpreter .get ().identity .env_markers .copy ()
33
+ # type: (PEX) -> DiGraph
34
+ graph = DiGraph (
35
+ pex .path (),
36
+ fontsize = "14" ,
37
+ labelloc = "t" ,
38
+ label = "Dependency graph of {} for interpreter {} ({})" .format (
39
+ pex .path (), pex .interpreter .binary , pex .interpreter .identity .requirement
40
+ ),
41
+ )
42
+ marker_environment = pex .interpreter .identity .env_markers .copy ()
35
43
marker_environment ["extra" ] = []
36
44
present_dists = frozenset (dist .project_name for dist in pex .activate ())
37
45
for dist in pex .activate ():
@@ -41,6 +49,7 @@ def _create_dependency_graph(pex):
41
49
URL = "https://pypi.org/project/{name}/{version}" .format (
42
50
name = dist .project_name , version = dist .version
43
51
),
52
+ target = "_blank" ,
44
53
)
45
54
for req in requires_dists (dist ):
46
55
if (
@@ -54,6 +63,7 @@ def _create_dependency_graph(pex):
54
63
style = "filled" ,
55
64
tooltip = "inactive requirement" ,
56
65
URL = "https://pypi.org/project/{name}" .format (name = req .project_name ),
66
+ target = "_blank" ,
57
67
)
58
68
graph .add_edge (
59
69
start = dist .project_name ,
You can’t perform that action at this time.
0 commit comments