tessl install tessl/pypi-tox-pyenv@1.1.0tox plugin that makes tox use `pyenv which` to find python executables
Agent Success
Agent success rate when using this tile
98%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.03x
Baseline
Agent success rate without this tile
95%
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.