From 161b8ea3398a35bd20f8d1c6f3922d06b5b10f26 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 9 May 2019 14:26:00 +0800 Subject: [PATCH] Update Python 3 test runtimes for Train This goal is to implement the process set out in the 2018-10-24 Python Update Process TC resolution[1], for the Train cycle to ensure unit testing is in place for all of the Tested Runtimes for Train[2]. In practice, this generally means adding unit tests for Python 3.7 and dropping unit tests for Python 3.5. Using the Zuul template for Train will ensure that all projects that support Python3 will be tested against the agreed runtime versions, and make it easier to update them in future. [1]https://governance.openstack.org/tc/resolutions/20181024-python-update-process.html [2]https://governance.openstack.org/tc/reference/runtimes/train.html Change-Id: I25cca96431cdc97fce167c1c0be08c1169421fe8 Depends-On: https://review.opendev.org/#/c/641878/ --- .zuul.yaml | 3 +-- setup.cfg | 1 + tox.ini | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.zuul.yaml b/.zuul.yaml index 1dc12ad..2357908 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -3,8 +3,7 @@ - check-requirements - openstack-lower-constraints-jobs - openstack-python-jobs - - openstack-python36-jobs - - openstack-python37-jobs + - openstack-python3-train-jobs - publish-openstack-docs-pti - release-notes-jobs-python3 check: diff --git a/setup.cfg b/setup.cfg index 89c257d..29f1d75 100644 --- a/setup.cfg +++ b/setup.cfg @@ -9,6 +9,7 @@ classifiers = Programming Language :: Python :: 2.7 Programming Language :: Python :: 3 Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 Environment :: OpenStack Intended Audience :: Information Technology Intended Audience :: System Administrators diff --git a/tox.ini b/tox.ini index b11e5bc..fc0fae0 100644 --- a/tox.ini +++ b/tox.ini @@ -24,6 +24,10 @@ commands = oslo_debug_helper -t sahara_plugin_ambari/tests/unit {posargs} basepython = python3.6 commands = oslo_debug_helper -t sahara_plugin_ambari/tests/unit {posargs} +[testenv:debug-py37] +basepython = python3.7 +commands = oslo_debug_helper -t sahara_plugin_ambari/tests/unit {posargs} + [testenv:pep8] basepython = python3 deps =