forked from ARGOeu/nagios-plugins-fedcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
43 lines (37 loc) · 1.15 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
from __future__ import print_function
from distutils.core import setup
import glob
import sys
NAME = "nagios-plugins-fedcloud"
DESTDIR = "/usr/libexec/argo-monitoring/probes/fedcloud"
def get_ver():
try:
for line in open(NAME + ".spec"):
if "Version:" in line:
return line.split()[1]
except IOError:
print("Make sure that %s is in directory" % (NAME + ".spec"))
sys.exit(1)
setup(
name=NAME,
version=get_ver(),
license="ASL 2.0",
author="SRCE",
author_email="[email protected], [email protected]",
description="Package include probes for EGI FedCloud services",
platforms="noarch",
long_description="""
This package includes probes for EGI FedCloud services.
Currently it supports the following tests:
- AppDB workflow
- CDMI
- Openstack Nova
- FedCloud Accounting Freshness
- OCCI compute create
- Perun
""",
url="https://github.com/ARGOeu/nagios-plugins-fedcloud",
data_files=[(DESTDIR, glob.glob("src/*"))],
packages=["nagios_plugins_fedcloud"],
package_dir={"nagios_plugins_fedcloud": "pymodule/"},
)