Add coverage and babel configs

This commit is contained in:
Monty Taylor 2013-08-18 15:31:49 -04:00
parent cb9a4521b4
commit 4520b5008e
5 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,7 @@
[run]
branch = True
source = {{cookiecutter.repo_name}}
omit = {{cookiecutter.repo_name}}/tests/*,{{cookiecutter.repo_name}}/openstack/*
[report]
ignore-errors = True

View File

@ -0,0 +1,3 @@
# Format is:
# <preferred e-mail> <other e-mail 1>
# <preferred e-mail> <other e-mail 2>

View File

@ -0,0 +1,2 @@
[python: **.py]

View File

@ -1 +1,2 @@
pbr>=0.5.21,<1.0
Babel>=0.9.6

View File

@ -30,3 +30,17 @@ all_files = 1
[upload_sphinx]
upload-dir = doc/build/html
[compile_catalog]
directory = {{cookiecutter.repo_name}}/locale
domain = {{cookiecutter.repo_name}}
[update_catalog]
domain = {{cookiecutter.repo_name}}
output_dir = {{cookiecutter.repo_name}}/locale
input_file = {{cookiecutter.repo_name}}/locale/{{cookiecutter.repo_name}}.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = {{cookiecutter.repo_name}}/locale/{{cookiecutter.repo_name}}.pot