Scripts for generating OpenStack development community statistics
Go to file
yangyawei 27d6e6d284 setup.cfg: Replace dashes with underscores
Setuptools v54.1.0 introduces a warning that the use of dash-separated
options in 'setup.cfg' will not be supported in a future version [1].
Get ahead of the issue by replacing the dashes with underscores. Without
this, we see 'UserWarning' messages like the following on new enough
versions of setuptools:

  UserWarning: Usage of dash-separated 'description-file' will not be
  supported in future versions. Please use the underscore name
  'description_file' instead

[1] https://github.com/pypa/setuptools/commit/a2e9ae4cb

Change-Id: I46b1da90c8cd3e912fcd9e945b15d84a4732760f
2021-05-14 17:05:06 +08:00
doc Switch to newer openstackdocstheme version 2020-06-03 21:10:09 +02:00
projects Merge "Update ironic subprojects" 2020-01-20 14:29:32 +00:00
reviewstats Merge "Use unittest.mock instead of third party mock" 2020-07-22 13:29:30 +00:00
tests Cleanup repo 2020-06-09 10:45:08 +02:00
.coveragerc Change ignore-errors to ignore_errors 2015-09-21 14:24:02 +00:00
.gitignore Drop py2 testing and metadata 2020-01-02 08:03:04 -06:00
.gitreview OpenDev Migration Patch 2019-04-19 19:29:14 +00:00
.mailmap Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
.stestr.conf Switch to stestr 2019-08-01 17:02:18 +02:00
.zuul.yaml Update jobs 2020-06-25 08:52:32 +02:00
CONTRIBUTING.rst Adds tox docs job 2019-05-18 13:45:47 +02:00
genresults-openreviews.sh Removes tabs from .sh files 2017-05-08 14:20:19 -05:00
genresults-reviewers.sh Removes tabs from .sh files 2017-05-08 14:20:19 -05:00
genresults-reviews-for-bugs.sh Removes tabs from .sh files 2017-05-08 14:20:19 -05:00
LICENSE Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
MANIFEST.in Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
README.rst Adds tox docs job 2019-05-18 13:45:47 +02:00
requirements.txt Cleanup repo 2020-06-09 10:45:08 +02:00
setup.cfg setup.cfg: Replace dashes with underscores 2021-05-14 17:05:06 +08:00
setup.py Cookiecutterify reviewstats. 2013-11-25 03:26:57 +00:00
test-requirements.txt Merge "Use unittest.mock instead of third party mock" 2020-07-22 13:29:30 +00:00
tox.ini Stop configuring install_command in tox. 2020-07-24 13:03:14 +02:00

reviewstats

Utility scripts for generating stats about OpenStack development.

Features

  • openreviews.py - Get some stats on the number and age of open reviews.
  • reviewers.py - See how many reviews each person has done over a period of time.

Usage

Clone the git repository, then install the library:

pip install .

Run the scripts.

Project definitions

Each project has a JSON file describing what reviews, bugs and so on will count towards that projects statistics. The JSON file should have a single top level object containing the following keys:

  • name: The project name.
  • subprojects: A list of Gerrit projects to include.
  • core-team: A list of Gerrit usernames to consider as core reviewers across subprojects.
  • lp_projects: A list of Launchpad project ids to include.

Examples

  1. Get reviewer stats for the last 14 days (default) in the stable/pike branch:

    $ reviewers --stable pike --output ~/reviewers-stable-pike-14

  2. Get reviewer stats for the last 90 days across all stable branches:

    $ reviewers --stable all --days 90 --output ~/reviewers-stable-all-90