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: I9c9ebca3f476a13f41196f7693688a358dda0e9c
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-09-26 19:01:47 -04:00
parent 6729652e86
commit 171cb1c32d
1 changed files with 2 additions and 0 deletions

View File

@ -11,9 +11,11 @@ deps = -r{toxinidir}/requirements.txt
whitelist_externals = find
[testenv:pep8]
basepython = python3
commands = flake8
[testenv:venv]
basepython = python3
# NOTE(jaegerandi): this target does not use constraints because
# upstream infra does not yet support it. Once that's fixed, we can
# drop the install_command.