-
Notifications
You must be signed in to change notification settings - Fork 107
/
setup.py
executable file
·75 lines (65 loc) · 2.19 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
73
74
75
#!/usr/bin/env python
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 = {
'bodhi': ['bodhi-client'],
'bugzilla': ['python-bugzilla'],
'docs': ['sphinx==7.2.4', 'sphinx-rtd-theme==1.3.0'],
'google': ['google-api-python-client', 'oauth2client'],
'jira': ['requests_gssapi'],
'koji': ['koji'],
'redmine': ['feedparser'],
'rt': ['gssapi'],
'tests': ['pytest', 'python-coveralls', 'pre-commit'],
}
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='GPL-2.0-or-later',
keywords=['status', 'report', 'tasks', 'work'],
classifiers=[
'License :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)',
'Natural Language :: English',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Office/Business',
'Topic :: Utilities',
],
data_files=[],
dependency_links=[],
package_dir={},
zip_safe=False,
)