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.
  • There might be conflicts whre pip goes backgracking a long way, add --upgrade-strategy eager to be more aggressive or only-if-needed to be more conservative. e.g. upgrade-all -- --upgrade-strategy eager

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.2.tar.gz (15.9 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.2-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: upgrade_all-0.1.2.tar.gz
  • Upload date:
  • Size: 15.9 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.2.tar.gz
Algorithm Hash digest
SHA256 dbaa40c4c4f3949266a3c10d5e767c0e33b151c16b4a3e701465c8922e3c0e62
MD5 43322a92d2ae1bc27c9b8fd39a08c946
BLAKE2b-256 1c677c0852812175b237fec5faab8e6226d226bd3d0eb9ef27fbe51c4cbdd10d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: upgrade_all-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.9 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 df4f5ce59ecaa16d236d49c7ec47db697709a74311f0132a861347901edc3dec
MD5 8e24989afa3fcd246cab615dbb604c62
BLAKE2b-256 0e7a0f099f493707f0effefe702f0c0de575dd6f0532b58e0b271535a558cbf1

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