
Add the initial proof of concept engagement-stats utility and sufficient boilerplate to produce and test a Python package of it. Change-Id: I43e962ee9c11c830ef503675f5ca3bc5da927262
32 lines
729 B
INI
32 lines
729 B
INI
[tox]
|
|
minversion = 3.1
|
|
envlist = linters, py3
|
|
skipdist = True
|
|
ignore_basepython_conflict = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
deps = -r{toxinidir}/test-requirements.txt
|
|
# TODO(fungi): work out a representative replay call with a suitable but
|
|
# small test payload and target results comparison
|
|
commands =
|
|
python setup.py test --slowest --testr-args='{posargs}'
|
|
|
|
[testenv:linters]
|
|
commands = flake8
|
|
|
|
[testenv:docs]
|
|
whitelist_externals = rm
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
commands =
|
|
rm -fr doc/build
|
|
sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:stats]
|
|
commands = engagement-stats {posargs}
|
|
|
|
[flake8]
|
|
show-source = True
|
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
|