From 4385355b69a9aa47181ccbfe9cd73717d76be86b Mon Sep 17 00:00:00 2001 From: Corey Bryant Date: Fri, 12 Jul 2019 14:29:44 -0400 Subject: [PATCH] Add Python 3 Train unit tests This is a mechanically generated patch to ensure unit testing is in place for all of the Tested Runtimes for Train. See the Train python3-updates goal document for details: https://governance.openstack.org/tc/goals/train/python3-updates.html Note that python35-charm-jobs is retained since this charm is supported on Xenial. Change-Id: Ie6cde45d7f45d9b72d38227fc4db69d19a467446 Story: #2005924 Task: #34228 --- .zuul.yaml | 1 + setup.cfg | 4 ++++ tox.ini | 7 ++++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.zuul.yaml b/.zuul.yaml index dc27661..7332a87 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -1,4 +1,5 @@ - project: templates: - python35-charm-jobs + - openstack-python3-train-jobs - openstack-cover-jobs diff --git a/setup.cfg b/setup.cfg index b7d1a9f..896ef0a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -11,6 +11,10 @@ classifier = Intended Audience :: System Administrators License :: OSI Approved :: Apache Software License Operating System :: POSIX :: Linux + Programming Language :: Python :: 3 + Programming Language :: Python :: 3.5 + Programming Language :: Python :: 3.6 + Programming Language :: Python :: 3.7 [nosetests] verbosity=2 diff --git a/tox.ini b/tox.ini index b0596f5..ba2a0aa 100644 --- a/tox.ini +++ b/tox.ini @@ -2,7 +2,7 @@ # This file is managed centrally by release-tools and should not be modified # within individual charm repos. [tox] -envlist = pep8,py27,py35,py36 +envlist = pep8,py27,py37 skipsdist = True skip_missing_interpreters = True @@ -31,6 +31,11 @@ basepython = python3.6 deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt +[testenv:py37] +basepython = python3.7 +deps = -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + [testenv:pep8] basepython = python3 deps = -r{toxinidir}/requirements.txt