2013-01-31 21:09:59 +01:00
|
|
|
#!/usr/bin/env python
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
import humbug
|
|
|
|
|
2013-02-07 20:07:16 +01:00
|
|
|
import glob
|
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-01-31 21:09:59 +01:00
|
|
|
setup(name='humbug',
|
|
|
|
version=humbug.__version__,
|
|
|
|
description='Bindings for the Humbug message API',
|
|
|
|
author='Humbug, Inc.',
|
|
|
|
author_email='humbug@humbughq.com',
|
|
|
|
classifiers=[
|
|
|
|
'Development Status :: 3 - Alpha',
|
|
|
|
'Environment :: Web Environment',
|
|
|
|
'Intended Audience :: Developers',
|
|
|
|
'License :: OSI Approved :: MIT License',
|
|
|
|
'Topic :: Communications :: Chat',
|
|
|
|
],
|
|
|
|
url='https://humbughq.com/dist/api/',
|
|
|
|
packages=['humbug'],
|
2013-03-15 05:26:49 +01:00
|
|
|
data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message"])] + \
|
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
|
|
|
)
|