Closed shenek closed 3 years ago
Tried to tackle this a different way in #2351
@shenek What would you think of providing these details in the poetry show <package>
command output?
Is this feature released? I don't see the dependencies nor the required by when I use poetry show X
I've just made this gist public: https://gist.github.com/snejus/85b47dca884a5aca2646dfbde79e9c92
While you're waiting for this functionality to be released, feel free to use it: it's a poetry.lock
parser written in shell: deps <package>
should give you what you need, in several milliseconds.
I landed here after trying to find out, which dependency ultimately caused my package to be uninstallable (see here) Is there a way to use this script without having an actual poetry.lock
file yet? Maybe from the poetry install --dry-run -vvv
output?
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Feature Request
As a poetry user I would like to find out why is this dependency used (by which packages it is required).
JS's dependency manager yarn contains a
why
subcommand which does basically what I mentioned above. see https://yarnpkg.com/lang/en/docs/cli/why/This feature would be quite helpful in poetry as well. Because it could be quite uncomfortable to figure out why the package was installed using
poetry show --tree
.Or perhaps adding a filter to
poetry show
would be useful.vs