mirror of
https://opendev.org/x/pyghmi
synced 2025-01-27 19:37:44 +00:00
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: I5b088566dc6b55e04f5235b789fd71bfee496792
This commit is contained in:
parent
33beac870d
commit
680a0c406e
3
tox.ini
3
tox.ini
@ -15,15 +15,18 @@ commands = ostestr {posargs}
|
||||
sitepackages = True
|
||||
|
||||
[testenv:pep8]
|
||||
basepython = python3
|
||||
whitelist_externals = bash
|
||||
commands = bash -c 'pycodestyle pyghmi bin/*'
|
||||
|
||||
[testenv:cover]
|
||||
basepython = python3
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
commands =
|
||||
python setup.py testr --coverage
|
||||
|
||||
[testenv:venv]
|
||||
basepython = python3
|
||||
commands = {posargs}
|
||||
|
||||
[flake8]
|
||||
|
Loading…
x
Reference in New Issue
Block a user