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 thepyenv_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 toexport VIRTUALENV_DISCOVERY=pyenv-fallback
. default
to use the default operation mode. This is the default value.pyenv_discovery = default
(or no setting) is equivalent toexport VIRTUALENV_DISCOVERY=pyenv
.off
to disable the plugin. The plugin will not touch theVIRTUALENV_DISCOVERY
environment variable, but the virtualenv-pyenv discovery can still be in effect if virtualenv is already configured to use it (via theVIRTUALENV_DISCOVERY
environment variable or thediscovery
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.0.0.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for tox_pyenv_redux-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c7e5a077c591fca398e167fcd37a7b4972268260cb1a5c0335021fcf26a61c0 |
|
MD5 | 4ba108804353ed86b1a8388ccc77bf09 |
|
BLAKE2b-256 | a44eb9e040aa71118582b3a1071eaa3b45b0deee81771e4572b15c9b5f8ca3b4 |