Skip to main content

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

Project description

latest Circle CI

Plugin that tells tox to use pyenv which to find python executables

Your project’s circle.yml

In order for tox to have the versions of python you want available, set them using pyenv local

dependencies:
  override:
    - pip install tox tox-pyenv
    - pyenv local 2.7.9 3.4.3 3.5.0

The versions passed to pyenv local must be installed for this to work. Check out the list of python versions that are pre-installed in the CircleCI build environment: https://circleci.com/docs/environment#python

Corresponding tox.ini

[tox]
envlist = py27,py34,py35

The result of the setup above means running tox will run tests against python 2.7.9, python 3.4.3 and python 3.5.0, assuming those versions of python have been pyenv installed.

notes

If you want tox to exclusively use pyenv which to find executables, you will need use the --tox-pyenv-no-fallback command line option, or set tox_pyenv_fallback=False in your tox.ini. By default, if tox-pyenv fails to find a python executable it will fallback to tox’s built-in strategy.

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

Uploaded Source

Built Distribution

tox_pyenv-1.0.3-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file tox-pyenv-1.0.3.tar.gz.

File metadata

  • Download URL: tox-pyenv-1.0.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for tox-pyenv-1.0.3.tar.gz
Algorithm Hash digest
SHA256 0a35255d4bbc61b5401c5e6fcea5a1c89a91c66dff5cfe47103e0b670444f7fd
MD5 864d4a2480b0d00b6ea1890bde2b7827
BLAKE2b-256 5eb7ffbe551cec03004c4dc7e388b3b79f26e5f2d15723830dfa587246014e9f

See more details on using hashes here.

File details

Details for the file tox_pyenv-1.0.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for tox_pyenv-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ae6b1011f2d8a3b466a70311d15a6b99b9599e90ed108be434feefb65e28eec3
MD5 e91c83a78bc8f0a802e3f3ff87f2fb46
BLAKE2b-256 5de29858c90bc05a35960c65dcf8b61f6179b3dce548c035979be7855c2260f3

See more details on using hashes here.

Supported by

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