A tool to upgrade dependencies to the latest versions
Project description
pip-check-updates
A tool to upgrade dependencies to the latest versions, inspired by npm-check-updates
Install
From PyPi
pip install pip-check-updates
From GitHub
pip install git+https://github.com/zehengl/pip-check-updates.git
Usage
Show any new dependencies for the project in the current directory:
- Red = major upgrade
- Cyan = minor upgrade
- Green = patch upgrade
pcu
Checking dependencies
100%|████████████████████| 6/6 [00:01<00:00, 5.75it/s]
In requirements.txt
tqdm 4.62.0 → 4.62.1
pandas 0.25.3 → 1.3.2
Django 3.1.13 → 3.2.6
Run pcu -u to upgrade requirements.txt
Upgrade a project's requirements file:
pcu -u
Upgrading dependencies
100%|████████████████████| 6/6 [00:01<00:00, 5.84it/s]
In requirements.txt
tqdm 4.62.0 → 4.62.1
pandas 0.25.3 → 1.3.2
Django 3.1.13 → 3.2.6
Run pip install -r ... to install new versions
Specify requirements file if needed, -r
option will be recognized as well:
pcu requirements-dev.txt
Checking dependencies
100%|████████████████████| 10/10 [00:01<00:00, 6.05it/s]
In requirements.txt
tqdm 4.62.0 → 4.62.1
pandas 0.25.3 → 1.3.2
Django 3.1.13 → 3.2.6
In requirements-dev.txt
black 21.6b0 → 21.7b0
pylint 2.9.3 → 2.9.6
pytest 5.4.3 → 6.2.4
Run pcu -u to upgrade requirements.txt and requirements-dev.txt
Show the helper text:
pcu -h
usage: pcu [-h] [-u] [-t {latest,newest,greatest,minor,patch}] [path]
pip-check-updates.
positional arguments:
path specify path to a requirements file
optional arguments:
-h, --help show this help message and exit
-u, --upgrade overwrite package file with upgraded versions instead of just outputting to console.
-t {latest,newest,greatest,minor,patch}, --target {latest,newest,greatest,minor,patch}
target version to upgrade to: latest, newest, greatest, minor, patch.
Test
python setup.py test
Credits
- Icon by PixelKit
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for pip_check_updates-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c72b5df6e4111b7f3d072d68bbb8a43bd451390eed4837ede3e2a7fb85f765c |
|
MD5 | 129b58a204be97dfb6cb146e7b4c049e |
|
BLAKE2b-256 | fee4b815fad70e9a7a04dd32f239f90a15f6d8f85e0ce81a40e207a1ffda2ab2 |