Upgrade every installed package to the latest PyPI release — the 'pip upgrade-all' command pip never shipped.
Project description
pip-upgrade-all
The
pip upgrade-allcommand pip never shipped.
Upgrades every package installed in the current Python environment to its
latest release on PyPI — using pip's own internal machinery, so resolution,
wheel caching, and hash-checking all work exactly as they do with a normal
pip install -U call.
Install
pip install pip-upgrade-all
Usage
pip-upgrade-all [options]
| Flag | Short | Description |
|---|---|---|
--dry-run |
-n |
Print what would be upgraded without doing anything |
--skip PKG |
-s PKG |
Skip a package (repeatable) |
--user |
Pass --user through to pip |
|
--index-url URL |
-i URL |
Use a custom package index |
--verbose |
-v |
Show pip's full output |
--version |
Print version and exit |
Examples
# Upgrade everything
pip-upgrade-all
# See what would change without touching anything
pip-upgrade-all --dry-run
# Upgrade everything except pip and setuptools
pip-upgrade-all --skip pip --skip setuptools
# Use a private index
pip-upgrade-all --index-url https://my.artifactory.example/simple/
# Pass extra flags straight through to pip (after --)
pip-upgrade-all -- --no-deps
As a module
python -m pip_upgrade_all
Programmatic API
from pip_upgrade_all.__main__ import upgrade_all
exit_code = upgrade_all(skip=["pip", "setuptools"], verbose=True)
Why does this exist?
The pip maintainers decided that environment-wide upgrade management is out of pip's scope. Fair enough — but the need is real. This package fills that gap with a tiny, focused tool that does exactly one thing.
Caveats
- Upgrades are attempted in alphabetical order. If package A depends on an
old version of B and you upgrade both, the resolver may complain. Use
--skipto exclude packages you want to pin. - Editable installs (
pip install -e .) are included. Use--skipto exclude them if needed. - System-managed Python environments (Homebrew, distro packages) may
reject upgrades without
--user.
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file upgrade_all-0.1.0.tar.gz.
File metadata
- Download URL: upgrade_all-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a25c2da12e59e84a8ed472bc8e1408f2eabcf3a70a56c506e3c67a64a0803d64
|
|
| MD5 |
799f3fb175f67d8c75bd15a1507bcbef
|
|
| BLAKE2b-256 |
85098f1e0ff18c57b6bd0481cc0d227340d45040766321fd1793fb73f3450e5e
|
File details
Details for the file upgrade_all-0.1.0-py3-none-any.whl.
File metadata
- Download URL: upgrade_all-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
20f66e328ccec9b01d3d9dc547b9cbd3bc90477deb5b75b3d0d7a93c87850000
|
|
| MD5 |
3f6bb8b7a2ab53ed91081a462619f3c6
|
|
| BLAKE2b-256 |
df58a42ce165eb0c420411918986cb992cfe2d5c6c1234acdf7b5b3bce8d6724
|