• This repository has been archived on 14/Jul/2023
  • Stars
    star
    127
  • Rank 275,295 (Top 6 %)
  • Language
    Python
  • License
    Apache License 2.0
  • Created over 8 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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

tox-pyenv

latest Circle CI

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

Why does this exist?

See the full story here stavxyz/circleci-python-sandbox#1

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. See CircleCI Preinstalled Python Versions for a list.

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.

CircleCI Preinstalled Python Versions

Here is the list of python versions that are pre-installed in the CircleCI build environment (as of 09/27/2017):

$ pyenv versions
  system
  2.6.6
  2.6.8
  2.7
  2.7.10
  2.7.11
  2.7.3
  2.7.4
  2.7.5
  2.7.6
  2.7.7
  2.7.8
* 2.7.9 (set by /home/ubuntu/.pyenv/version)
  3.1.5
  3.2
  3.2.5
  3.3.0
  3.3.2
  3.3.3
  3.4.0
  3.4.1
  3.4.2
  3.4.3
  3.5.0
  pypy-2.2.1
  pypy-2.3.1
  pypy-2.4.0
  pypy-2.5.0

If the version you need isn't in the list, such as Python 3.6-dev include an install step:

dependencies:
  override:
    - pip install tox tox-pyenv
    - pyenv install --skip-existing 3.6-dev
    - pyenv local 3.6-dev

More Repositories

1

tox

Command line driven CI frontend and development task automation tool.
Python
3,558
star
2

pipdeptree

A command line utility to display dependency tree of the installed Python packages
Python
2,710
star
3

filelock

A platform-independent file lock for Python.
Python
696
star
4

sphinx-autodoc-typehints

Type hints support for the Sphinx autodoc extension
Python
531
star
5

tox-travis

Seamless integration of tox into Travis CI
Python
203
star
6

tox-docker

A tox plugin to run one or more Docker containers during tests
Python
173
star
7

pyproject-fmt

Python
160
star
8

tox-conda

Make tox cooperate with conda envs
Python
152
star
9

tox-pipenv

A pipenv plugin for Tox
Python
123
star
10

detox

distributed tox (tox plugin to run testenvs in parallel)
Python
48
star
11

tox-ini-fmt

Formats your tox.ini files
Python
40
star
12

tox-gh

Github Action support for tox 4 and later
Python
39
star
13

azure-pipelines-template

template for your azure pipelines
24
star
14

tox-uv

Use https://github.com/astral-sh/uv with tox
Python
23
star
15

tox-venv

Use Python 3 venvs for Python 3 test environments
Python
21
star
16

pyproject-api

API to interact with the python pyproject.toml based projects
Python
21
star
17

sphinx-argparse-cli

Render CLI arguments (sub-commands friendly) defined by the argparse module.
Python
20
star
18

pyproject-fmt-rust

Rust
8
star
19

devpi-process

Python
7
star
20

gh-action-tox

Run tox as a Github Action
Dockerfile
6
star
21

tox-report

Records tox console output and produces a colored HTML report with it.
Python
6
star
22

tox-extra

Tox plugin which adds few extra checks like assuring that git does not report dirty
Python
5
star
23

cookiecutter-tox-plugin

Cookiecutter template for tox plugins
Python
5
star
24

tox-bindep

Tox plugin to run bindep checks before tests
Python
4
star
25

workflow

3
star
26

tox-external-wheels

A plugin for tox to allow external wheels for testing
Python
3
star
27

py-discovery

Python
1
star