Skip to main content

A CLI tool to update your requirements.txt file package versions to be locked/fixed to the latest versions available on PyPI.

Project description

NOTICE: If you're reading this on GitHub.com please be aware this is a mirror of the primary remote located at https://code.richard.do/richardARPANET/lock-requirements. Please direct issues and pull requests there.

lock-requirements

A CLI tool to update your requirements.txt file package versions to be locked/fixed to the latest versions available on PyPI.

For example

Input file contents before locking:

requirements-parser
pypi-simple>=0.4.0,<1.0.0
docopt>=0.5.0,<1.0.0
wheel

Input file contents after locking:

requirements-parser==0.2.0
pypi-simple==0.4.0
docopt==0.6.2
wheel==0.32.3

Installation

pip install lock-requirements

Usage

lock requirements.txt
lock requirements-dev.txt

Use a custom PyPI simple index url to retrieve latest package versions from.

lock requirements.txt --index-url=https://example.com/simple/

Development Installation

pip install -r requirements-dev.txt
python setup.py develop

And to the run tests:

tox

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

lock-requirements-0.1.1.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

lock_requirements-0.1.1-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file lock-requirements-0.1.1.tar.gz.

File metadata

  • Download URL: lock-requirements-0.1.1.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2

File hashes

Hashes for lock-requirements-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8a4d10b79f2ebece6e1967a5542b7ac47a2ba98acef054e8bfc5a43a1c3bef23
MD5 695a2c17fc10989d4b4ce1f4c0e78862
BLAKE2b-256 2c8ad39fff43c8b47f6eedb5b9cce661043cc9aebeba73cd9b642d79d9290519

See more details on using hashes here.

File details

Details for the file lock_requirements-0.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: lock_requirements-0.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.33.0 CPython/3.7.2

File hashes

Hashes for lock_requirements-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ec12b5a4eeacaa0bc38815e26a0847dedfe2b1621a3d1d0dfcda6a92c60d9c83
MD5 5a8baab85ce0b16db058c1dcd1d5e1e2
BLAKE2b-256 632d6a9f795ee71d25adf0ecba84f4c441225af10bd1e18827291e291df1b1cf

See more details on using hashes here.

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