fix tox python3 overrides

We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: If667445fbc389e971a0d471c5a9dd4893a0b0995
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-06-06 16:05:59 -04:00 committed by Nguyen Hai
parent 35d7b76c89
commit 926454d1af
1 changed files with 5 additions and 0 deletions

View File

@ -40,9 +40,11 @@ python_files = test_*.py
norecursedirs = .tox .venv
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:docs]
basepython = python3
commands =
python setup.py build_sphinx
@ -56,12 +58,15 @@ basepython = python3.5
basepython = python3.6
[testenv:pep8]
basepython = python3
commands = flake8 freezer_dr
[testenv:pylint]
basepython = python3
commands = pylint --rcfile .pylintrc freezer_dr
[testenv:genconfig]
basepython = python3
sitepackages = False
envdir = {toxworkdir}/venv
commands =