From f6e448f4f8b47a77eabe770e7d28ddf1d6f7a8d0 Mon Sep 17 00:00:00 2001 From: 98k <18552437190@163.com> Date: Fri, 5 Oct 2018 11:06:45 +0000 Subject: [PATCH] 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: If27680653af5229af8c9de14c204993902830dfd --- tox.ini | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tox.ini b/tox.ini index d5a5a36..6728173 100644 --- a/tox.ini +++ b/tox.ini @@ -13,6 +13,7 @@ setenv = VIRTUAL_ENV={envdir} deps = -r{toxinidir}/test-requirements.txt [testenv:linters] +basepython = python3 whitelist_externals = bash commands = bash -c "find {toxinidir} \ @@ -23,6 +24,7 @@ commands = bash -c "ls extras/scripts/*.sh | xargs bashate -v {posargs}" [testenv:pep8] +basepython = python3 usedevelop = False skip_install = True deps = @@ -31,4 +33,5 @@ commands = pep8 [testenv:venv] +basepython = python3 commands = {posargs}