diff --git a/genresults-reviewers.sh b/genresults-reviewers.sh index c0c6079..12bde1b 100755 --- a/genresults-reviewers.sh +++ b/genresults-reviewers.sh @@ -26,12 +26,12 @@ metadata() { for project in ${projects} ; do project_base=$(basename $(echo ${project} | cut -f1 -d'.')) for time in 30 60 90 180 365 1095; do - (metadata && ./reviewers.py -p ${project} -d ${time} ${EXTRA_ARGS} -o results/${project_base}-reviewers-${time} --outputs txt --outputs csv) + (metadata && reviewers -p ${project} -d ${time} ${EXTRA_ARGS} -o results/${project_base}-reviewers-${time} --outputs txt --outputs csv) done done if [ "${all}" = "1" ] ; then for time in 30 60 90 180 365 1095; do - (metadata && ./reviewers.py -a -d ${time} ${EXTRA_ARGS} -o results/all-reviewers-${time} --outputs txt --outputs csv) + (metadata && reviewers -a -d ${time} ${EXTRA_ARGS} -o results/all-reviewers-${time} --outputs txt --outputs csv) done fi diff --git a/reviewers.py b/reviewstats/cmd/reviewers.py similarity index 99% rename from reviewers.py rename to reviewstats/cmd/reviewers.py index f695571..2b74ce8 100755 --- a/reviewers.py +++ b/reviewstats/cmd/reviewers.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- coding: utf-8 -*- # # Copyright (C) 2011 - Soren Hansen @@ -320,7 +319,3 @@ def main(argv=None): if on_done: on_done() return 0 - - -if __name__ == '__main__': - sys.exit(main()) diff --git a/setup.cfg b/setup.cfg index 5dab671..5b67dbf 100644 --- a/setup.cfg +++ b/setup.cfg @@ -49,4 +49,5 @@ output_file = reviewstats/locale/reviewstats.pot console_scripts = openapproved = reviewstats.cmd.openapproved:main openreviews = reviewstats.cmd.openreviews:main + reviewers = reviewstats.cmd.reviewers:main reviews_for_bugs = reviewstats.cmd.reviews_for_bugs:main