poetry show $DEPENDENCY
should also list the user defined dependencies that cause the inclusion of this $DEPENDENCY
#8975
Labels
area/show
Related to `poetry show`
kind/feature
Feature requests/implementations
status/triage
This issue needs to be triaged
Feature Request
Running
poetry show
with a particular dependency only shows the parent dependencies that require it, instead of showing the dependencies defined by the user in thepyproject.toml
that introduced it.For example, I would like to know why my package depends on
aiohttp
. Runningpoetry show aiohttp
shows thatdatasets
andffspec
require it, but I did not directly add those dependencies to my project, and they don't tell me too much about whyaiohttp
is in my project:It would be very useful if it actually returned the packages that I explicitly included (
flair
,transformers
, and a few more).I created this workaround where I parse the result of
poetry show --tree
in order to get this information:https://gist.github.com/nicolassanmar/ed7f2a0dcccb5fab21364d86ec960444
poetry show aiohttp --why --tree does not show top-level dependencies either
None of the options for the
poetry show
command actually acomplish what I want to do.datasets
is not defined in my top-level packages (neither isffspec
):Related context:
This is the PR that added the option to
poetry show
on a dependency #2351The text was updated successfully, but these errors were encountered: