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: Iaa7c9b9fca48dd2e091049da711e70395f6ec28e
tags/0.17.0^2
huang.zhiping 1 year ago
parent
commit
ccd56bf0d4
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tox.ini

+ 3
- 0
tox.ini View File

@@ -39,14 +39,17 @@ commands =
stestr run --serial {posargs}

[testenv:pep8]
basepython = python3
commands =
flake8
python setup.py check --restructuredtext --strict

[testenv:venv]
basepython = python3
commands = {posargs}

[testenv:cover]
basepython = python3
# Also do not run test_coverage_ext tests while gathering coverage as those
# tests conflict with coverage.
setenv =

Loading…
Cancel
Save