summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Kolodyazhny <e0ne@e0ne.info>2020-01-10 00:14:46 +0200
committerAkihiro Motoki <amotoki@gmail.com>2020-01-10 16:10:21 +0900
commitf294fa93c24fd0ae64bc431a04c2385690b59084 (patch)
tree0d4437730cb5b09726dba0f662f7c5e2f67e9859
parent2987358035e588fe7e4db2aab24a41a10b57ead4 (diff)
downloadhorizon-f294fa93c24fd0ae64bc431a04c2385690b59084.tar.gz
Use python 2.7 as the default interpreter in tox
Infra uses Python 3.5 of tox jobs. The pep8 job and py27djNNN jobs are now run with python3.5 while they are expected to run with python2.7 as of the release. The pep8 job fails on Python2-specific code in the openstack_dashboard/dashboards/admin/images/views.py module with 'long' type cast. This patch enforces us to use Python 2.7 for pep8 job. This probably could be fixed in the infra side but as a short term solution we can cope with this situation in the horizon repo side. Co-Authored-By: Akihiro Motoki <amotoki@gmail.com> Change-Id: I25b0b00eb3d575f8a8c1705f987cfcc0336eccfb
-rw-r--r--tox.ini2
1 files changed, 2 insertions, 0 deletions
diff --git a/tox.ini b/tox.ini
index dded8b84e..cbf43d0f0 100644
--- a/tox.ini
+++ b/tox.ini
@@ -4,6 +4,7 @@ minversion = 2.3.2
skipsdist = True
[testenv]
+basepython = python2.7
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt?h=stable/pike} {opts} {packages}
setenv =
VIRTUAL_ENV={envdir}
@@ -26,6 +27,7 @@ commands =
venv: {posargs}
[testenv:py35]
+basepython = python3.5
setenv =
PYTHONUNBUFFERED = 1
{[testenv]setenv}