5b32c729e7
This patch adds an API reference which follows the API documentation guide[1]. [1] https://docs.openstack.org/doc-contrib-guide/api-guides.html Partial-Bug: #1721489 Partial-Bug: #1703268 Change-Id: Iddcc2e2d40874895cedaca68b8ce9cafa6228deb
62 lines
1.7 KiB
INI
62 lines
1.7 KiB
INI
[tox]
|
|
envlist = py35,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,api-ref
|
|
# NOTE(tonyb): Ignore a few errors/warnings that are now "on by default".
|
|
ignore=H105,H238,E123
|
|
# [H904] Delay string interpolations at logging calls.
|
|
enable-extensions=H904
|
|
|
|
[hacking]
|
|
local-check-factory = blazar.hacking.checks.factory
|
|
|
|
[testenv:pylint]
|
|
commands = pylint blazar
|
|
|
|
[testenv:releasenotes]
|
|
commands = sphinx-build -a -E -W -d releasenotes/build/doctrees -b html releasenotes/source releasenotes/build/html
|
|
|
|
[testenv:api-ref]
|
|
# This environment is called from CI scripts to test and publish
|
|
# the API Ref to developer.openstack.org.
|
|
commands =
|
|
rm -rf api-ref/build
|
|
sphinx-build -WE -b html -d api-ref/build/doctrees api-ref/source api-ref/build/html |