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

Add a pipdeptree like output #3272

Closed
mgaitan opened this issue Apr 25, 2024 · 4 comments · Fixed by #3859
Closed

Add a pipdeptree like output #3272

mgaitan opened this issue Apr 25, 2024 · 4 comments · Fixed by #3859
Labels
enhancement New feature or request wish Not on the immediate roadmap

Comments

@mgaitan
Copy link

mgaitan commented Apr 25, 2024

pipdeptree is a cool tool for visualizing the dependency tree of python packages. It allows users to see a structured "tree" of dependencies and, using its reverse mode, to understand why a particular dependency is required for our project.

One particularly useful use case of pipdeptree is to filter out only the "top-level" packages. This helps in cleaning up *.in files by leaving the resolution of transitive dependencies to the compilation process.

Would it be possible to support something similar to this as a built-in feature of uv ? something like uv pip list --format=tree ?

@charliermarsh charliermarsh added the enhancement New feature or request label Apr 25, 2024
@charliermarsh
Copy link
Member

I like the idea of having a tree view for this. cargo tree is another good example -- really useful.

@charliermarsh charliermarsh added the wish Not on the immediate roadmap label Apr 25, 2024
@MarcinKonowalczyk
Copy link

MarcinKonowalczyk commented Apr 27, 2024

Strong support for this(!) I was about to make a proposal similar to it, although i didn't know pipdpeptree so was going to use pip-chill as an example. I'd love to see alongside this functionality like pip-autoremove - remove given package and all the orphan packages it leaves behind.

@samypr100
Copy link
Contributor

For reference/design, poetry has --tree as part of poetry show

ibraheemdev pushed a commit that referenced this issue Jun 21, 2024
## Summary

resolves #3272

added it as a new subcommand rather than a flag on an existing
command since that seems more consistent with `cargo tree` + cleaner
code organization, but can make changes if it's preferred the other way.
@ibraheemdev
Copy link
Member

Opened #4439 to track additional features that did not land in the initial PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wish Not on the immediate roadmap
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants