tox.ini (horizon-20.1.0) | : | tox.ini (horizon-20.1.1) | ||
---|---|---|---|---|
skipping to change at line 28 | skipping to change at line 28 | |||
# DeprecationWarning is disabled in dj32 tox env as Django 3.2 | # DeprecationWarning is disabled in dj32 tox env as Django 3.2 | |||
# deprecated Django 2.2 features. This workaround is just to reduce | # deprecated Django 2.2 features. This workaround is just to reduce | |||
# the number of warnings due to this change. | # the number of warnings due to this change. | |||
# It should be dropped when we drop Django 2.2 support. | # It should be dropped when we drop Django 2.2 support. | |||
dj32: PYTHONWARNINGS = once,ignore::PendingDeprecationWarning,ignore::Deprecat ionWarning | dj32: PYTHONWARNINGS = once,ignore::PendingDeprecationWarning,ignore::Deprecat ionWarning | |||
whitelist_externals = | whitelist_externals = | |||
bash | bash | |||
find | find | |||
deps = | deps = | |||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/m aster} | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/x ena} | |||
-r{toxinidir}/test-requirements.txt | -r{toxinidir}/test-requirements.txt | |||
-r{toxinidir}/requirements.txt | -r{toxinidir}/requirements.txt | |||
# Unit test for a local hacking rule requires hacking. | # Unit test for a local hacking rule requires hacking. | |||
hacking>=3.0.1,<3.1.0 # Apache-2.0 | hacking>=3.0.1,<3.1.0 # Apache-2.0 | |||
commands = | commands = | |||
dj32: pip install django>=3.2,<3.3 | dj32: pip install django>=3.2,<3.3 | |||
find . -type f -name "*.pyc" -delete | find . -type f -name "*.pyc" -delete | |||
bash {toxinidir}/tools/unit_tests.sh {toxinidir} {posargs} | bash {toxinidir}/tools/unit_tests.sh {toxinidir} {posargs} | |||
[testenv:lower-constraints] | [testenv:lower-constraints] | |||
skipping to change at line 141 | skipping to change at line 141 | |||
passenv = TOX_EXTRA_DEPS http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY | passenv = TOX_EXTRA_DEPS http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY | |||
# Sets deps to an empty list so nothing is installed from pip | # Sets deps to an empty list so nothing is installed from pip | |||
deps = | deps = | |||
commands = | commands = | |||
pip install -U {env:TOX_EXTRA_DEPS:} | pip install -U {env:TOX_EXTRA_DEPS:} | |||
{[testenv]commands} | {[testenv]commands} | |||
[testenv:docs] | [testenv:docs] | |||
# We need to install horizon dependecies to build module references | # We need to install horizon dependecies to build module references | |||
deps = | deps = | |||
-c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/m aster} | -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/x ena} | |||
-r{toxinidir}/requirements.txt | -r{toxinidir}/requirements.txt | |||
-r{toxinidir}/doc/requirements.txt | -r{toxinidir}/doc/requirements.txt | |||
commands = | commands = | |||
sphinx-build -j auto -W -b html doc/source doc/build/html | sphinx-build -j auto -W -b html doc/source doc/build/html | |||
doc8 doc/source | doc8 doc/source | |||
[testenv:pdf-docs] | [testenv:pdf-docs] | |||
envdir = {toxworkdir}/docs | envdir = {toxworkdir}/docs | |||
deps = {[testenv:docs]deps} | deps = {[testenv:docs]deps} | |||
whitelist_externals = | whitelist_externals = | |||
End of changes. 2 change blocks. | ||||
2 lines changed or deleted | 2 lines changed or added |