-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
111 lines (102 loc) · 3.74 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
100
101
102
103
104
105
106
107
108
109
110
111
#!/usr/bin/env python
#
#
target = "jsb" # BHJTW change this to /var/cache/jsb on debian
import os
try: from setuptools import setup
except: print "i need setuptools to properly install JSONBOT" ; os._exit(1)
upload = []
def uploadfiles(dir):
upl = []
if not os.path.isdir(dir): print "%s does not exist" % dir ; os._exit(1)
for file in os.listdir(dir):
if not file or file.startswith('.'):
continue
d = dir + os.sep + file
if not os.path.isdir(d):
if file.endswith(".pyc"):
continue
upl.append(d)
return upl
def uploadlist(dir):
upl = []
for file in os.listdir(dir):
if not file or file.startswith('.'):
continue
d = dir + os.sep + file
if os.path.isdir(d):
upl.extend(uploadlist(d))
else:
if file.endswith(".pyc"):
continue
upl.append(d)
return upl
setup(
name='jsb',
version='0.8b1',
url='http://jsonbot.googlecode.com/',
download_url="http://code.google.com/p/jsonbot/downloads",
author='Bart Thate',
author_email='[email protected]',
description='The bot for you!',
license='MIT',
include_package_data=True,
zip_safe=False,
scripts=['bin/jsb',
'bin/jsb-makecert',
'bin/jsb-convore',
'bin/jsb-init',
'bin/jsb-irc',
'bin/jsb-fleet',
'bin/jsb-xmpp',
'bin/jsb-sed',
'bin/jsb-stop',
'bin/jsb-tornado',
'bin/jsb-udp',
'bin/jsb-udpstripped',
'bin/jsb-upgrade'],
packages=['jsb',
'jsb.lib',
'jsb.lib.rest',
'jsb.drivers',
'jsb.drivers.console',
'jsb.drivers.convore',
'jsb.drivers.irc',
'jsb.drivers.xmpp',
'jsb.drivers.tornado',
'jsb.utils',
'jsb.plugs',
'jsb.plugs.core',
'jsb.plugs.common',
'jsb.plugs.socket',
'jsb.plugs.myplugs',
'jsb.plugs.myplugs.socket',
'jsb.plugs.myplugs.common',
'jsb.contrib',
'jsb.contrib.dns',
'jsb.contrib.simplejson',
'jsb.contrib.tornado',
'jsb.contrib.tornado.test',
'jsb.contrib.tweepy',
'jsb.contrib.requests',
'jsb.contrib.requests.packages',
'jsb.contrib.requests.packages.poster'],
long_description = """ JSONBOT is a remote event-driven framework for building bots that talk JSON to each other over XMPP. IRC/Console/XMPP/WWW/Convore bots run all on the shell. """,
classifiers=[
'Development Status :: 4 - Beta',
'Environment :: Console',
'Environment :: Other Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Programming Language :: Python',
'Topic :: Communications :: Chat',
'Topic :: Software Development :: Libraries :: Python Modules'],
data_files=[(target + os.sep + 'data', uploadfiles('jsb' + os.sep + 'data')),
(target + os.sep + 'data' + os.sep + 'examples', uploadlist('jsb' + os.sep + 'data' + os.sep + 'examples')),
(target + os.sep + 'data' + os.sep + 'static', uploadlist('jsb' + os.sep + 'data' + os.sep + 'static')),
(target + os.sep + 'data' + os.sep + 'templates', uploadlist('jsb' + os.sep + 'data' + os.sep + 'templates')),
(target + os.sep + 'contrib' + os.sep + 'tornado', ["jsb/contrib/tornado/ca-certificates.crt",])],
package_data={'': ["*.crt"],
},
)