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 all packages at once #168

Open
lofidevops opened this issue Jul 30, 2018 · 2 comments
Open

Upgrade all packages at once #168

lofidevops opened this issue Jul 30, 2018 · 2 comments

Comments

@lofidevops
Copy link

User story: I am a Pythonista with multiple packages installed via pipsi. I want to upgrade all my packages at once, so that I don't forget any of them and don't have to type them out one-by-one.

Current method:

pipsi list # lists all packages
pipsi upgrade package1
pipsi upgrade package2
...

Suggested solution:

A new command pipsi upgrade --all

Workaround:

pipsi list | grep 'Package ' | cut -d\" -f2 | xargs -n1 pipsi upgrade

(Separating this out from #16 which includes additional feature requests and queries. This feature request is simply to replace one-by-one upgrades.)

@igalic
Copy link

igalic commented Aug 10, 2018

so, my current work around failed horribly… because of the way the path is determined:

cd ~/.local/venvs
for pkg in *
    pipsi upgrade $pkg
end

Usage: pipsi upgrade [OPTIONS] PACKAGE

Error: asciinema does not appear to be a local Python package.

this, however, works:

cd ~
for pkg in ~/.local/venvs/*
    pipsi upgrade (basename $pkg)
end

simlun added a commit to simlun/pipsi that referenced this issue Oct 6, 2018
- When not giving any package names as arguments to `upgrade` it
  defaults to upgrade all installed packages.
- Fixes mitsuhiko#168
@cs01
Copy link
Contributor

cs01 commented Oct 18, 2018

I recently started a project called pipx that combines pipsi's functionality with npx's. It has the command pipx upgrade-all. Would love to hear what you think! https://github.com/cs01/pipx

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

3 participants