10a53150a2
(imported from commit b9d564a6cc4ee6e2afa0108b6d9f18af039fc8cf)
37 lines
1.1 KiB
Python
37 lines
1.1 KiB
Python
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import humbug
|
|
|
|
import glob
|
|
import os
|
|
from distutils.core import setup
|
|
|
|
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
|
|
|
|
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'],
|
|
data_files=[('share/humbug/examples', ["examples/humbugrc", "examples/send-message"])] + \
|
|
list(recur_expand('share/humbug', 'integrations/')) + \
|
|
[('share/humbug/demos',
|
|
[os.path.join("demos", relpath) for relpath in
|
|
os.listdir("demos")])],
|
|
scripts=["bin/humbug-send"],
|
|
)
|