Skip to content
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

PR #132 and additional commits on top of it #138

Closed
wants to merge 13 commits into from

Conversation

naiquevin
Copy link
Contributor

No description provided.

Lorric Ziegler and others added 9 commits October 12, 2020 10:49
This handles the case where the same package is part of 2 different
extra_require profiles for eg.

  {'rsa': ['cryptography'],
   'signals': ['blinker'],
   'signedtoken': ['cryptography', 'pyjwt>=1.0.0']}

The above is the extra_require dict for oauthlib. Since 'cryptography'
is an extra require in multiple profiles, this caused duplicate
ReqPackage objects to be present in the tree.

As a result of deduplicating, no additional filtering is required in
presentation logic (ie. 'render_text' and 'dump_graphviz' functions).
If a package is specified using the '-p' option and it also happens to
be one of the dependencies of another package (also specified as part
of '-p' option), then the top level package itself is skipped from the
output.

For eg. consider following call

  $ pipdeptree -p 'abc,tox'

Now if 'tox' also happens to be the dependency of 'abc', then it's not
shown in the output unless '-a' flag (show all) is also specified.

This seems to be an old bug that has surfaced now with support for
extra requirements. There are cases where a package can be a dependent
of itself via extra requirements eg. tox depends on pluggy and
pluggy[dev] also depends on tox.
@naiquevin naiquevin force-pushed the idiot-z-add_extra_require branch from 108ca75 to beacb88 Compare November 8, 2020 18:37
A lot of code has been refactored in this commit
* master:
  Fix github checks due to set-env deprecation
  Shield newline symbol when generating labels for graphviz
@gaborbernat
Copy link
Member

Seems we'll no longer proceed with this.

@gaborbernat gaborbernat closed this Sep 4, 2022
@naiquevin
Copy link
Contributor Author

@gaborbernat This PR was for #107.

IIRC, this code was mostly working but as it is an intrusive change I wanted to do a beta release first. Never got to it. It's unlikely that I'll be working on it any time soon but JFYI because the PR is closed whereas issue #107 is still open. If anyone wants to pursue the functionality, this PR can be a good starting point.

@lo-zed
Copy link

lo-zed commented Sep 5, 2022

I am sorry, I would like to help, but I no longer need this functionality and I have no time to continue working on it.

@gaborbernat gaborbernat deleted the idiot-z-add_extra_require branch September 8, 2022 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants