Skip to main content

A tox Python discovery plugin for pyenv-installed interpreters

Project description

tox-pyenv-redux

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.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

tox_pyenv_redux-1.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file tox-pyenv-redux-1.1.0.tar.gz.

File metadata

  • Download URL: tox-pyenv-redux-1.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for tox-pyenv-redux-1.1.0.tar.gz
Algorithm Hash digest
SHA256 bbfe47a8cdeadcb4f96762f18220946714a76cb53ab285b5ae8e83e3ea617b3e
MD5 b01b07266491c8aac38f17b63e1d8b7b
BLAKE2b-256 5be6a87b66a3c60ea73379db356487864bf16b2297a5b2ff33d44e3458b591a2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tox_pyenv_redux-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf45ca73634163bd04fa41f2ba6c6852d6099afa8324ddbe4ad06a467c7ea730
MD5 95ef436c86ea9c317aefd44692562f5e
BLAKE2b-256 d37a5b70608df1200f4e1f031b138025b5560e25f17080067c6a2fd4e4895c47

See more details on using hashes here.

Supported by

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