Skip to main content

No project description provided

Project description

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

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

reqs_cli-0.20240711.2.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

reqs_cli-0.20240711.2-py2.py3-none-any.whl (13.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file reqs_cli-0.20240711.2.tar.gz.

File metadata

  • Download URL: reqs_cli-0.20240711.2.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for reqs_cli-0.20240711.2.tar.gz
Algorithm Hash digest
SHA256 9fa3e1943911295d4360ffe2b98f36e464c2455476718c566d639b8c41f30ae7
MD5 5d4e88f77d791afe8baa36d49ab87ac8
BLAKE2b-256 22ed463a4b7f11189711f508765104f2426113b104c9cbbf1ad13db261afbf90

See more details on using hashes here.

File details

Details for the file reqs_cli-0.20240711.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for reqs_cli-0.20240711.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0c1e54b32d075368cccd24785ab094f15ccbefab3e7fe6238fdaba206c4c1e5a
MD5 f81a460625de3722c7829eb4b2cfe145
BLAKE2b-256 ad29ffd6bdb8cd820906ff4b158358e879044a928efce1873ddc8f3615ff646e

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