Added Python3 support.

* added tox environment variable for python 3 (py35,py35dj111)
 * updated the support python 3.5
 * Added .zuul.yaml file

Fixes bug 1878181

Change-Id: I6ca151c7fe5007bad05c11393d0b8f96cf19d926
This commit is contained in:
niteshk4 2020-05-12 15:41:14 +05:30 committed by Nitesh
parent 71d6ebce27
commit 509d27eb55
2 changed files with 36 additions and 1 deletions

25
.zuul.yaml Normal file
View File

@ -0,0 +1,25 @@
- project:
name: x/group-based-policy-ui
templates:
- openstack-python-jobs
- publish-to-pypi
check:
jobs:
- openstack-tox-pep8:
nodeset: ubuntu-xenial
- openstack-tox-py27:
nodeset: ubuntu-xenial
- openstack-tox-py35:
nodeset: ubuntu-xenial
- test-release-openstack:
nodeset: ubuntu-xenial
gate:
jobs:
- openstack-tox-pep8:
nodeset: ubuntu-xenial
- openstack-tox-py27:
nodeset: ubuntu-xenial
- openstack-tox-py35:
nodeset: ubuntu-xenial
- test-release-openstack:
nodeset: ubuntu-xenial

12
tox.ini
View File

@ -1,9 +1,10 @@
[tox]
envlist = py26,py27,py27dj14,py27dj15,pep8,py33
envlist = py26,py27,py27dj14,py27dj15,pep8,py33,py35,py35dj111
minversion = 1.6
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
install_command = pip install -U {opts} {packages}
setenv = VIRTUAL_ENV={envdir}
@ -55,6 +56,15 @@ commands = nodeenv -p
setenv = DJANGO_SETTINGS_MODULE=openstack_dashboard.test.settings
commands = python setup.py build_sphinx
[testenv:py35dj111]
basepython = python3
commands = pip install django>=1.11
/bin/bash run_tests.sh -N --no-pep8 {posargs}
[testenv:py35integration]
basepython = python3
commands = /bin/bash run_tests.sh -N --integration --selenium-headless {posargs}
[flake8]
exclude = .venv,.git,.tox,dist,*openstack/common*,*lib/python*,*egg,build,panel_template,dash_template,local_settings.py,*/local/*,*/test/test_plugins/*,.ropeproject
# E127 continuation line over-indented for visual indent