Commit Graph
3 Commits
Author SHA1 Message Date
aneto aeaf491b77 docs: add README, MIT LICENSE and .gitignore
The repository was a single file: no description of what it does, no
licence and no stated limitations. The README documents the interface, the
exit codes and the temporary-venv behaviour, and quotes real output from a
run over seven pyenv interpreters (3.8.20 through 3.12.11).
2026-10-08 12:58:19 +01:00
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
aneto e16e8029b7 Initial commit 2025-07-25 04:59:53 +01:00