Skip to main content

Upgrade every installed package to the latest PyPI release — the 'pip upgrade-all' command pip never shipped.

Project description

upgrade-all

The pip upgrade-all command 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 upgrade-all

Usage

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
upgrade-all

# See what would change without touching anything
upgrade-all --dry-run

# Upgrade everything except pip and setuptools
upgrade-all --skip pip --skip setuptools

# Use a private index
upgrade-all --index-url https://my.artifactory.example/simple/

# Pass extra flags straight through to pip (after --)
upgrade-all -- --no-deps

As a module

python -m upgrade_all

Programmatic API

from 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 --skip to exclude packages you want to pin.
  • Editable installs (pip install -e .) are included. Use --skip to exclude them if needed.
  • System-managed Python environments (Homebrew, distro packages) may reject upgrades without --user.

License

GPL v3

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

upgrade_all-0.1.1.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

upgrade_all-0.1.1-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file upgrade_all-0.1.1.tar.gz.

File metadata

  • Download URL: upgrade_all-0.1.1.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for upgrade_all-0.1.1.tar.gz
Algorithm Hash digest
SHA256 da6ed859258762f485b9ea63c67fdab3473ccf47929be6cf163fa6b010fe07c9
MD5 454f9a9711948188f826d4be76b442b6
BLAKE2b-256 3640c7ae2c8902e5cd92d0d266b4dee8fe9bb9fc6061167b3388cde346d867cd

See more details on using hashes here.

File details

Details for the file upgrade_all-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: upgrade_all-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for upgrade_all-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 29760f5300fab6719b06132483a9aeb90e8d26e3a09a123411c1ed492d6dd119
MD5 9241f8b9a586c7487774ca8b0395c920
BLAKE2b-256 dc99af4e352b81262db8886cc013eed3f85f23a8b923699ddb78d8488880c3bb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page