tox plugin that makes tox use `pyenv which` to find python executables
Overall
score
98%
A tox plugin that implements a fallback mechanism for Python executable discovery, attempting to use a primary version manager before falling back to the system's default Python discovery.
@generates
import subprocess
from typing import Optional
def get_python_executable(basepython: str, primary_command: str) -> Optional[str]:
"""
Attempts to discover Python executable using a primary command, falling back to None.
Args:
basepython: The target Python version identifier (e.g., "python3.8", "python2.7")
primary_command: The command to use for primary discovery (e.g., "pyenv")
Returns:
The full path to the Python executable if found via primary command,
or None to signal that tox should use its default discovery mechanism.
The function executes: `<primary_command> which <basepython>`
"""
passInstall 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