From 82fa7b2ca513c6c0d4b3015946f8339a8d27b4da Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Thu, 30 May 2019 19:36:50 +0000 Subject: [PATCH] Default to python3 in tox testenvs Other than explicitly python2-based tests, we want to be using Python 3 for new projects. Change-Id: Idf49aab9b262cbcc6c4c203f0a2a5429894c968f --- oslo.{{cookiecutter.module_name}}/tox.ini | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oslo.{{cookiecutter.module_name}}/tox.ini b/oslo.{{cookiecutter.module_name}}/tox.ini index b3c21d5..af344a5 100644 --- a/oslo.{{cookiecutter.module_name}}/tox.ini +++ b/oslo.{{cookiecutter.module_name}}/tox.ini @@ -1,7 +1,8 @@ [tox] -minversion = 1.8 -envlist = py35,py27,pep8 +minversion = 3.1 +envlist = py36,py27,pep8 skipsdist = True +ignore_basepython_conflict = True [testenv] usedevelop = True @@ -11,6 +12,7 @@ deps = -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} -r{toxinidir}/test-requirements.txt commands = stestr run --slowest {posargs} +basepython = python3 [testenv:lower-constraints] basepython = python3