"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tox.ini" between
monasca-api-3.1.0.tar.gz and monasca-api-4.0.0.tar.gz

About: OpenStack Monasca API is a RESTful API server that is designed with a layered architecture and supports Monitoring as a Service (MONaaS).
The "Ussuri" series (latest release).

tox.ini  (monasca-api-3.1.0):tox.ini  (monasca-api-4.0.0)
[tox] [tox]
envlist = py27,py37,pep8,cover envlist = py37,pep8,cover
minversion = 2.7 minversion = 2.7
skipsdist = True skipsdist = True
[testenv] [testenv]
basepython = python3
setenv = setenv =
VIRTUAL_ENV={envdir} VIRTUAL_ENV={envdir}
OS_TEST_PATH=monasca_api/tests OS_TEST_PATH=monasca_api/tests
passenv = *_proxy passenv = *_proxy
*_PROXY *_PROXY
usedevelop = True usedevelop = True
install_command = pip install {opts} {packages} install_command = pip install {opts} {packages}
deps = deps =
-c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper /master} -c{env:UPPER_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper /master}
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
.[influxdb,cassandra] .[influxdb,cassandra]
whitelist_externals = bash whitelist_externals = bash
find find
rm rm
commands = commands =
find . -type f -name "*.pyc" -delete find . -type f -name "*.pyc" -delete
stestr run {posargs} stestr run {posargs}
[testenv:cover] [testenv:cover]
basepython = python3
commands = commands =
coverage erase coverage erase
python setup.py test --coverage --testr-args='{posargs}' \ python setup.py test --coverage --testr-args='{posargs}' \
--coverage-package-name=monasca_api --omit=monasca_api/hacking/* --coverage-package-name=monasca_api --omit=monasca_api/hacking/*
coverage report coverage report
[testenv:debug] [testenv:debug]
basepython = python3
commands = commands =
oslo_debug_helper -t ./monasca_api/tests {posargs} oslo_debug_helper -t ./monasca_api/tests {posargs}
[testenv:flake8] [testenv:flake8]
basepython = python3
skip_install = True skip_install = True
usedevelop = False usedevelop = False
commands = commands =
flake8 monasca_api flake8 monasca_api
[testenv:bandit] [testenv:bandit]
basepython = python3
skip_install = True skip_install = True
usedevelop = False usedevelop = False
commands = commands =
# B101(assert_ussed) - API uses asserts because of performance reasons # B101(assert_ussed) - API uses asserts because of performance reasons
# B303 - Fingerprint class uses SHA1 to map fingerprints to alembic revisions. # B303 - Fingerprint class uses SHA1 to map fingerprints to alembic revisions.
bandit -r monasca_api -n5 -s B101,B303 -x monasca_api/tests bandit -r monasca_api -n5 -s B101,B303 -x monasca_api/tests
[testenv:bashate] [testenv:bashate]
basepython = python3
skip_install = True skip_install = True
usedevelop = False usedevelop = False
commands = bash {toxinidir}/tools/bashate.sh commands = bash {toxinidir}/tools/bashate.sh
[testenv:pep8] [testenv:pep8]
basepython = python3
commands = commands =
{[testenv:flake8]commands} {[testenv:flake8]commands}
{[testenv:bandit]commands} {[testenv:bandit]commands}
{[testenv:bashate]commands} {[testenv:bashate]commands}
{[testenv:checkniceness]commands} {[testenv:checkniceness]commands}
[testenv:docs] [testenv:docs]
basepython = python3
description = Builds api-ref, api-guide, releasenotes and devdocs description = Builds api-ref, api-guide, releasenotes and devdocs
commands = commands =
{[testenv:devdocs]commands} {[testenv:devdocs]commands}
{[testenv:api-ref]commands} {[testenv:api-ref]commands}
{[testenv:releasenotes]commands} {[testenv:releasenotes]commands}
[testenv:pdf-docs] [testenv:pdf-docs]
basepython = python3
envdir = {toxworkdir}/docs envdir = {toxworkdir}/docs
whitelist_externals = whitelist_externals =
make make
rm rm
commands = commands =
rm -rf doc/build/pdf rm -rf doc/build/pdf
sphinx-build -W -b latex doc/source doc/build/pdf sphinx-build -W -b latex doc/source doc/build/pdf
make -C doc/build/pdf make -C doc/build/pdf
[testenv:api-ref] [testenv:api-ref]
basepython = python3
description = Called from CI scripts to test and publish the API Ref description = Called from CI scripts to test and publish the API Ref
commands = commands =
rm -rf api-ref/build rm -rf api-ref/build
{[testenv:checkjson]commands} {[testenv:checkjson]commands}
sphinx-build -W -b html -d api-ref/build/doctrees \ sphinx-build -W -b html -d api-ref/build/doctrees \
api-ref/source api-ref/build/html api-ref/source api-ref/build/html
[testenv:releasenotes] [testenv:releasenotes]
basepython = python3
description = Called from CI script to test and publish the Release Notes description = Called from CI script to test and publish the Release Notes
commands = commands =
rm -rf releasenotes/build rm -rf releasenotes/build
sphinx-build -a -E -W -d releasenotes/build/doctrees -b html \ sphinx-build -a -E -W -d releasenotes/build/doctrees -b html \
releasenotes/source releasenotes/build/html releasenotes/source releasenotes/build/html
[testenv:devdocs] [testenv:devdocs]
basepython = python3
description = Builds developer documentation description = Builds developer documentation
commands = commands =
rm -rf doc/build doc/source/contributor/api rm -rf doc/build doc/source/contributor/api
{[testenv:checkjson]commands} {[testenv:checkjson]commands}
python setup.py build_sphinx python setup.py build_sphinx
[testenv:checkniceness] [testenv:checkniceness]
basepython = python3
skip_install = True skip_install = True
usedevelop = False usedevelop = False
description = Validates (pep-like) documenation description = Validates (pep-like) documenation
commands = commands =
rm -rf {toxinidir}/doc/source/contributor/api {toxinidir}/doc/build \ rm -rf {toxinidir}/doc/source/contributor/api {toxinidir}/doc/build \
{toxinidir}/api-ref/build {toxinidir}/releasenotes/build {toxinidir}/api-ref/build {toxinidir}/releasenotes/build
doc8 --file-encoding utf-8 {toxinidir}/doc doc8 --file-encoding utf-8 {toxinidir}/doc
doc8 --file-encoding utf-8 {toxinidir}/api-ref doc8 --file-encoding utf-8 {toxinidir}/api-ref
doc8 --file-encoding utf-8 {toxinidir}/releasenotes doc8 --file-encoding utf-8 {toxinidir}/releasenotes
[testenv:checkjson] [testenv:checkjson]
basepython = python3
description = Validates all json samples inside doc folder description = Validates all json samples inside doc folder
deps = deps =
skip_install = True skip_install = True
usedevelop = False usedevelop = False
whitelist_externals = whitelist_externals =
python python
bash bash
commands = commands =
bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'" bash -c "! find doc/ -type f -name *.json | xargs grep -U -n $'\r'"
bash -c '! find doc/ -type f -name *.json | \ bash -c '! find doc/ -type f -name *.json | \
xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python' xargs -t -n1 python -m json.tool 2>&1 > /dev/null | grep -B1 -v ^python'
[testenv:genconfig] [testenv:genconfig]
basepython = python3
description = Generates sample configuration file for monasca-api description = Generates sample configuration file for monasca-api
commands = oslo-config-generator --config-file=config-generator/monasca-api.conf commands = oslo-config-generator --config-file=config-generator/monasca-api.conf
[testenv:genpolicy] [testenv:genpolicy]
basepython = python3
description = Generates sample policy.json file for monasca-api description = Generates sample policy.json file for monasca-api
commands = oslopolicy-sample-generator --config-file=config-generator/policy.con f commands = oslopolicy-sample-generator --config-file=config-generator/policy.con f
[testenv:venv] [testenv:venv]
basepython = python3
commands = {posargs} commands = {posargs}
[testenv:bindep] [testenv:bindep]
basepython = python3
deps = bindep deps = bindep
commands = bindep test commands = bindep test
[flake8] [flake8]
# TODO: ignored checks should be enabled in the future # TODO: ignored checks should be enabled in the future
# H201 no 'except:' at least use 'except Exception:' # H201 no 'except:' at least use 'except Exception:'
# H302 import only modules # H302 import only modules
# H405 multi line docstring summary not separated with an empty line # H405 multi line docstring summary not separated with an empty line
ignore = F821,H201,H302,H405 # W504 line break after binary operator
ignore = F821,H201,H302,H405,W504
# H106: Don't put vim configuration in source files # H106: Don't put vim configuration in source files
# H203: Use assertIs(Not)None to check for None # H203: Use assertIs(Not)None to check for None
# H204: Use assert(Not)Equal to check for equality. # H204: Use assert(Not)Equal to check for equality.
# H205: Use assert(Greater|Less)(Equal) for comparison. # H205: Use assert(Greater|Less)(Equal) for comparison.
enable-extensions=H106,H203,H204,H205 enable-extensions=H106,H203,H204,H205
max-complexity = 50 max-complexity = 50
max-line-length = 100 max-line-length = 100
builtins = _ builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,build
show-source = True show-source = True
[hacking] [hacking]
local-check-factory = monasca_api.hacking.checks.factory local-check-factory = monasca_api.hacking.checks.factory
import_exceptions = import_exceptions =
six.moves six.moves
[flake8:local-plugins]
extension =
B319 = checks:no_xrange
paths = ./monasca_api/hacking
[testenv:lower-constraints] [testenv:lower-constraints]
basepython = python3
deps = deps =
-c{toxinidir}/lower-constraints.txt -c{toxinidir}/lower-constraints.txt
-r{toxinidir}/test-requirements.txt -r{toxinidir}/test-requirements.txt
-r{toxinidir}/requirements.txt -r{toxinidir}/requirements.txt
.[influxdb,cassandra] .[influxdb,cassandra]
 End of changes. 22 change blocks. 
20 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)