2014-03-05 22:28:32 +00:00
|
|
|
#!/usr/bin/env python
|
2016-02-03 17:11:23 +00:00
|
|
|
import os
|
2014-03-05 22:28:32 +00:00
|
|
|
from setuptools import setup, find_packages
|
2014-12-05 16:52:33 +00:00
|
|
|
from os import environ as env
|
|
|
|
|
2016-02-03 17:11:23 +00:00
|
|
|
requirements_file = os.path.join(os.path.dirname(__file__), 'requirements.txt')
|
|
|
|
with open(requirements_file) as f:
|
|
|
|
requirements = [line.rstrip('\n')
|
|
|
|
for line in f
|
|
|
|
if line and not line.startswith('#')]
|
|
|
|
|
2014-12-05 16:52:33 +00:00
|
|
|
# pull in active plugins
|
|
|
|
plugins = env['CABOT_PLUGINS_ENABLED'].split(',') if 'CABOT_PLUGINS_ENABLED' in env else ["cabot_alert_hipchat", "cabot_alert_twilio", "cabot_alert_email"]
|
2014-03-05 22:28:32 +00:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='cabot',
|
2014-12-05 16:52:33 +00:00
|
|
|
version='0.0.1-dev',
|
2014-03-05 22:28:32 +00:00
|
|
|
description="Self-hosted, easily-deployable monitoring and alerts service"
|
|
|
|
" - like a lightweight PagerDuty",
|
|
|
|
long_description=open('README.md').read(),
|
|
|
|
author="Arachnys",
|
|
|
|
author_email='info@arachnys.com',
|
|
|
|
url='http://cabotapp.com',
|
|
|
|
license='MIT',
|
2016-02-03 17:11:23 +00:00
|
|
|
install_requires=requirements + plugins,
|
2014-03-05 22:28:32 +00:00
|
|
|
packages=find_packages(),
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
)
|