All Projects → alanhamlett → Pip Update Requirements

alanhamlett / Pip Update Requirements

Licence: other
Update the packages in a requirements.txt file.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Pip Update Requirements

ansible-role-ansible
Ansible Role - Ansible
Stars: ✭ 91 (-80.3%)
Mutual labels:  pip
Pip Upgrader
An interactive pip requirements upgrader. It also updates the version in your requirements.txt file.
Stars: ✭ 340 (-26.41%)
Mutual labels:  pip
Ezplayer
基于AVPlayer封装的视频播放器,功能丰富,快速集成,可定制性强,支持react-native。
Stars: ✭ 377 (-18.4%)
Mutual labels:  pip
Underscore.py
Python port of underscore.js
Stars: ✭ 277 (-40.04%)
Mutual labels:  pip
Poet
Poet helps you declare, manage and install dependencies of Python projects, ensuring you have the right stack everywhere.
Stars: ✭ 312 (-32.47%)
Mutual labels:  dependency-manager
Athens
A Go module datastore and proxy
Stars: ✭ 3,736 (+708.66%)
Mutual labels:  dependency-manager
intro-to-python
An Introduction to Programming in Python
Stars: ✭ 57 (-87.66%)
Mutual labels:  pip
Pipupgrade
🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.
Stars: ✭ 391 (-15.37%)
Mutual labels:  pip
Pipx
Install and Run Python Applications in Isolated Environments
Stars: ✭ 4,398 (+851.95%)
Mutual labels:  pip
Pepy
pepy is a site to get statistics information about any Python package.
Stars: ✭ 369 (-20.13%)
Mutual labels:  pip
Pip Chill
A more relaxed `pip freeze`
Stars: ✭ 281 (-39.18%)
Mutual labels:  pip
G
Simple go version manager, gluten-free
Stars: ✭ 307 (-33.55%)
Mutual labels:  dependency-manager
Tensorflow Bin
Prebuilt binary with Tensorflow Lite enabled (native build). For RaspberryPi / Jetson Nano. And, solved Tensorflow issues #15062,#21574,#21855,#23082,#25120,#25748,#29617,#29704,#30359. Support for custom operations in MediaPipe.
Stars: ✭ 349 (-24.46%)
Mutual labels:  pip
Py webauthn
A WebAuthn Python module.
Stars: ✭ 270 (-41.56%)
Mutual labels:  pip
Pyup
A tool to update your project's dependencies on GitHub. Runs on pyup.io, comes with a command line interface.
Stars: ✭ 379 (-17.97%)
Mutual labels:  dependency-manager
requirementslib
A tool for converting between pip-style and pipfile requirements - maintained by the pipenv team
Stars: ✭ 74 (-83.98%)
Mutual labels:  pip
Cocoaseeds
Git Submodule Alternative for Cocoa.
Stars: ✭ 340 (-26.41%)
Mutual labels:  dependency-manager
Piprot
How rotten are your requirements?
Stars: ✭ 409 (-11.47%)
Mutual labels:  pip
Fury
A new build tool for JVM languages
Stars: ✭ 384 (-16.88%)
Mutual labels:  dependency-manager
Cget
C++ package retrieval
Stars: ✭ 370 (-19.91%)
Mutual labels:  dependency-manager

.. image:: https://travis-ci.org/alanhamlett/pip-update-requirements.svg?branch=master :target: https://travis-ci.org/alanhamlett/pip-update-requirements :alt: Tests

.. image:: https://coveralls.io/repos/alanhamlett/pip-update-requirements/badge.svg?branch=master&service=github :target: https://coveralls.io/github/alanhamlett/pip-update-requirements?branch=master :alt: Coverage

.. image:: https://img.shields.io/pypi/v/pur.svg :target: https://pypi.python.org/pypi/pur :alt: Version

.. image:: https://img.shields.io/pypi/pyversions/pur.svg :target: https://pypi.python.org/pypi/pur :alt: Supported Python Versions

.. image:: https://wakatime.com/badge/github/alanhamlett/pip-update-requirements.svg :target: https://wakatime.com/badge/github/alanhamlett/pip-update-requirements

pip-update-requirements

Update the packages in a requirements.txt file.

.. image:: https://raw.githubusercontent.com/alanhamlett/pip-update-requirements/master/pur.gif :alt: Purring Cat

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 -r requirements.txt
Updated flask: 0.9 -> 1.0.2
Updated sqlalchemy: 0.9.10 -> 1.2.8
Updated alembic: 0.8.4 -> 0.9.9
All requirements up-to-date.

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

You can also use Pur directly from Python::

$ python
Python 3.6.1
>>> from pur import update_requirements
>>> print([x[0]['message'] for x in update_requirements(input_file='requirements.txt').values()])
['Updated flask: 0.9 -> 1.0.2', 'Updated sqlalchemy: 0.9.10 -> 1.2.8', 'Updated alembic: 0.8.4 -> 0.9.9']
>>> print(open('requirements.txt').read())
flask==1.0.2
sqlalchemy==1.2.8
alembic==0.9.9

Options

-r, --requirement PATH The requirements.txt file to update; Defaults to using requirements.txt from the current directory if it exist. -o, --output PATH Output updated packages to this file; Defaults to overwriting the input requirements.txt file. -i, --interactive Interactively prompts before updating each package. -f, --force Force updating packages even when a package has no version specified in the input requirements.txt file. -d, --dry-run Output changes to STDOUT instead of overwriting the requirements.txt file. -n, --no-recursive Prevents updating nested requirements files. -s, --skip TEXT Comma separated list of packages to skip updating. --index-url TEXT Base URL of the Python Package Index. Can be provided multiple times for extra index urls. --verify PATH Either a boolean true/false, in which case it controls whether we verify the server's TLS certificate, or a string, in which case it must be a path to a CA certs bundle. Defaults to True. --only TEXT Comma separated list of packages. Only these packages will be updated. -m, --minor TEXT Comma separated list of packages to only update minor versions, never major. Use "" to limit every package to minor version updates. -p, --patch TEXT Comma separated list of packages to only update patch versions, never major or minor. Use "" to limit every package to patch version updates. --pre TEXT Comma separated list of packages to allow updating to pre-release versions. Use "*" to allow all packages to be updated to pre-release versions. By default packages are only updated to stable versions. -z, --nonzero-exit-code Exit with status 10 when all packages up-to-date, 11 when some packages were updated. Defaults to exit status zero on success and non-zero on failure. --version Show the version and exit. --help Show this message and exit.

Contributing

Before contributing a pull request, make sure tests pass::

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

Many thanks to all contributors <https://github.com/alanhamlett/pip-update-requirements/blob/master/AUTHORS>_!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].