diff options
| author | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2019-10-24 13:47:48 +0200 |
|---|---|---|
| committer | Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> | 2019-11-07 15:58:33 +0000 |
| commit | 8d1dead8901b988f2f0f7da42357e8e04d70de4e (patch) | |
| tree | e5c3dc70d0d49cb6c7fc5782e150911d4781f293 /tox.ini | |
| parent | a7e8360f53d3daebc4991970898eaa3cfdd4f1e5 (diff) | |
| download | kolla-8d1dead8901b988f2f0f7da42357e8e04d70de4e.tar.gz kolla-8d1dead8901b988f2f0f7da42357e8e04d70de4e.zip | |
tox: use Python 3 where possible
Time to say goodbye for Python 2
Depends-On: https://review.opendev.org/693356
Change-Id: I5f23da932df70bf17d09d42420ac408221d0e02f
Diffstat (limited to 'tox.ini')
| -rw-r--r-- | tox.ini | 23 |
1 files changed, 14 insertions, 9 deletions
@@ -1,9 +1,10 @@ [tox] minversion = 2.5.0 skipsdist = True -envlist = pep8,py27,py37,pypy +envlist = pep8,py37,pypy [testenv] +basepython = python3 usedevelop=True whitelist_externals = find rm @@ -20,11 +21,22 @@ commands = stestr run {posargs} stestr slowest +[testenv:py27] +basepython = python2.7 + +[testenv:py36] +basepython = python3.6 + +[testenv:py37] +basepython = python3.7 + +[testenv:pypy] +basepython = pypy + [testenv:debug] commands = oslo_debug_helper -t kolla/tests {posargs} [testenv:cover] -basepython = python3 setenv = VIRTUAL_ENV={envdir} NOSE_WITH_COVERAGE=1 NOSE_COVER_BRANCHES=1 @@ -39,7 +51,6 @@ commands = coverage report --show-missing [testenv:pep8] -basepython = python3 deps = {[testenv]deps} yamllint @@ -56,7 +67,6 @@ commands = commands = bandit --skip B303 -r docker kolla tests tools [testenv:venv] -basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt @@ -64,7 +74,6 @@ deps = commands = {posargs} [testenv:docs] -basepython = python3 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/requirements.txt @@ -76,7 +85,6 @@ commands = sphinx-build -W --keep-going -b html doc/source doc/build/html [testenv:pdf-docs] -basepython = python3 whitelist_externals = make deps = {[testenv:docs]deps} commands = @@ -149,14 +157,12 @@ commands= oslo-config-generator --config-file etc/oslo-config-generator/kolla-build.conf [testenv:releasenotes] -basepython = python3 deps = -r{toxinidir}/doc/requirements.txt commands = rm -rf releasenotes/build sphinx-build -a -E -W -d releasenotes/build/doctrees --keep-going -b html releasenotes/source releasenotes/build/html [testenv:bindep] -basepython = python3 # Do not install any requirements. We want this to be fast and work even if # system dependencies are missing, since it's used to tell you what system # dependencies are missing! This also means that bindep must be installed @@ -173,7 +179,6 @@ exclude=.eggs,.git,.tox,doc local-check-factory = kolla.hacking.checks.factory [testenv:lower-constraints] -basepython = python3 deps = -c{toxinidir}/lower-constraints.txt -r{toxinidir}/test-requirements.txt |
