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: I4dae808f500bd5c8caa462a2d1deae157adff29d
Closes-Bug:  #1802032
tags/v4.0.0.rc0
98k 2 years ago
committed by Filippo Inzaghi
parent
commit
857d9b1ff1
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      tox.ini

+ 2
- 0
tox.ini View File

@@ -30,6 +30,7 @@ commands =
whitelist_externals = rm

[testenv:linters]
basepython = python3
whitelist_externals = bash
commands =
bash -c "find {toxinidir} \
@@ -38,4 +39,5 @@ commands =
-print0 | xargs -0 yamllint"

[testenv:venv]
basepython = python3
commands = {posargs}

Loading…
Cancel
Save