tox plugin that makes tox use `pyenv which` to find python executables
Overall
score
98%
A tox plugin that integrates with pyenv to discover Python executables for testing environments.
Build a tox plugin that uses pyenv to find Python executables. When pyenv is unavailable or fails, the plugin should log appropriate messages and fall back gracefully to tox's default behavior.
The plugin must implement a hook function that tox calls to discover Python executables for test environments. This function receives an environment configuration object with a basepython attribute (e.g., "python3.8") and should return the path to the appropriate Python executable.
The plugin must provide detailed logging throughout its execution:
When pyenv cannot provide a Python executable (either because pyenv is not installed or because the requested version is not available), the plugin should return None to allow tox to use its default discovery mechanism.
pyenv which <basepython>@generates
Provides pyenv integration for tox.
Install with Tessl CLI
npx tessl i tessl/pypi-tox-pyenvdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10