Balabala ....
Description of the package in the PUR update requirements.txt file:
To install Pur:
Pip Install Pur
How to use
use purrequirements.txt file, then it will update your package to the latest version.
For example, there is a requirements.txt file as follows:
flask==0.9
sqlalchemy==0.9.10
alembic==0.8.4
Use this Requirements.txt files running pur will upgrade these packages to the latest version:
$ pur-r Requirements.txt
updated flask:0.9-0.10.1
updated sqlalchemy:0.9.10-1.0.12
updated alembic:0.8.4-0.8.6
When you are finished, you will see a prompt for "all required packages have been updated".
Pur never modifies your running environment or a package that has already been installed, it just modifies your requirements.txt file.
Options available
-R,--requirement PATH
Update the required Requirements.txt file, by default, will be looked up from the current directory and used if the file exists.
-O,--output PATH
output The updated package to a file, which is overwritten by default Requirements.txt file.
-F,--force
force the update package, even if the Requirements.txt The program's version number is not given in the
-Z,--nonzero-exit-code
when all the packages are updated, the exit code is ten, and if part of the update exits the code one by one. By default , 0 is the update success, and nonzero for the update is unsuccessful.
-S,--skip TEXT
comma-separated packages that do not need to be updated
--version
display The PUR version number and exit
--help
Display this help message and exit
Contribute to your code
Before you provide a pull request, confirm the test pass as follows:
Virtualenv venv
. Venv/bin/activate
Pip Install Tox
Tox
Thank you very much for all of our contributors!
English Original: https://github.com/alanhamlett/pip-update-requirements
Translator: Lappy
This article is from the "Mr_computer" blog, make sure to keep this source http://caochun.blog.51cto.com/4497308/1773166
Python--how to use Python Pip/pur