use python3 in tox

Set basepython once in testenv and let the other environments inherit
the value.

Change-Id: I98aa7d500d2c3abe3f10b09b282ea550bec5f43c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-08-14 13:11:10 -04:00
parent c62cda75e5
commit e6de5e7a88
1 changed files with 1 additions and 2 deletions

View File

@ -4,6 +4,7 @@ envlist = docs,py27
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv = VIRTUAL_ENV={envdir}
install_command = pip install -U {opts} {packages}
@ -13,11 +14,9 @@ install_command = pip install -U {opts} {packages}
commands = doc8 -e .rst specs/ doc/ README.rst
[testenv:venv]
basepython = python3
commands = {posargs}
[testenv:docs]
basepython = python3
commands =
doc8 -e .rst specs/ doc/ README.rst
sphinx-build -W -b html doc/source doc/build