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

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.4.tar.gz (5.4 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.4-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for requirementscheck-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f4d53c4077a1a2a39827f9ad82f6392c2bd9ce9197a70a5a691d67c313031317
MD5 ec31db1a6a8566028e87c401d2c4f11e
BLAKE2b-256 a7c33758ed01d0d2b86ca651fc8196813e3e4d2186bde087b24fc258f198b356

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for RequirementsCheck-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f9901873aec7931ad3e960e5cd7ceac9033eb7e387e93c51ecaf0550d869d63f
MD5 23bc99809f378aeb1d0761fcd9bd9245
BLAKE2b-256 ff7572120b143824f6510777e5172d23c22197fa42e8b1da42d28988a8ae4021

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