tox plugin that makes tox use `pyenv which` to find python executables
Overall
score
98%
Create a Python version manager integration utility that discovers Python executables based on local and global version configuration.
@generates
def find_version_executable(version_name: str) -> str:
"""
Find the full path to a Python executable for a specific version.
Args:
version_name: The Python version identifier (e.g., "python3.8")
Returns:
The absolute path to the Python executable
Raises:
RuntimeError: If the version manager command fails
"""
pass
def get_local_version_executable() -> str:
"""
Get the Python executable path for the locally-configured version.
Respects local version configuration in the current directory.
Returns:
The absolute path to the locally-configured Python executable
Raises:
RuntimeError: If version manager command fails
"""
pass
def get_global_version_executable() -> str:
"""
Get the Python executable path for the globally-configured version.
Returns:
The absolute path to the global default Python executable
Raises:
RuntimeError: If version manager command fails
"""
passProvides subprocess management for executing external commands and capturing output.
@satisfied-by
Provides operating system interfaces for path manipulation and environment variables.
@satisfied-by
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