-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 --why
option to poetry show
#5444
Conversation
@tgolsson can you also update doc? In general, I like the idea. I'd use it. Would it be feasible to use |
@abn Found the docs in cli.md, is there any other spot? Also added an extra test, and added a column with
It won't accept
It will as before accept
But not for the global tree listing, since again it contains all info, and
|
Thanks for this implementation! |
--why
option to poetry show --tree pkg
--why
option to poetry show
3eed0d2
to
82ada8b
Compare
Gentle poke @abn :-) |
@tgolsson consider me poked :) |
@abn Good ;-) are there any other blockers or steps in order to get this merged? I can rebase it tomorrow. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comment. Otherwise looks good to rebase.
82ada8b
to
6d19084
Compare
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: #5396
This adds a
--why
option which when combined with--tree
and a single package starts the tree at the parent level to show why a specific dependency is included. Optimally this'd walk the tree to the root; but that requires a graph-like structure to easily do/filter, and feels out of scope for this PR.Example output
Without
--why
:With
--why
:On a package with no parent:
Forgetting to specify package: