CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-tox-pyenv

tox plugin that makes tox use `pyenv which` to find python executables

Overall
score

98%

Overview
Eval results
Files

task.mdevals/scenario-6/

Tox Configuration Manager

A Python utility that manages tox configuration files to control pyenv fallback behavior in testing environments.

Capabilities

Configure tox-pyenv fallback behavior

  • Creates a tox.ini file with a testenv section that includes the tox_pyenv_fallback attribute set to False @test
  • Updates an existing tox.ini file to add or modify the tox_pyenv_fallback attribute in the testenv section @test
  • Reads a tox.ini file and extracts the current tox_pyenv_fallback setting value @test

Implementation

@generates

API

def create_tox_config(output_path: str, fallback: bool = False) -> None:
    """
    Creates a tox.ini configuration file with tox_pyenv_fallback setting.

    Args:
        output_path: Path where the tox.ini file should be created
        fallback: Value for tox_pyenv_fallback (True or False)
    """
    pass

def update_tox_config(config_path: str, fallback: bool) -> None:
    """
    Updates the tox_pyenv_fallback setting in an existing tox.ini file.

    Args:
        config_path: Path to the existing tox.ini file
        fallback: New value for tox_pyenv_fallback (True or False)
    """
    pass

def read_fallback_setting(config_path: str) -> bool:
    """
    Reads the tox_pyenv_fallback setting from a tox.ini file.

    Args:
        config_path: Path to the tox.ini file

    Returns:
        The value of tox_pyenv_fallback (True or False)
    """
    pass

Dependencies { .dependencies }

tox-pyenv { .dependency }

A tox plugin that provides pyenv integration and configuration options for controlling Python version discovery behavior.

Install with Tessl CLI

npx tessl i tessl/pypi-tox-pyenv

tile.json