From 171cb1c32d9fc4a6599296f89e222a5da062c3df Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 26 Sep 2018 19:01:47 -0400 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: I9c9ebca3f476a13f41196f7693688a358dda0e9c Signed-off-by: Doug Hellmann --- tox.ini | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tox.ini b/tox.ini index 576443c..0e820c4 100644 --- a/tox.ini +++ b/tox.ini @@ -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.