diff options
author | Ivan Kolodyazhny <e0ne@e0ne.info> | 2020-01-10 00:14:46 +0200 |
---|---|---|
committer | Akihiro Motoki <amotoki@gmail.com> | 2020-01-10 16:10:21 +0900 |
commit | f294fa93c24fd0ae64bc431a04c2385690b59084 (patch) | |
tree | 0d4437730cb5b09726dba0f662f7c5e2f67e9859 | |
parent | 2987358035e588fe7e4db2aab24a41a10b57ead4 (diff) | |
download | horizon-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.ini | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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} |