
Although the Climate project was renamed to Blazar in 2014, the code has still been using the climate namespace. This patch moves all code to the blazar directory and allows users and operators to use the 'blazar' command namespace. The 'climate' namespace remains O release to allow users of Blazar time to move their own code to the blazar namespace, but will be removed in P release development cycle. Change-Id: Icbe6fab1051aae4ac819982a1fa4f323cb0bf2d0 Partial-Bug: #1662734
51 lines
1.4 KiB
INI
51 lines
1.4 KiB
INI
[tox]
|
|
envlist = py35,py34,py27,pep8
|
|
minversion = 2.0
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
whitelist_externals = rm
|
|
install_command = pip install -c{env:UPPER_CONSTRAINTS_FILE:https://git.openstack.org/cgit/openstack/requirements/plain/upper-constraints.txt} {opts} {packages}
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
-r{toxinidir}/requirements.txt
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
DISCOVER_DIRECTORY=blazar/tests
|
|
PYTHONHASHSEED=0
|
|
commands =
|
|
lockutils-wrapper python setup.py testr --slowest --testr-args="{posargs}"
|
|
|
|
sitepackages = False
|
|
|
|
[testenv:cover]
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
commands =
|
|
lockutils-wrapper python setup.py testr --coverage --testr-args="{posargs}"
|
|
|
|
[testenv:pep8]
|
|
commands = flake8 {posargs}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands =
|
|
rm -rf doc/html doc/build
|
|
rm -rf doc/source/apidoc doc/source/api
|
|
python setup.py build_sphinx
|
|
|
|
[testenv:genconfig]
|
|
commands = oslo-config-generator --config-file=etc/blazar/blazar-config-generator.conf
|
|
|
|
[flake8]
|
|
show-source = true
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools
|
|
# NOTE(tonyb): Ignore a few errors/warnings that are now "on by default".
|
|
ignore=H105,H238,E123
|
|
|
|
[testenv:pylint]
|
|
commands = pylint blazar
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|