2014-03-05 16:28:32 -06:00
|
|
|
#!/usr/bin/env python
|
2016-02-03 17:11:23 +00:00
|
|
|
import os
|
2014-03-05 16:28:32 -06:00
|
|
|
from setuptools import setup, find_packages
|
2014-12-05 16:52:33 +00:00
|
|
|
from os import environ as env
|
2017-02-16 18:36:30 +00:00
|
|
|
import subprocess
|
2014-12-05 16:52:33 +00:00
|
|
|
|
2017-02-16 18:36:30 +00:00
|
|
|
from pip.req import parse_requirements
|
2016-02-03 17:11:23 +00:00
|
|
|
|
2017-02-16 18:36:30 +00:00
|
|
|
requirements = [str(req.req) for req in parse_requirements('requirements.txt', session=False)]
|
|
|
|
requirements_plugins = [str(req.req) for req in parse_requirements('requirements-plugins.txt', session=False)]
|
|
|
|
|
|
|
|
VERSION = subprocess.check_output(['git', 'describe', '--tags']).strip()
|
2014-03-05 16:28:32 -06:00
|
|
|
|
|
|
|
setup(
|
|
|
|
name='cabot',
|
2017-02-16 18:36:30 +00:00
|
|
|
version=VERSION,
|
2014-03-05 16:28:32 -06: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',
|
2017-02-16 18:36:30 +00:00
|
|
|
install_requires=requirements + requirements_plugins,
|
2014-03-05 16:28:32 -06:00
|
|
|
packages=find_packages(),
|
|
|
|
include_package_data=True,
|
2017-02-16 18:36:30 +00:00
|
|
|
zip_safe=False
|
2014-03-05 16:28:32 -06:00
|
|
|
)
|