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:
parent
35d7b76c89
commit
926454d1af
5
tox.ini
5
tox.ini
|
@ -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 =
|
||||
|
|
Loading…
Reference in New Issue