Move openapproved into the reviewstats namespace.

This involves updating one of the shell scripts which now depends on
'pip install -e .' or 'pip install reviewstats' (for a release) having
been run.

Change-Id: I2e63501c4a41ed0b20b1ab7ba1e2f78beed04962
This commit is contained in:
Robert Collins 2013-11-25 07:13:29 +00:00 committed by Russell Bryant
parent df820e42a5
commit 3e09039c02
4 changed files with 7 additions and 9 deletions

View File

@ -28,7 +28,7 @@ for project in ${projects} ; do
project_base=$(basename $(echo ${project} | cut -f1 -d'.'))
(metadata && ./openreviews.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openreviews.txt
./openreviews.py -p ${project} --html ${EXTRA_ARGS} > results/${project_base}-openreviews.html
(metadata && ./openapproved.py -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openapproved.txt
(metadata && openapproved -p ${project} ${EXTRA_ARGS}) > results/${project_base}-openapproved.txt
done
if [ "${all}" = "1" ] ; then
@ -44,5 +44,5 @@ if [ "${all}" = "1" ] ; then
echo "</html>" >> results/all-openreviews.html.tmp
mv results/all-openreviews.html.tmp results/all-openreviews.html
(metadata && ./openapproved.py -a ${EXTRA_ARGS}) > results/all-openapproved.txt
(metadata && openapproved -a ${EXTRA_ARGS}) > results/all-openapproved.txt
fi

View File

View File

@ -1,5 +1,3 @@
#!/usr/bin/env python
#
# Copyright (C) 2011 - Soren Hansen
# Copyright (C) 2013 - Red Hat, Inc.
#
@ -86,7 +84,3 @@ def has_negative_feedback(patch_set):
and review['value'] in ('-1', '-2'):
return True
return False
if __name__ == '__main__':
sys.exit(main())

View File

@ -43,4 +43,8 @@ input_file = reviewstats/locale/reviewstats.pot
[extract_messages]
keywords = _ gettext ngettext l_ lazy_gettext
mapping_file = babel.cfg
output_file = reviewstats/locale/reviewstats.pot
output_file = reviewstats/locale/reviewstats.pot
[entry_points]
console_scripts =
openapproved = reviewstats.cmd.openapproved:main