]> review.fuel-infra Code Review - puppet-modules/puppet-ceilometer.git/commitdiff
fix tox python3 overrides
authorZhongShengping <chdzsp@163.com>
Fri, 8 Jun 2018 06:23:31 +0000 (14:23 +0800)
committerZhongShengping <chdzsp@163.com>
Fri, 8 Jun 2018 06:23:31 +0000 (14:23 +0800)
We want to default to running all tox environments under python 3, so
set the basepython value in each environment.

We do not want to specify a minor version number, because we do not
want to have to update the file every time we upgrade python.

We do not want to set the override once in testenv, because that
breaks the more specific versions used in default environments like
py35 and py36.

Change-Id: I7554206c062b27194a130983c5447abce10daf7f

tox.ini

diff --git a/tox.ini b/tox.ini
index e11c279f1ca4ad70136c307a380807bf123fc2b8..cb4ba51bb62ae71eb3d18301d4df59646836d20c 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -7,5 +7,6 @@ envlist = releasenotes
 install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
 
 [testenv:releasenotes]
+basepython = python3
 deps = -r{toxinidir}/doc/requirements.txt
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html