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.3.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.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: requirementscheck-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 ca32dcdb09c27678589075755f9e88fbf7575071234c79b6b531aa6c29f2928c
MD5 b25784ac4aabc2f0e4b6b299a3e21e2b
BLAKE2b-256 54e153fc706a7c538b91c5f2d6c24845a14949e3dcab284bde69f7620c705b5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for RequirementsCheck-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 acb8ec715a1009bf2c217da719356f9b463c9ec9ee66654c0b7ab2e54528197c
MD5 c728d135320ea8fb63c0385fb7a6e625
BLAKE2b-256 1e04ac246d1804a422491d17bbc2bf1b6526c83975af5320b39c4d32dfe3fcd5

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