Package list python-castellan / b9f6436
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: I0980a08f35965292a705ad7299cfdc9a433dfc87 Signed-off-by: Doug Hellmann <doug@doughellmann.com> Doug Hellmann 3 years ago
1 changed file(s) with 9 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
33 skipsdist = True
44
55 [testenv]
6 basepython = python3
76 usedevelop = True
87 install_command = pip install {opts} {packages}
98 setenv =
1918 basepython = python2.7
2019
2120 [testenv:pep8]
21 basepython = python3
2222 commands =
2323 flake8
2424 bandit -r castellan -x tests -s B105,B106,B107,B607
2525
2626 [testenv:bandit]
27 basepython = python3
2728 # This command runs the bandit security linter against the castellan
2829 # codebase minus the tests directory. Some tests are being excluded to
2930 # reduce the number of positives before a team inspection, and to ensure a
3637 bandit -r castellan -x tests -s B105,B106,B107,B607
3738
3839 [testenv:venv]
40 basepython = python3
3941 commands = {posargs}
4042
4143 [testenv:debug]
44 basepython = python3
4245 commands = oslo_debug_helper {posargs}
4346
4447 [testenv:cover]
48 basepython = python3
4549 commands =
4650 python setup.py testr --coverage --testr-args='{posargs}'
4751 coverage report
4852
4953 [testenv:docs]
54 basepython = python3
5055 commands = python setup.py build_sphinx
5156
5257 [testenv:releasenotes]
58 basepython = python3
5359 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
5460
5561 [testenv:functional]
7177 {toxinidir}/tools/setup-vault-env.sh pifpaf -e VAULT_TEST run vault -- python setup.py testr --slowest --testr-args='{posargs}'
7278
7379 [testenv:genconfig]
80 basepython = python3
7481 commands =
7582 oslo-config-generator --config-file=etc/castellan/functional-config-generator.conf
7683 oslo-config-generator --config-file=etc/castellan/sample-config-generator.conf
8693 import_exceptions = castellan.i18n
8794
8895 [testenv:lower-constraints]
96 basepython = python3
8997 deps =
9098 -c{toxinidir}/lower-constraints.txt
9199 -r{toxinidir}/test-requirements.txt