2013-01-31 15:09:59 -05:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2013-08-07 11:51:03 -04:00
|
|
|
import zulip
|
2013-01-31 15:09:59 -05:00
|
|
|
|
2013-02-22 11:42:53 -05:00
|
|
|
import os
|
2013-01-31 15:09:59 -05:00
|
|
|
from distutils.core import setup
|
|
|
|
|
2013-03-26 17:55:57 -04:00
|
|
|
def recur_expand(target_root, dir):
|
|
|
|
for root, _, files in os.walk(dir):
|
|
|
|
paths = [os.path.join(root, f) for f in files]
|
|
|
|
if len(paths):
|
|
|
|
yield os.path.join(target_root, root), paths
|
|
|
|
|
2013-08-07 11:51:03 -04:00
|
|
|
setup(name='zulip',
|
|
|
|
version=zulip.__version__,
|
2013-08-06 15:32:15 -04:00
|
|
|
description='Bindings for the Zulip message API',
|
|
|
|
author='Zulip, Inc.',
|
2013-01-31 15:09:59 -05:00
|
|
|
author_email='humbug@humbughq.com',
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Topic :: Communications :: Chat',
|
|
|
|
],
|
2013-07-24 17:53:39 -04:00
|
|
|
url='https://www.zulip.com/dist/api/',
|
2013-08-07 11:51:03 -04:00
|
|
|
packages=['zulip'],
|
2013-08-07 11:36:46 -04:00
|
|
|
data_files=[('share/humbug/examples', ["examples/zuliprc", "examples/send-message", "examples/subscribe",
|
2013-06-24 15:42:49 -04:00
|
|
|
"examples/get-public-streams", "examples/unsubscribe",
|
|
|
|
"examples/list-members", "examples/list-subscriptions",
|
|
|
|
"examples/print-messages"])] + \
|
2013-03-26 17:55:57 -04:00
|
|
|
list(recur_expand('share/humbug', 'integrations/')) + \
|
2013-02-22 11:42:53 -05:00
|
|
|
[('share/humbug/demos',
|
|
|
|
[os.path.join("demos", relpath) for relpath in
|
|
|
|
os.listdir("demos")])],
|
2013-03-15 00:26:49 -04:00
|
|
|
scripts=["bin/humbug-send"],
|
2013-01-31 15:09:59 -05:00
|
|
|
)
|