From 1298e765d1e0f4753ad602644585c1d2b06f66e2 Mon Sep 17 00:00:00 2001 From: Nguyen Hung Phuong Date: Mon, 9 Jul 2018 13:40:33 +0700 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: I483632acf5a68075bbf200ffb172f945e5294cf8 --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tox.ini b/tox.ini index 6d9541e3..a73f03d7 100644 --- a/tox.ini +++ b/tox.ini @@ -15,6 +15,7 @@ deps = scrapy>=1.0.0 commands = python setup.py testr --slowest --testr-args='{posargs}' [testenv:pep8] +basepython = python3 commands = python setup.py check --restructuredtext --strict flake8 @@ -27,15 +28,18 @@ commands = bashate bin/doc-tools-check-languages [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:sitemap] # commands = functional test command goes here [testenv:venv] +basepython = python3 commands = {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:bindep] @@ -45,6 +49,7 @@ commands = python setup.py build_sphinx # separately, outside of the requirements files, and develop mode disabled # explicitly to avoid unnecessarily installing the checked-out repo too (this # further relies on "tox.skipsdist = True" above). +basepython = python3 deps = bindep commands = bindep test usedevelop = False