From 4748818fa857fc8618457778bd8e663cc1bd3aff Mon Sep 17 00:00:00 2001 From: "huang.zhiping" Date: Wed, 3 Oct 2018 01:58:43 +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: Iafb959ea0c81fd0a89faee48949dc0f0af3457b5 --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index f1c95c5..bf3aacb 100644 --- a/tox.ini +++ b/tox.ini @@ -25,12 +25,14 @@ description = Runs set of linters against codebase (checkniceness) commands = {[testenv:checkniceness]commands} [testenv:checkniceness] +basepython = python3 description = Validates (pep-like) documenation skip_install = True usedevelop = False commands = doc8 --file-encoding utf-8 {toxinidir}/doc [testenv:spelling] +basepython = python3 deps = -r{toxinidir}/requirements.txt sphinxcontrib-spelling