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

upgrade and upgrade-all don't work with pre-release package versions #286

Closed
mmerickel opened this issue Dec 1, 2019 · 3 comments
Closed

Comments

@mmerickel
Copy link

pipx version 0.14.0.0

Describe the bug
Upgrading packages that were installed with pipx install --pip-args '\--pre' <pkg> fails to upgrade to a newer pre-release without also specifying pipx upgrade --pip-args '\--pre' <pkg>.

It'd be nice if pipx recognized the current version of the package was a pre-release version and automatically upgraded it with --pre so that pipx upgrade-all would work. Right now I need to manually upgrade the package and pass --pip-args.

The package I've been upgrading is poetry.

@mmerickel mmerickel changed the title upgrade and upgrade-all doesn't work with pre-release package versions upgrade and upgrade-all don't work with pre-release package versions Dec 1, 2019
@uranusjr
Copy link
Member

uranusjr commented Dec 2, 2019

Auto-inferring pre-releases has a lot of pit-falls (which is why pip chose this current behaviour), and the suggestion would probably dissatisfy another group of people.

@itsayellow
Copy link
Contributor

With the merge of #222 pipx currently remembers the options used for install when later executing other pipx commands like upgrade-all and reinstall-all. This hasn't been released yet to pypi but if you grab the latest pipx from github (and consider it beta) it should do what you want.

@itsayellow
Copy link
Contributor

With the release of pipx versions >= 0.15.0.0, pipx upgrade-all now uses the same --pip_args that were used during install.

pipx upgrade will only use the --pip_args supplied to it, however.

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

No branches or pull requests

4 participants