diff options
| author | Luigi Toscano <ltoscano@redhat.com> | 2020-01-24 10:28:17 +0100 |
|---|---|---|
| committer | Luigi Toscano <ltoscano@redhat.com> | 2020-01-24 10:28:17 +0100 |
| commit | 17555ff0f8e3e838cdce3972b8eba44dcbb8e5d0 (patch) | |
| tree | aa7165e8de3612c486ff8f5480f2e80d8cae22bf | |
| parent | 1b63bdd0611c19c093b21a3bf21f743bc83790b6 (diff) | |
| download | python-cinderclient-17555ff0f8e3e838cdce3972b8eba44dcbb8e5d0.tar.gz | |
Explicitly use python2.7 for linters and basic jobs
Queens is the last version before the introduction of the new PTI
which switched the basic jobs to python3.
Despite being EM, the pep8 job is failing because it tries to use
python3 (now the default on the OpenDev-provided Zuul instances)
but it is still worth fixing it.
Change-Id: Ifa03268f3e062ee8e3b4453b48163cd5e504451d
| -rw-r--r-- | tox.ini | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -24,9 +24,11 @@ commands = find . -type f -name "*.pyc" -delete whitelist_externals = find [testenv:pep8] +basepython = python2.7 commands = flake8 [testenv:pylint] +basepython = python2.7 deps = -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/queens} -r{toxinidir}/requirements.txt @@ -62,6 +64,7 @@ deps = commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html [testenv:functional] +basepython = python2.7 commands = ostestr {posargs} setenv = {[testenv]setenv} |
