-
Notifications
You must be signed in to change notification settings - Fork 14
/
setup.py
57 lines (53 loc) · 2.03 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
# -*- coding: utf-8 -*-
import codecs
import os
from distutils.util import convert_path
from setuptools import setup, find_packages
here = os.path.abspath(os.path.dirname(__file__))
longdesc = []
for readme in ['README.txt', 'HACKING.txt', 'CONTRIBUTORS.txt', 'HISTORY.txt']:
with codecs.open(readme, encoding='utf-8') as f:
longdesc.append(f.read())
main_ns = {}
ver_path = convert_path('nagiosplugin/version.py')
with open(ver_path) as ver_file:
exec(ver_file.read(), main_ns)
setup(
name='nagiosplugin',
version=main_ns['__VERSION__'],
description='Class library for writing Nagios (Icinga) plugins',
long_description='\n\n'.join(longdesc),
url='https://nagiosplugin.readthedocs.io/',
download_url='https://pypi.org/project/nagiosplugin/',
project_urls={
'nagiosplugin source': 'https://github.com/mpounsett/nagiosplugin',
'nagiosplugin issues':
'https://github.com/mpounsett/nagiosplugin/issues',
},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Plugins',
'Intended Audience :: Developers',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: Zope Public License',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: System :: Monitoring',
],
keywords='Nagios Icinga plugin check monitoring',
author='Matthew Pounsett',
author_email='[email protected]',
license='ZPL-2.1',
packages=find_packages(),
include_package_data=True,
zip_safe=False,
)