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

+ 4
- 0
tox.ini View File

@@ -18,12 +18,15 @@ whitelist_externals = npm
18 18
 commands = python manage.py test neutron_lbaas_dashboard --settings=neutron_lbaas_dashboard.tests.settings
19 19
 
20 20
 [testenv:pep8]
21
+basepython = python3
21 22
 commands = flake8
22 23
 
23 24
 [testenv:venv]
25
+basepython = python3
24 26
 commands = {posargs}
25 27
 
26 28
 [testenv:cover]
29
+basepython = python3
27 30
 # npm must be installed on the system, for example
28 31
 # sudo apt-get install npm
29 32
 # sudo yum install npm (on RHEL/CentOS, enable EPEL repository)
@@ -31,6 +34,7 @@ commands = npm install
31 34
            npm test
32 35
 
33 36
 [testenv:docs]
37
+basepython = python3
34 38
 whitelist_externals = rm
35 39
 deps =
36 40
     -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt}

Loading…
Cancel
Save