Browse Source

fix tox python3 overrides

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: Ief7a2b6846c3035d4d0a17ad54768d483da14802
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Doug Hellmann 6 months ago
parent
commit
b764e04e57
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      tox.ini

+ 3
- 0
tox.ini View File

@@ -29,6 +29,7 @@ commands =
29 29
   coverage xml -o cover/coverage.xml
30 30
 
31 31
 [testenv:venv]
32
+basepython = python3
32 33
 deps =
33 34
     -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
34 35
     -r{toxinidir}/requirements.txt
@@ -40,11 +41,13 @@ passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY \
40 41
           OS_USER_DOMAIN_NAME OS_PROJECT_DOMAIN_NAME OS_CLOUD OS_CACERT
41 42
 
42 43
 [testenv:pep8]
44
+basepython = python3
43 45
 commands =
44 46
     flake8 metalsmith
45 47
     doc8 README.rst doc/source roles
46 48
 
47 49
 [testenv:docs]
50
+basepython = python3
48 51
 deps =
49 52
     -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}
50 53
     -r{toxinidir}/doc/joined-requirements.txt

Loading…
Cancel
Save