Skip to main content

A tox Python discovery plugin for pyenv-installed interpreters

Project description

tox-pyenv-redux

GitHub License PyPI - Python Version PyPI - Version PyPI - Downloads GitHub Repo stars

A tox Python discovery plugin for pyenv–installed interpreters

Compatibility

  • For legacy versions of tox (0.x—3.x), use tox-pyenv-redux 0.x (tox-pyenv-redux < 1). These versions do not rely on virtualenv-pyenv and DO NOT support the pyenv_discovery setting.
  • For the current version of tox (4.x), use tox-pyenv-redux 1.x (tox-pyenv-redux >= 1, < 2). These versions delegate the discovery job to virtualenv-pyenv.

Installation

pip install tox-pyenv-redux

Usage

The plugin is enabled by default and configured to use the default discovery operation mode. To change the mode or disable the plugin, set the pyenv_discovery environment setting to one of the following values:

  • One of the operation modes (e.g., fallback) to use the specific operation mode. pyenv_discovery = fallback is equivalent to export VIRTUALENV_DISCOVERY=pyenv-fallback.
  • default to use the default operation mode. This is the default value. pyenv_discovery = default (or no setting) is equivalent to export VIRTUALENV_DISCOVERY=pyenv.
  • off to disable the plugin. The plugin will not touch the VIRTUALENV_DISCOVERY environment variable, but the virtualenv-pyenv discovery can still be in effect if virtualenv is already configured to use it (via the VIRTUALENV_DISCOVERY environment variable or the discovery config setting).

Examples

  • Set the fallback operation mode via a config file:

    [tox]
    min_version = 4.0
    requires = tox-pyenv-redux
    
    [testenv]
    pyenv_discovery = fallback
    deps = pytest
    commands = pytest {posargs}
    
  • Disable the plugin via command line arguments:

    tox run -x testenv.pyenv_discovery=off
    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tox_pyenv_redux-1.2.0.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tox_pyenv_redux-1.2.0-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file tox_pyenv_redux-1.2.0.tar.gz.

File metadata

  • Download URL: tox_pyenv_redux-1.2.0.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for tox_pyenv_redux-1.2.0.tar.gz
Algorithm Hash digest
SHA256 fdabac723a99710f936031fe5e7a0125205441536190512cbd59d6e0a9e57440
MD5 59bba473d64ba434bd7a373960f90cac
BLAKE2b-256 e3d0aa412f0e6eb8437941e078eb3523f01600626b3dea595117f786445ddee6

See more details on using hashes here.

File details

Details for the file tox_pyenv_redux-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tox_pyenv_redux-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a583e430a01f576b34c3ed3c428981f73b6e30cd45c114c42ea0e283dc90534a
MD5 b1a80a936c7eb207a9658fd4c30868dd
BLAKE2b-256 394f2c0056a4acac76d3b0be6ad0382849df6b150610861d5b09e2ca8b06526e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page