use python3 in tox

Set basepython once and override it for the py27 environment.

Change-Id: I7dfbe8d213f2780cb2808de9b9bebb079da50901
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-08-14 13:17:12 -04:00
parent 55be2a7658
commit 8c2f316bdb
1 changed files with 4 additions and 0 deletions

View File

@ -4,6 +4,7 @@ envlist = pep8,bash8
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
# Every entry needs new line ...
whitelist_externals = bash
@ -22,6 +23,9 @@ deps = -r{toxinidir}/requirements.txt
commands =
find . -type f -name "*.pyc" -delete
[testenv:py27]
basepython = python2.7
[testenv:venv]
commands = {posargs}