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. |
abn
left a comment
There was a problem hiding this comment.
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
--whyoption which when combined with--treeand 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: