forked from rq/Flask-RQ2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
99 lines (90 loc) · 2.77 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
import codecs
import os
import sys
from setuptools import find_packages, setup
here = os.path.abspath(os.path.dirname(__file__))
# Get the long description from the README file
with codecs.open(os.path.join(here, 'README.rst'), encoding='utf-8') as f:
long_description = f.read()
tests_require = [
'pytest',
'redis',
'rq-scheduler',
'flask-cli>=0.4.0',
'flask-script',
'coverage>=4.0',
'pytest-isort',
'pytest-cache>=1.0',
'pytest-flake8>=0.5',
'pytest>=2.8.0',
'pytest-wholenodeid',
'pytest-capturelog',
]
extras_require = {
'docs': [
'Sphinx>=1.4',
],
'cli': [
'Flask-CLI>=0.4.0',
],
'script': [
'Flask-Script',
],
'tests': tests_require,
}
extras_require['all'] = []
for reqs in extras_require.values():
extras_require['all'].extend(reqs)
needs_pytest = set(['pytest', 'test', 'ptr']).intersection(sys.argv)
pytest_runner = ['pytest-runner'] if needs_pytest else []
setup_params = dict(
name='Flask-RQ2',
version='17.0',
url='https://flask-rq2.readthedocs.io/',
license='MIT',
author='Jannis Leidel',
author_email='jannis@leidel.info',
description='A Flask extension for RQ.',
long_description=long_description,
packages=find_packages(where='src'),
package_dir={'': 'src'},
zip_safe=False,
include_package_data=True,
platforms='any',
setup_requires=[] + pytest_runner,
install_requires=[
'Flask>=0.10',
'rq>=0.6.0,<0.7.0',
'rq-scheduler>=0.6.1',
],
extras_require=extras_require,
tests_require=tests_require,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'Intended Audience :: End Users/Desktop',
'Intended Audience :: Information Technology',
'Intended Audience :: Science/Research',
'Intended Audience :: System Administrators ',
'License :: OSI Approved :: MIT License',
'Operating System :: MacOS',
'Operating System :: POSIX',
'Operating System :: Unix ',
'Programming Language :: Python',
'Topic :: Internet',
'Topic :: Scientific/Engineering',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Distributed Computing',
'Topic :: System :: Monitoring',
'Topic :: System :: Systems Administration',
]
)
if __name__ == '__main__':
setup(**setup_params)