-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
executable file
·79 lines (70 loc) · 1.95 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Setup file used for install this package.
Copyright (C) 2016 Canux CHENG.
All rights reserved.
Name: setup.py
Author: Canux CHENG canuxcheng@gmail.com
Version: V1.0.0.0
Time: Fri 05 Aug 2016 09:59:29 AM CST
Description:
./setup.py -h
"""
import os
from setuptools import setup, find_packages
import pymonitoringplugins
NAME = 'pymonitoringplugins'
VERSION = pymonitoringplugins.__version__
URL = 'https://github.com/crazy-canux/pymonitoringplugins'
DESCRIPTION='Common interface of tons protocals, used for monitoring tools, like nagios/icinga...'
KEYWORDS='monitoring nagios icinga plugins'
def read(readme):
"""Give reST format README for pypi."""
extend = os.path.splitext(readme)[1]
if (extend == '.rst'):
import codecs
return codecs.open(readme, 'r', 'utf-8').read()
elif (extend == '.md'):
import pypandoc
return pypandoc.convert(readme, 'rst')
INSTALL_REQUIRES = [
'pymysql',
'pymssql',
'paramiko',
'pywinrm',
'pysnmp',
'pyvmomi',
'sh',
'requests',
'bs4'
]
setup(
name=NAME,
version=VERSION,
url=URL,
description=DESCRIPTION,
keywords=KEYWORDS,
author='Canux CHENG',
author_email='canuxcheng@gmail.com',
maintainer='Canux CHENG',
maintainer_email='canuxcheng@gmail.com',
long_description=read('README.rst'),
license='GPL',
platforms='any',
install_requires=INSTALL_REQUIRES,
packages=find_packages(),
zip_safe=False,
include_package_data=True,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Plugins",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Topic :: System :: Monitoring"
],
)