
This is useful for recording data during the cycle to use to create a burndown chart for blueprints. The script counts: Targeted, Approved, and Implemented blueprints. It also checks if there are any approved specs whose corresponding blueprints need approval and emits warnings for each one found. Since this shares some code with the existing move_implemented_specs script, the common code is factored out into an importable lib.py module. This also adds a tox target for running the script and makes it share the same envdir as the move-implemented-specs target since both need the same dependency of launchpadlib. Change-Id: I9a9d3f7f2883a6eb151230da651d9a4c4fda77b4
46 lines
1.1 KiB
INI
46 lines
1.1 KiB
INI
[tox]
|
|
envlist = docs,pep8
|
|
skipsdist = True
|
|
|
|
[testenv]
|
|
basepython = python3
|
|
usedevelop = True
|
|
setenv = VIRTUAL_ENV={envdir}
|
|
install_command = pip install -U {opts} {packages}
|
|
deps = -r{toxinidir}/doc/requirements.txt
|
|
whitelist_externals = find
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:docs]
|
|
commands = sphinx-build -W -b html doc/source doc/build/html
|
|
|
|
[testenv:pep8]
|
|
deps =
|
|
-r{toxinidir}/doc/requirements.txt
|
|
-r{toxinidir}/test-requirements.txt
|
|
commands =
|
|
find . -type f -name "*.pyc" -delete
|
|
stestr run --slowest {posargs}
|
|
flake8 {posargs}
|
|
|
|
[flake8]
|
|
ignore = E128
|
|
exclude = .venv,.git,.tox,doc,.eggs
|
|
|
|
[testenv:move-implemented-specs]
|
|
# NOTE(mriedem): simplejson is used by launchpadlib but is a lazy import and
|
|
# fails if we don't have it.
|
|
deps = launchpadlib
|
|
simplejson
|
|
envdir={toxworkdir}/launchpadlib
|
|
commands =
|
|
python {toxinidir}/tools/move_implemented_specs.py {posargs}
|
|
|
|
[testenv:count-blueprints]
|
|
deps = {[testenv:move-implemented-specs]deps}
|
|
envdir={toxworkdir}/launchpadlib
|
|
commands =
|
|
python {toxinidir}/tools/count_blueprints.py {posargs}
|