-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
54 lines (46 loc) · 1.67 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!python
# -*- coding: utf-8 -*-
import re
from os.path import dirname, abspath, join
from setuptools import setup, find_packages
HERE = abspath(dirname(__file__))
readme = open(join(HERE, 'README.md'), 'rU').read()
package_file = open(join(HERE, 'gerritstats/__init__.py'), 'rU')
__version__ = re.sub(
r".*\b__version__\s+=\s+'([^']+)'.*",
r'\1',
[ line.strip() for line in package_file if '__version__' in line ].pop(0)
)
setup(
name = 'gerrit-stats',
version = __version__,
description = 'Generate codereview stats based from Gerrit commits',
long_description = readme,
url = 'https://gerrit.wikimedia.org/gitweb/analytics/gerrit-stats.git',
author = 'Diederik van Liere',
author_email = 'dvanliere@wikimedia.org',
packages = find_packages(),
entry_points = { 'console_scripts':['gerrit-stats = gerritstats:main'] },
install_requires = [
'MySQL-python','paramiko','pycrypto','argparse','yaml',
],
# install_requires = [
# "bunch >= 1.0",
# "PyYAML >= 3.10",
# ],
keywords = ['gerrit', 'stats'],
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Intended Audience :: Developers",
"Topic :: Utilities"
"Topic :: Software Development :: Libraries :: Python Modules",
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Operating System :: OS Independent",
"License :: OSI Approved :: GPLv2 License",
],
zip_safe = False,
license = "GPLv2",
)