diff options
author | Marcin Piwowarczyk <m.piwowarczy@samsung.com> | 2018-06-06 16:06:05 -0400 |
---|---|---|
committer | Marcin Piwowarczyk <m.piwowarczy@samsung.com> | 2018-09-18 17:19:20 +0000 |
commit | ad848298821974a5b7acf7120778cf3e8b1fe023 (patch) | |
tree | acd0ed8215e5de55681bdae8f10ff954c79d18ac /tox.ini | |
parent | 7e4e25f12feba32202e082d2f8b84a23cb9ae3af (diff) | |
download | trove-ad848298821974a5b7acf7120778cf3e8b1fe023.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: I9ee34642c700d1e6ba9c2f3891b7fa1f7f7e1e1d
Depends-On: I8989fd4798e80eae27408017e1543819a68b4ab1
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Signed-off-by: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
Co-Authored-By: Doug Hellmann <doug@doughellmann.com>
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -29,22 +29,25 @@ whitelist_externals = find sitepackages = True [testenv:pep8] -basepython = python2.7 +basepython = python3 commands = flake8 doc8 {posargs} [testenv:apiexamples] +basepython = python3 commands = {envpython} generate_examples.py [testenv:fakemodetests] +basepython = python3 commands = {envpython} run_tests.py [testenv:debug] +basepython = python3 commands = oslo_debug_helper {posargs} [testenv:cover] -basepython = python2.7 +basepython = python3 commands = {[testenv]commands} coverage erase @@ -55,6 +58,7 @@ commands = coverage report [testenv:venv] +basepython = python3 commands = {posargs} [doc8] @@ -77,6 +81,7 @@ import_exceptions = trove.common.i18n local-check-factory = trove.hacking.checks.factory [testenv:api-ref] +basepython = python3 # This environment is called from CI scripts to test and publish # the API Ref to developer.openstack.org. commands = @@ -84,19 +89,24 @@ commands = sphinx-build -W -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html [testenv:releasenotes] +basepython = python3 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:bandit] +basepython = python3 commands = bandit -r trove -n5 -x tests [testenv:bandit-baseline] +basepython = python3 envdir = {toxworkdir}/bandit commands = bandit-baseline -r trove -n5 -x tests -ii -ll [testenv:genpolicy] +basepython = python3 commands = oslopolicy-sample-generator --config-file=tools/trove-policy-generator.conf [testenv:pylint] +basepython = python3 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = {[testenv]commands} |