Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement pip list --verbose #9839

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Implement pip list --verbose #9839

wants to merge 2 commits into from

Conversation

julienp
Copy link

@julienp julienp commented Dec 12, 2024

Summary

Handle the -v/--verbose flag for pip list.

Fixes #9838

Handle the `-v/—verbose` flag for `pip list`.

Fixes astral-sh#9838
.as_editable()
.map(|url| url.to_file_path().unwrap().simplified_display().to_string()),
.map(|dist| {
let location = if verbose && dist.path().parent().is_some() {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pip lists the location where the package is installed, for example [SITE_PACKAGES], whereas dist.path() is something like [SITE_PACKAGES]/pulumi-3.143.0.dist-info.

The parent() bit mostly works for this (although we get a trailing /), but it's probably not quite right for all types of installations.

@@ -150,26 +150,48 @@ pub(crate) async fn pip_list(
results
};

let verbose = true; // TODO: this should be a flag
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we thread this through to the list command, and do we still want the verbosity flag to apply to uv in general?

@julienp julienp changed the title Implement pip list —verbose Implement pip list --verbose Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle verbose output for uv pip list --verbose
1 participant