Skip to main content

A CLI utility to check and update Python package versions in requirements.txt files

Project description

Version Check

Core Functionality:

  • Look for requirements*.txt files in your working directory and check for updates.
  • Prompt to confirm each update with an upstream url.

Install

RequirementsCheck is available on pypi.org/project/RequirementsCheck/. Install into your environment with pip:

pip install requirementscheck

Add it to your requirements.txt file, pin the release, and use requirementscheck to update requirementscheck in your requirements.txt file.

Run

From your Python project root folder run:

requirementscheck

to look for requirements files and update your dependencies based on your prompts.

Additionally, this takes to optional arguments:

  • --confirm | --no-confirm: Ask for confirmation with link to upstream package before applying update, default True.
  • --pin | --no-pin: Pin a dependency to the latest version if found to be not pinned, default False.
  • -h | --help: Print help text and exit.

Build

Run tests:

python -m unittest src/requirementscheck/test_requirementscheck.py
  1. Update the version in setup.py

  2. Git Tag

  3. Push tag

  4. Create release on GH

  5. Build and update package to pypi:

    python -m build
    python -m twine upload dist/*
    

Additional

Newest docs on GitHub: bbilly1/requirementscheck.

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

requirementscheck-0.0.5.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

RequirementsCheck-0.0.5-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file requirementscheck-0.0.5.tar.gz.

File metadata

  • Download URL: requirementscheck-0.0.5.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.13.1

File hashes

Hashes for requirementscheck-0.0.5.tar.gz
Algorithm Hash digest
SHA256 3de140a77953a2c39c676f9bd8a72b3efc5b0d1827e042574762785a264d5da6
MD5 9ebb89b2e6ae85ffbcb0abacafb1a034
BLAKE2b-256 82fb3c5d2e3b0f345b7d9b0ca9a8c2ac9f649587a0909477e8e134d689292e5b

See more details on using hashes here.

File details

Details for the file RequirementsCheck-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for RequirementsCheck-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8ef1c841a739c0a9497bd84d4e4614982480d85d8d8b344fa513a3f49a1db828
MD5 8ce5dd9530114cdd493e300b37ad77d0
BLAKE2b-256 20794842c72f0de1c39a6537c9bbd9ca4b364251fd9b8f14c5ba0acc9e4a53ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page