pipenv uninstall transitive dependencies #4924
Labels
Contributor Candidate
The issue has been identified/triaged and contributions are welcomed/encouraged.
Priority: High
This item is high priority and should be resolved quickly.
Type: Enhancement 💡
This is a feature or enhancement request.
Is your feature request related to a problem? Please describe.
We want to be able to remove a package from our Pipfile, and have it and its transitive dependencies removed from Pipfile.lock, without other dependencies getting automatically upgraded.
pipenv uninstall
will upgrade anything that isn't pinned, which is very surprising behaviorpipenv uninstall --keep-outdated
does not modify the Pipfile.lock at all, so it is kind of useless, and it is unclear what behavior it is supposed to have anyway ("pipenv uninstall --keep-outdated <package>" does not remove the removed package information in Pipfile.lock #4390)Describe the solution you'd like
Some way to remove a package and its dependencies (assume they are otherwise unused), without effectively recalculating the Pipfile.lock from scratch. Alternatively, a command like
pipenv prune
that just removes unused dependencies from the Pipfile.lock.Describe alternatives you've considered
We can hand-edit the Pipfile.lock, but this is rather cumbersome.
The text was updated successfully, but these errors were encountered: