Skip to main content

reqs

Helps with Python requirements (reqs) files:

  • reqs bootstrap:
    • Install uv (default) or upgrade pip & install pip-tools to active venv
    • Ensures reqs will compile lock files using the version of Python the project is using
  • reqs compile:
    • Compile .in reqs files into .txt "lock" files
    • Considers file modification times and file dependencies (when -r or -c used)
  • reqs sync:
    • Compile (default, optional)
    • Sync active virtualenv with lock files
    • When "sync_pipx" is true: will make the project's scripts available on the local system by installing/upgrading as an editable package with pipx.

Install

Intended to be installed at the user level, not per app.

  • pipx install reqs-cli (recommended)
  • [uv] pip install --user reqs-cli

Configuration

Configure using pyproject.toml:

# The options shown are the default values and DO NOT need to be specified
# if the default is sufficient.

[tool.reqs]
# Path to the directory containing the .in and .txt requirements files.  Relative to pyproject.toml.
dpath = 'requirements'

# Use pipx to install an editable version of the project.  True for tools like reqs and env-config
# that a developer would want available for different projects.  False for most client projects
# deployed on servers.
sync_pipx = false

Development

  • Can be updated from copier-py-package
    • hatch run copier:update: latest tagged version in GitHub
    • hatch run copier:update-head: head of master in GitHub
  • Release:
    • mise run bump [-- --help] to update version, tag, and push to GitHub
    • GitHub workflow does the rest

Metadata

Release files for reqs-cli 0.20240711.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reqs-cli 0.20240711.2
File Size Uploaded
reqs_cli-0.20240711.2.tar.gz 30.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reqs-cli 0.20240711.2
File Interpreter ABI Platform
reqs_cli-0.20240711.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 44.2 kB

Release files / reqs_cli-0.20240711.2.tar.gz

Download URL reqs_cli-0.20240711.2.tar.gz
Size 30.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9fa3e1943911295d4360ffe2b98f36e464c2455476718c566d639b8c41f30ae7
BLAKE2b-256 checksum
How to use checksums
22ed463a4b7f11189711f508765104f2426113b104c9cbbf1ad13db261afbf90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4

Release files / reqs_cli-0.20240711.2-py2.py3-none-any.whl

Download URL reqs_cli-0.20240711.2-py2.py3-none-any.whl
Size 13.9 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0c1e54b32d075368cccd24785ab094f15ccbefab3e7fe6238fdaba206c4c1e5a
BLAKE2b-256 checksum
How to use checksums
ad29ffd6bdb8cd820906ff4b158358e879044a928efce1873ddc8f3615ff646e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.0 CPython/3.12.4
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page