Files
pyenv-check-reqs/.gitignore
T
aneto 941fe9d85c src: rewrite pyenv-check-reqs as a usable CLI
The 91-line script hardcoded the 3.8-3.14 range, required pip-tools to be
installed *inside every* pyenv interpreter (it is not, on Arch or anywhere
else that keeps pip-tools outside pyenv), left PYENV_VERSION set in the
caller's shell through 'pyenv shell', only knew one input file, had a typo
in its warning ([WARNGING]) and gave no usable exit status.

- src/pyenv-check-reqs: --help/--version/-f|--file/--versions/--quiet/
  --verbose, 'set -euo pipefail' and '#!/usr/bin/env bash'; versions come
  from 'pyenv versions --bare' instead of a fixed regex, with optional
  filtering by exact version, minor series or range (3.8-3.14);
  pyenv work happens inside a subshell so PYENV_VERSION is never exported.
- When pip-tools is missing from an interpreter it is installed into a
  throwaway venv under  and the whole work directory is removed by
  an EXIT/INT/TERM/HUP trap; an unreachable PyPI is reported as such.
- Missing pyenv, missing requirements file and bad usage now exit 2 with
  an explanation (what to install), a resolution failure exits 1, all
  versions resolving exits 0.
2026-10-08 12:58:03 +01:00

17 lines
193 B
Plaintext

# Generated by pyenv-check-reqs itself
pyenv-check-reqs.*/
*.compile.log
*.pip.log
# Python build artifacts
__pycache__/
*.py[cod]
.venv/
venv/
# Editors / OS
.vscode/
.idea/
*.swp
.DS_Store