Add tox generate config file

tox -egenconfig, the cli will generate config file etc/evoque/evoque.conf

Change-Id: I103ce25dbca29cce7e8689948e5a21b54353211f
This commit is contained in:
lawrancejing 2015-10-19 23:37:57 +00:00
parent 085f3b716f
commit f29de1ba10
3 changed files with 9 additions and 0 deletions

1
.gitignore vendored
View File

@ -9,6 +9,7 @@
*.egg/
*.egg-info/
coverage.xml
etc/evoque/evoque.conf
nosetests.xml
pep8.txt
pylint.txt

5
generate-config-file.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/sh
mkdir -p etc/evoque
oslo-config-generator --output-file etc/evoque/evoque.conf \
--namespace evoque \
--namespace oslo.log \

View File

@ -27,6 +27,9 @@ commands = {posargs}
[testenv:docs]
commands = python setup.py build_sphinx
[testenv:genconfig]
commands = {toxinidir}/generate-config-file.sh
[flake8]
ignore = E711,E712,H404,H405
exclude = .venv,.git,.tox,dist,doc,etc,*lib/python*,*egg,build