神刀安全网

Update your requirements.txt file with Pur in Python

pip-update-requirements

Update your requirements.txt file with Pur in Python Update your requirements.txt file with Pur in Python Update your requirements.txt file with Pur in Python

Update the packages in a requirements.txt file.

Update your requirements.txt file with Pur in Python

Installation

pip install pur

Usage

Give pur your requirements.txt file and it updates all your packages to the latest versions.

For example, given a requirements.txt file:

flask==0.9 sqlalchemy==0.9.10 alembic==0.8.4

Running pur on that file updates the packages to current latest versions:

$ pur 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 All requirements up-to-date.

Pur never modifies your environment or installed packages, it only modifies your requirements.txt file.

Options

There is an optional --output argument to write the new requirements.txt file to a different location than the default. By default, pur overwrites your requirements.txt file.

Contributing

Before contributing a pull request, make sure tests pass:

virtualenv venv . venv/bin/activate pip install tox tox

Many thanks to allcontributors!

转载本站任何文章请注明:转载至神刀安全网,谢谢神刀安全网 » Update your requirements.txt file with Pur in Python

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址