forked from hookbox/hookbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
81 lines (71 loc) · 2.16 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
from setuptools import setup, find_packages
import os, sys
import hookbox
static_types = [
'*.js',
'*.html',
'*.css',
'*.ico',
'*.gif',
'*.jpg',
'*.png',
'*.txt*',
'*.py',
'*.template',
'*.pkg'
]
#if sys.platform != "win32":
# _install_requires.append("Twisted")
_install_requires = [
'eventlet>=0.9.10',
'paste',
'csp_eventlet>=0.5.1',
'rtjp_eventlet>=0.3.2',
'pygments',
'restkit>=3.0.4',
# 'nose==0.11.1',
# 'coverage',
]
# python <= 2.5
if sys.version_info[1] <= 5:
_install_requires.append('simplejson')
def find_package_data():
targets = [
os.path.join('hookbox', 'static'),
os.path.join('hookbox', 'admin', 'static'),
os.path.join('hookbox', 'js_src')
]
package_data = {'': reduce(list.__add__, [ '.git' not in d and [ os.path.join(d[len('hookbox/'):], e) for e in
static_types ] or [] for (d, s, f) in reduce(list.__add__, [ [ i for i in os.walk(target) ] for target in targets ])
]) }
return package_data
def main():
setup(
name='hookbox',
version=hookbox.__version__,
author='Michael Carter',
author_email='CarterMichael@gmail.com',
url='http://hookbox.org',
license='MIT License',
description='HookBox is a Comet server and message queue that tightly integrates with your existing web application via web hooks and a REST interface.',
long_description='',
packages= find_packages(),
package_data = find_package_data(),
zip_safe = False,
install_requires = _install_requires,
entry_points = '''
[console_scripts]
hookbox = hookbox.start:main
''',
classifiers = [
'Development Status :: 4 - Beta',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)
if __name__ == '__main__':
main()