Adjust deduplicated message in pip tree (#4448)

This commit is contained in:
Zanie Blue
2024-06-22 10:53:01 -04:00
committed by GitHub
parent c7149e96ca
commit 3a63e1410d
2 changed files with 6 additions and 13 deletions
+2 -3
View File
@@ -50,9 +50,8 @@ pub(crate) fn pip_tree(
if rendered_tree.contains('*') {
writeln!(
printer.stdout(),
r#"{}: (*) indicates the package has been `de-duplicated`.
The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated."#,
"Note".yellow().bold()
"{}",
"(*) Package tree already displayed".italic()
)?;
}
+4 -10
View File
@@ -150,11 +150,9 @@ fn nested_dependencies() {
│ └── numpy v1.26.4 (*)
├── joblib v1.3.2
└── threadpoolctl v3.4.0
Note: (*) indicates the package has been `de-duplicated`.
The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated.
(*) Package tree already displayed
----- stderr -----
"###
);
}
@@ -261,8 +259,7 @@ fn nested_dependencies_more_complex() {
├── markdown-it-py v3.0.0
│ └── mdurl v0.1.2
└── pygments v2.17.2 (*)
Note: (*) indicates the package has been `de-duplicated`.
The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated.
(*) Package tree already displayed
----- stderr -----
"###
@@ -332,11 +329,9 @@ fn cyclic_dependency() {
└── uv-cyclic-dependencies-a v0.1.0
└── uv-cyclic-dependencies-b v0.1.0
└── uv-cyclic-dependencies-a v0.1.0 (*)
Note: (*) indicates the package has been `de-duplicated`.
The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated.
(*) Package tree already displayed
----- stderr -----
"###
);
}
@@ -539,8 +534,7 @@ fn multiple_packages_shared_descendant() {
time-machine v2.14.1
└── python-dateutil v2.9.0.post0 (*)
urllib3 v2.2.1
Note: (*) indicates the package has been `de-duplicated`.
The dependencies for the package have already been shown elsewhere in the graph, and so are not repeated.
(*) Package tree already displayed
----- stderr -----
"###