GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||
GeezerVison is showing github.com — poetry show <package> now also shows which packages depend on it by snejus · Pull Request #2351 · python-poetry/poetry Conversation
|
|
Looks neat! Does this traverse the ancestry all the way to the root pyproject.toml, or just one level up from the specified package? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@seansfkelley - it's the latter, it only specifies direct dependencies. I guess the reverse-tree approach would be more suitable for the traversal, which personally I find a bit too noisy, at least for the workflow I'm used to (maybe I just haven't tried a good solution though) - there's actually a PR open that aims to do it: #2086, though it has been stale for a while, so it'd be great if people could have a look at it since it looks quite promising. The required by in poetry show removes the noise and simply tells the dev hey, that's the list of libraries that use it and they specify these constraints - and yeah, now you see which one of those constraints restricts you from bringing that new feature in. I find it very useful whenever I need to integrate a minor/major bump coming from 3rd party dependency - I see whether it's supported or blocked in a simple way. I found that I'm usually aware of my project dependencies enough to kind of know where they're coming from considering higher levels - it's the versions that cause pain :) There's always an extra The reverse-tree, I guess, has a different use case. One I could think of would be analysing bigger open source projects that devs are new to. Actually, And then |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Great, thank you for the explanation! My usual use-case for needing to answer this question is that I've traced an issue through debugging to a particular package, and I want to know which of the dependencies I've declared is bringing it in so I can take (indirect) action to resolve the problem, usually by picking a better version for my dependency or seeing if I can just remove it. All that is to say -- it doesn't come up during version upgrades, so I don't have anything else to narrow down which packages are suspicious. In any case, this change would already make my life easier, even if it's not exactly what I'm looking for. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@sdispater could this by any chance go in, considering that it's very small and has virtually no impact on the rest of the codebase? It's been a couple of months now that me and most of the people around who use Poetry, patching the releases with this - I even have a little bash function that does it. It's extremely useful for bigger projects. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Just another bump/upvote for this. Very interested in this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hello @snejus, I really like this one. Would you find some time to rebase your PR onto master? fin swimmer |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
SonarCloud Quality Gate failed.
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@finswimmer sorry, was a bit in a rush and forgot to switch the base branch. Is there anything else that's required from my side? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm very sorry to ping you again @snejus. For some reasons the SonarCloud Code Analysis failed. We removed this check for now. So could you rebase once more? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
of course! :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
79233c9 to
0460088
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Great 👍
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@snejus, @finswimmer, I wonder, what are the reasons for not putting this feature into |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…hon-poetry#2351) * Add required_by list to pip show <package> command * Update poetry show pendulum documentation * Handle package name discrepancies * Lets not force typing then * issue-1906 Add the test back after rebase * issue-1906 Ignore trailing spaces in the tests
|
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. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Display why package was installed
There was an error while loading. Please reload this page.