2013-01-31 21:09:59 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
2013-08-07 17:51:03 +02:00
|
|
|
import zulip
|
2013-01-31 21:09:59 +01:00
|
|
|
|
2013-02-22 17:42:53 +01:00
|
|
|
import os
|
2013-01-31 21:09:59 +01:00
|
|
|
from distutils.core import setup
|
|
|
|
|
2013-03-26 22:55:57 +01: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 17:51:03 +02:00
|
|
|
setup(name='zulip',
|
|
|
|
version=zulip.__version__,
|
2013-08-06 21:32:15 +02:00
|
|
|
description='Bindings for the Zulip message API',
|
|
|
|
author='Zulip, Inc.',
|
2013-01-31 21:09:59 +01: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 23:53:39 +02:00
|
|
|
url='https://www.zulip.com/dist/api/',
|
2013-08-07 17:51:03 +02:00
|
|
|
packages=['zulip'],
|
2013-08-07 17:36:46 +02:00
|
|
|
data_files=[('share/humbug/examples', ["examples/zuliprc", "examples/send-message", "examples/subscribe",
|
2013-06-24 21:42:49 +02:00
|
|
|
"examples/get-public-streams", "examples/unsubscribe",
|
|
|
|
"examples/list-members", "examples/list-subscriptions",
|
|
|
|
"examples/print-messages"])] + \
|
2013-03-26 22:55:57 +01:00
|
|
|
list(recur_expand('share/humbug', 'integrations/')) + \
|
2013-02-22 17:42:53 +01:00
|
|
|
[('share/humbug/demos',
|
|
|
|
[os.path.join("demos", relpath) for relpath in
|
|
|
|
os.listdir("demos")])],
|
2013-03-15 05:26:49 +01:00
|
|
|
scripts=["bin/humbug-send"],
|
2013-01-31 21:09:59 +01:00
|
|
|
)
|