diff options
author | qingszhao <zhao.daqing@99cloud.net> | 2018-06-12 01:46:53 +0800 |
---|---|---|
committer | qingszhao <zhao.daqing@99cloud.net> | 2018-06-12 01:47:42 +0800 |
commit | 0ddb7ec6dcfb1f8a7bd32f3a17221f081a1cc716 (patch) | |
tree | 843f74d58565d60fab135212ad8224e85f49f984 /tox.ini | |
parent | cc27116b549bd669d79fc50d8f62d5a73ee89967 (diff) | |
download | pbr-0ddb7ec6dcfb1f8a7bd32f3a17221f081a1cc716.tar.gz |
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: I70b4fb58c7800158907d80f83018e39d1b785668
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -17,19 +17,24 @@ commands = sitepackages = True [testenv:pep8] +basepython = python3 commands = flake8 {posargs} [testenv:docs] +basepython = python3 commands = python setup.py build_sphinx [testenv:releasenotes] +basepython = python3 commands = bash -c {toxinidir}/tools/tox_releasenotes.sh [testenv:cover] +basepython = python3 commands = python setup.py test --coverage [testenv:venv] +basepython = python3 commands = {posargs} [flake8] |