-
Notifications
You must be signed in to change notification settings - Fork 45
/
Copy pathsetup.py
48 lines (37 loc) · 1.52 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#! /usr/bin/python2
from setuptools import setup, find_packages
from os import path
# remember to push a new tag after changing this!
VERSION = "1.9.0"
DIST_CONFIG_PATH = "rabbitmqalert/config"
DATA_FILES = [
("/etc/rabbitmq-alert/", [DIST_CONFIG_PATH + "/config.ini.example"]),
("/var/log/rabbitmq-alert/", [])
]
def generate_readme():
return open("README.rst").read()
def generate_data_files():
if path.isdir("/etc/systemd/system/"):
DATA_FILES.append(("/etc/systemd/system/", [DIST_CONFIG_PATH + "/service/rabbitmq-alert.service"]))
if path.isdir("/etc/init.d/"):
DATA_FILES.append(("/etc/init.d/", [DIST_CONFIG_PATH + "/service/rabbitmq-alert"]))
return DATA_FILES
setup(
name="rabbitmq-alert",
version=VERSION,
long_description=generate_readme(),
packages=find_packages(exclude=["*tests*"]),
description="Send notifications when predefined conditions are met",
author="Germano Fronza (gfronza), Kostas Milonas (mylk), velika12, Robert Kopaczewski (23doors), Ivan Timeev (TeslA1402), Anderson Diego Kulpa Fachini (anderson-fachini), Dawid Deregowski (Venomen)",
author_email="germano.inf@gmail.com",
url="https://github.com/gfronza/rabbitmq-alert",
download_url="https://github.com/gfronza/rabbitmq-alert/tarball/" + VERSION,
keywords=["rabbitmq", "alert", "monitor"],
classifiers=[],
entry_points={
"console_scripts": [
"rabbitmq-alert = rabbitmqalert:rabbitmqalert.main"
]
},
data_files=generate_data_files()
)