heat-translator/tox.ini
Manpreet Kaur 91c4415c42 Update TOX_CONSTRAINTS_FILE
UPPER_CONSTRAINTS_FILE is an old and deprecated name, refer [1].

This allows to use lower-constraints file as more readable way instead
of UPPER_CONSTRAINTS_FILE=<lower-constraints file>.

[1] https://zuul-ci.org/docs/zuul-jobs/python-roles.html#rolevar-tox.tox_constraints_file

Change-Id: Ib4dd97f427a0c364e2679c229bda9df6c3155d48
2021-01-29 00:11:32 +05:30

56 lines
1.4 KiB
INI

[tox]
envlist = py38,pep8
ignore_basepython_conflict = true
minversion = 3.2.0
skipsdist = True
[testenv]
basepython = python3
usedevelop = True
setenv =
PYTHONWARNINGS=default::DeprecationWarning
passenv = http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
deps =
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master}
-r{toxinidir}/requirements.txt
-r{toxinidir}/test-requirements.txt
commands = python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
commands = flake8
[testenv:venv]
commands = {posargs}
[testenv:cover]
commands = python setup.py test --coverage --coverage-package-name=translator --testr-args='{posargs}'
[testenv:docs]
deps = -r{toxinidir}/doc/requirements.txt
commands = sphinx-build -b html doc/source doc/build/html
[testenv:debug]
commands = oslo_debug_helper -t translator/tests {posargs}
[testenv:py37-tp]
basepython = python37
commands =
./run_py-tosca-parser-master.sh
python setup.py test --slowest --testr-args='{posargs}'
[flake8]
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
# W504 line break after binary operator
ignore = E123,E125,W504
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
[testenv:lower-constraints]
basepython = python3
deps =
-c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt