From d54179f00f28c984b43ac892193d58a0806283e3 Mon Sep 17 00:00:00 2001 From: qingszhao Date: Thu, 27 Sep 2018 16:45:34 +0800 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: Ib4546226c254ef59d2b1b872f32267d2541e72de --- tox.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 45fac50..e948b43 100644 --- a/tox.ini +++ b/tox.ini @@ -4,7 +4,6 @@ minversion = 1.8 skipsdist = True [testenv] -basepython = /usr/bin/python setenv = VIRTUAL_ENV={envdir} usedevelop = True install_command = pip install -U {opts} {packages} @@ -16,11 +15,13 @@ whitelist_externals = bash find [testenv:pep8] +basepython = python3 commands = flake8 python setup.py check --restructuredtext --strict [testenv:venv] +basepython = python3 commands = {posargs} [flake8]