-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
52 lines (44 loc) · 1.18 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
49
50
51
52
#!/usr/bin/env python
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import ast
import os
import re
os.chdir(os.path.dirname(os.path.abspath(__file__)))
with open('src/xymon_client/xymon.py') as fobj:
version = ast.literal_eval(
re.compile(r'__version__\s*=\s*(.*)')
.search(fobj.read()).group(1)
)
setup(
name='xymon_client',
version=version,
description='a minimalist Xymon client library in Python',
author='Romain Dartigues',
license='BSD 3-Clause License',
keywords=('bb', 'BigBrother', 'xymon'),
url='https://github.com/romain-dartigues/python-xymon-client',
classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Plugins',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Monitoring',
),
package_dir={'': 'src'},
packages=(
'xymon_client',
),
entry_points={
'console_scripts': [
'xymon-client = xymon_client.__main__:main',
],
},
)