Browse Source

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
Nguyen Hung Phuong 2 years ago
1 changed files with 5 additions and 0 deletions
  1. +5

+ 5
- 0
tox.ini View File

@@ -15,6 +15,7 @@ deps = scrapy>=1.0.0
commands = python testr --slowest --testr-args='{posargs}'

basepython = python3
commands =
python check --restructuredtext --strict
@@ -27,15 +28,18 @@ commands =
bashate bin/doc-tools-check-languages

basepython = python3
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html

# commands = functional test command goes here

basepython = python3
commands = {posargs}

basepython = python3
commands = python build_sphinx

@@ -45,6 +49,7 @@ commands = python 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