Python--how to use Python Pip/pur

Source: Internet
Author: User

Balabala ....


    1. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.