From 7b24ea8dfe1667fe00b87cac9f0a0ca670b6a86f Mon Sep 17 00:00:00 2001 From: Cédric Ollivier Date: Fri, 26 Jul 2019 12:58:04 +0200 Subject: Switch to Python 3.7 and Alpine 3.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It also allows building docs as doc8 is broken due to latest OpenStack's upper-constraints. pylint is updated to 2.3.1 (lastest py3.7 version) It disables perm as umask is currently false on lf-virtual1. Change-Id: I8568eeafa44c5dba72e206c532c1f50e3ad547f2 Signed-off-by: Cédric Ollivier --- tox.ini | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tox.ini') diff --git a/tox.ini b/tox.ini index 6dcf9fc4..1904b6e4 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,perm,cover +envlist = docs,pep8,pylint,yamllint,ansiblelint,bashate,py27,py37,cover skipsdist = True [testenv] @@ -19,24 +19,24 @@ commands = nosetests --with-xunit \ xtesting/tests/unit [testenv:docs] -basepython = python2.7 +basepython = python3.7 commands = doc8 README.rst api --ignore-path api/build sphinx-build -W -b html api/ api/build [testenv:pep8] -basepython = python2.7 +basepython = python3.7 commands = flake8 [testenv:pylint] -basepython = python2.7 +basepython = python3.7 whitelist_externals = bash commands = pylint --min-similarity-lines=10 \ --disable=locally-disabled --ignore-imports=y --reports=n xtesting [testenv:yamllint] -basepython = python2.7 +basepython = python3.7 files = .travis.yml ansible @@ -45,7 +45,7 @@ commands = yamllint -s {[testenv:yamllint]files} [testenv:ansiblelint] -basepython = python2.7 +basepython = python3.7 commands = ansible-lint ansible/site.yml @@ -53,17 +53,17 @@ commands = commands = nosetests xtesting/tests/unit [testenv:bashate] -basepython = python2.7 +basepython = python3.7 files = build.sh commands = bashate {[testenv:bashate]files} [testenv:bandit] -basepython = python2.7 +basepython = python3.7 commands = bandit -r xtesting -x tests -n 5 -ll -s B602 [testenv:cover] -basepython = python2.7 +basepython = python3.7 dirs = xtesting/tests/unit/ci xtesting/tests/unit/core @@ -75,7 +75,7 @@ commands = nosetests --with-coverage --cover-tests \ --cover-min-percentage 100 {[testenv:cover]dirs} [testenv:perm] -basepython = python2.7 +basepython = python3.7 whitelist_externals = bash path=. -not -path './.tox/*' -not -path './.git/*' -not -path './doc/reveal.js/*' commands = -- cgit 1.2.3-korg