-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathsetup.py
62 lines (51 loc) · 1.86 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
from setuptools import setup, find_packages
import sys
import os
version = __import__('turbo').version
install_requires = [
]
for k in ['pymongo', 'requests', 'redis', 'docopt', 'jinja2']:
try:
_m = __import__(k)
except ImportError:
if k == 'pymongo':
k = 'pymongo>=3.2'
install_requires.append(k)
kwargs = {}
readme_path = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(readme_path, 'README.rst')) as f:
kwargs['long_description'] = f.read()
if sys.version_info < (2, 7):
install_requires.append('unittest2')
install_requires.append('tornado<=4.3.0')
install_requires.append('futures')
elif sys.version_info > (2, 7) and sys.version_info < (2, 7, 9):
install_requires.append('tornado<5.0.0')
elif sys.version_info >= (2, 7, 9) and sys.version_info < (3, 5, 2):
install_requires.append('tornado<6.0.0')
elif sys.version_info >= (3, 5, 2):
install_requires.append('tornado>=6.0.0')
setup(
name="turbo",
version=version,
author="Wecatch.me",
author_email="[email protected]",
url="http://github.com/wecatch/app-turbo",
license="http://www.apache.org/licenses/LICENSE-2.0",
description="turbo is a web framework for fast web development based in tornado, mongodb, redis",
keywords='web framework tornado mongodb',
packages=find_packages(),
install_requires=install_requires,
scripts=['turbo/bin/turbo-admin'],
classifiers=[
'License :: OSI Approved :: Apache Software License',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
],
**kwargs
)