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: Ib41b2ea8657a996459e43caaac81f5020c0bb31a
Closes-Bug:  #1801657
changes/77/609977/2
Vieri 8 months ago
parent
commit
f475bb53bb
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      tox.ini

+ 3
- 0
tox.ini View File

@@ -75,16 +75,19 @@ ignore=F403,H303
75 75
 
76 76
 
77 77
 [testenv:bashate]
78
+basepython = python3
78 79
 commands =
79 80
     bash -c "{toxinidir}/tests/common/test-bashate.sh"
80 81
 
81 82
 
82 83
 [testenv:ansible-syntax]
84
+basepython = python3
83 85
 commands =
84 86
     bash -c "{toxinidir}/tests/common/test-ansible-syntax.sh"
85 87
 
86 88
 
87 89
 [testenv:ansible-lint]
90
+basepython = python3
88 91
 commands =
89 92
     bash -c "{toxinidir}/tests/common/test-ansible-lint.sh"
90 93
 

Loading…
Cancel
Save