Upgrade all your outdated requirements in a single command.
Project description
[![Current version on PyPI](https://img.shields.io/pypi/v/upgrade-requirements.svg)](https://pypi.python.org/pypi/upgrade-requirements/)
Upgrade all your outdated requirements.txt in a single command.
Motivation
Even though pip list –outdated exists, sometimes you just want to run pip install –upgrade to upgrade a package, then persist it to your requirements.txt in one big sweep.
Installation
`bash $ pip install upgrade-requirements `
Usage
`bash $ upgrade-requirements `
(Or use the shortcut command upreq.)
Now’s a good time to grab a ☕ while it runs.
After it finishes, run your tests to make sure an individual upgrade didn’t break anything. Then move on to bigger things 🚀
#### Found a problem with an upgraded version?
No worries!
Revert individual entries in requirements.txt with the help of git
Run pip install -r requirements.txt to downgrade to working versions
Commit the upgraded-and-tweaked requirements.txt like normal and carry on 🎉
Room for improvement
This only work with pinned (==) packages at the moment. The intention is to get it to work more generally. This can be broken down into three sub-tasks:
Get it to ignore non-pinned requirements instead of fail
Get it to work with other specifiers, e.g. >= (how would this work?)
Handle all types of requirement entries
Feel free to open an issue or PR with ideas.
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
Hashes for upgrade-requirements-1.6.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83de3861d2711f78702878ed3dce34919ada02f07777083f3f064a84d33a4666 |
|
MD5 | 26b5c394d5da54fdc18d3ea64e8e43e5 |
|
BLAKE2b-256 | 2902e8b7a1f940aa361872d388c1c33645f58767896d7cd31cd9ddd8a0ec5e11 |