Skip to content

Implement --exclude-dependencies to make --exclude exclude a package's dependencies #453

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

Open
kemzeb opened this issue Feb 16, 2025 · 0 comments

Comments

@kemzeb
Copy link
Collaborator

kemzeb commented Feb 16, 2025

Describe the feature

Related discussions are here and here.

Currently, --exclude does its job of excluding packages from the dependency tree. This is fine, but when there are times when we also want to remove their dependencies from the output the current implementation doesn't make this possible.

This issue proposes an --exclude-dependencies flag that will have pipdeptree take this additional step of removing dependencies from the output.

In the future major versions, it may make sense to just make this the default behavior of --exclude. But to avoid a breaking change, it should just be a flag for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant