Skip to main content

Update requirements to latest

Project description

bumpreqs

Usage

$ pip install bumpreqs
$ python -m bumpreqs --write requirements*.txt

It will update the requirements to all use the latest versions. Most environment markers are ignored (although preserved on modified lines).

python_version and full_python_version

There is some rudimentary support that works for simple comparisons using the and operator (as in requires_python using ,). If there is any overlap between the constraint and release's requires_python, then it can be bumped.

The reason to check for any overlap rather than full overlap is because many project specify a constraint like python_version < "3.7" without a lower bound, and when checking against a release that has Requires-Python: >=3.6 the check would fail because 3.5 (or 2.1 or any other silly example) is not included. See currently open issue for future work.

License

bumpreqs is copyright Tim Hatch, and licensed under the MIT license. I am providing code in this repository to you under an open source license. This is my personal repository; the license you receive to my code is from me and not from my employer. See the LICENSE file for details.

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

bumpreqs-0.9.3.tar.gz (11.6 kB view hashes)

Uploaded Source

Built Distribution

bumpreqs-0.9.3-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

Supported by

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