Codebase list python-osprofiler / e2319c9
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: I61dcae5c3f3f1baec315855604a7c887ebf9c5a5 Signed-off-by: Doug Hellmann <doug@doughellmann.com> Doug Hellmann 5 years ago
1 changed file(s) with 7 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
33 envlist = py35,py27,pep8
44
55 [testenv]
6 basepython = python3
76 setenv = VIRTUAL_ENV={envdir}
87 LANG=en_US.UTF-8
98 LANGUAGE=en_US:en
3231 deps = {[testenv:functional]deps}
3332
3433 [testenv:pep8]
34 basepython = python3
3535 commands =
3636 flake8
3737 # Run security linter
3939 distribute = false
4040
4141 [testenv:venv]
42 basepython = python3
4243 commands = {posargs}
4344
4445 [testenv:cover]
46 basepython = python3
4547 commands = python setup.py testr --coverage --testr-args='{posargs}'
4648
4749 [testenv:docs]
50 basepython = python3
4851 commands = python setup.py build_sphinx
4952
5053 [testenv:bandit]
54 basepython = python3
5155 commands = bandit -r osprofiler -n5
5256
5357 [flake8]
5963 local-check-factory = osprofiler.hacking.checks.factory
6064
6165 [testenv:releasenotes]
66 basepython = python3
6267 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
6368
6469 [testenv:lower-constraints]
70 basepython = python3
6571 deps =
6672 -c{toxinidir}/lower-constraints.txt
6773 -r{toxinidir}/test-requirements.txt