-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·72 lines (63 loc) · 2.07 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/env python
# coding: utf-8
import re
from setuptools import setup
# Parse version and release from the spec file
with open('did.spec') as specfile:
lines = "\n".join(line.rstrip() for line in specfile)
version = re.search('Version: (.+)', lines).group(1).rstrip()
release = re.search('Release: (\d+)', lines).group(1).rstrip()
version = '.'.join([version, release])
# Prepare install requires and extra requires
install_requires = [
'python_dateutil',
'requests',
]
extras_require = {
'bugzilla': ['python-bugzilla'],
'docs': ['sphinx', 'mock', 'sphinx_rtd_theme'],
'google': ['google-api-python-client', 'oauth2client'],
'jira': ['requests_gssapi'],
'redmine': ['feedparser'],
'rt': ['gssapi'],
'tests': ['pytest', 'python-coveralls'],
}
extras_require['all'] = [dependency
for extra in extras_require.values()
for dependency in extra]
# Prepare the long description from readme
with open('README.rst') as readme:
description = readme.read()
setup(
name='did',
description='did - What did you do last week, month, year?',
long_description=description,
url='https://github.com/psss/did',
download_url='https://github.com/psss/did/archive/master.zip',
version=version,
provides=['did'],
packages=['did', 'did.plugins'],
scripts=['bin/did'],
install_requires=install_requires,
extras_require=extras_require,
author='Petr Šplíchal',
author_email='[email protected]',
maintainer='Petr Šplíchal',
maintainer_email='[email protected]',
license='GPLv2+',
keywords=['status', 'report', 'tasks', 'work'],
classifiers=[
'License :: OSI Approved :: '
'GNU General Public License v2 or later (GPLv2+)',
'Natural Language :: English',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Topic :: Office/Business',
'Topic :: Utilities',
],
data_files=[],
dependency_links=[],
package_dir={},
zip_safe=False,
)