-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
47 lines (41 loc) · 1.33 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
#!/usr/bin/env python
# ~*~ coding: utf-8 ~*~
import re
from setuptools import setup
from setuptools import find_packages
def get_version():
VERSIONFILE = 'sentry_autogun/__init__.py'
initfile_lines = open(VERSIONFILE, 'rt').readlines()
VSRE = r"^__version__ = ['\"]([^'\"]*)['\"]"
for line in initfile_lines:
mo = re.search(VSRE, line, re.M)
if mo:
return mo.group(1)
raise RuntimeError('Unable to find version string in %s.' % (VERSIONFILE,))
install_requires = [
'sentry>=4.9.8',
'pyredmine'
]
setup(
name='sentry-autogun',
version=get_version(),
author='Geoffrey Lehée',
author_email='[email protected]',
url='https://github.com/socketubs/sentry-autogun',
description='A Sentry extension which integrates with Redmine.',
license='MIT',
packages=find_packages(exclude=['tests']),
zip_safe=False,
install_requires=install_requires,
include_package_data=True,
entry_points={
'sentry.apps': ['redmine = sentry_autogun'],
'sentry.plugins': ['redmine = sentry_autogun.plugin:AutogunPlugin']},
classifiers=[
'Framework :: Django',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Software Development'
],
)