-
Notifications
You must be signed in to change notification settings - Fork 417
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
Introduce pipx pin
and pipx unpin
commands
#1291
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for submitting this! I wonder whether it would be a valid use case to extend this behaviour to work with injected packages, too?
Another idea: Provide protection from removal for a pipx
-installed package by pipx pin
via an option.
That sounds like a good idea! Probably I will add a new option for it.
Not sure if it's a common usage, but we can add it in the future if there are requests about this. |
I am implementing the logic of |
Sounds good. You don't think one should be able to select which injected package to work with? |
Yes, forgot to mention it in the above comment. 😅 I will mark this PR as draft first. |
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
The failed test seems unrelated to this PR. |
Rerun makes everything OK. :-) |
This feature was included in the 1.6.0 release but the documentation appears to be incomplete. When I run
They also don't appear in the online docs at https://pipx.pypa.io/stable/docs/ except (again) in the list of subcommands, but without descriptions of their behavior or entries in the table of contents. |
This was fixed in #1438. |
changelog.d/
(if the patch affects the end users)Summary of changes
Introduce
pipx pin
andpipx unpin
commands, which can be used to pin or unpin the versionof an installed package, so it will not be upgraded by
pipx upgrade
orpipx upgrade-all
.Closes #891
Closes #802
Test plan
Tested by running