-
Notifications
You must be signed in to change notification settings - Fork 3
/
setup.py
81 lines (68 loc) · 2.64 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*- coding: utf-8 -*-
from setuptools import setup, find_packages
import os
import sys
version = '0.11.dev0'
here = os.path.abspath(os.path.dirname(__file__))
def read_file(*pathes):
path = os.path.join(here, *pathes)
if os.path.isfile(path):
with open(path, 'r') as desc_file:
return desc_file.read()
else:
return ''
desc_files = (('README.rst',), ('docs', 'CHANGES.rst'),
('docs', 'CONTRIBUTORS.rst'))
long_description = '\n\n'.join([read_file(*pathes) for pathes in desc_files])
install_requires = ['nagiosplugin']
if sys.version_info < (2, 7):
extras_require = {'test': ['setuptools', 'mock', 'unittest2', 'argparse']}
install_requires.append('argparse')
else:
extras_require = {'test': ['setuptools', 'mock']}
setup(name='checkopenbgpd',
version=version,
description="Check OpenBGPD sessions Nagios|Icinga|shinken|etc plugin",
long_description=long_description,
platforms=["any"],
# Get more strings from
# http://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
"Programming Language :: Python",
"License :: OSI Approved :: BSD License",
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'Operating System :: POSIX :: BSD :: OpenBSD',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: Implementation :: CPython',
'Programming Language :: Python :: Implementation :: PyPy',
'Programming Language :: Python :: Implementation :: PyPy3',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Monitoring',
],
keywords="Nagios Icinga plugin check openbgpd openbsd monitoring",
author="Jean-Philippe Camguilhem",
author_email="[email protected]",
url="https://github.com/jpcw/checkopenbgpd/",
license="BSD",
packages=find_packages("src"),
package_dir={"": "src"},
include_package_data=True,
zip_safe=False,
install_requires=install_requires,
test_suite='checkopenbgpd.tests',
extras_require=extras_require,
entry_points="""
# -*- Entry points: -*-
[console_scripts]
check_openbgpd = checkopenbgpd:main
""",
)
# vim:set et sts=4 ts=4 tw=80: