Prepare to support python3.6

This patch prepares python3.6 support.

We should add py36-local into tox.ini and support for python3.6
into setup.cfg when we decide to support python3.6 formally.

Change-Id: I38f155de2188012348f770562c2b24c593183294
This commit is contained in:
Shu Muto 2018-07-25 15:37:00 +09:00
parent cf27da5337
commit 38f3ab72b8
2 changed files with 8 additions and 3 deletions

View File

@ -1,6 +1,8 @@
- project: - project:
check: check:
jobs: jobs:
- openstack-tox-py36:
voting: false
- horizon-openstack-tox-python3-django111 - horizon-openstack-tox-python3-django111
- nodejs-npm-run-lint: - nodejs-npm-run-lint:
vars: vars:

View File

@ -48,9 +48,6 @@ commands =
# NOTE(shu-mutow): On CI infra, horizon will be installed # NOTE(shu-mutow): On CI infra, horizon will be installed
# according to job setting. but on local, we need to install # according to job setting. but on local, we need to install
# horizon from master branch. # horizon from master branch.
[testenv:py27]
basepython = python2.7
[testenv:py27-local] [testenv:py27-local]
basepython = python2.7 basepython = python2.7
commands = commands =
@ -63,6 +60,12 @@ commands =
{[testenv:hz-local]commands} {[testenv:hz-local]commands}
{[testenv]commands} {[testenv]commands}
[testenv:py36-local]
basepython = python3.6
commands =
{[testenv:hz-local]commands}
{[testenv]commands}
[testenv:py3-dj111] [testenv:py3-dj111]
basepython = python3 basepython = python3
commands = commands =