-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.py
101 lines (90 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# coding: utf-8
from io import open
from setuptools import setup, find_packages
version = '0.7.0'
requirements = [
'setuptools',
'six>=1.12.0',
'sentry-sdk',
# sa-notify
'wechatpy',
'pylark',
'requests',
# sa-dns
'pydnspod2',
# sa-access
'elasticsearch>=7.0.0',
# sa-disk
'humanize',
]
# see also https://setuptools.readthedocs.io/en/latest/setuptools.html#declaring-extras-optional-features-with-their-own-dependencies # NOQA
extras_require = {
# sa-script
'script': [
'ansible>=2.8',
# 'paramiko', # sa-script use ssh by default
'progressbar2',
'terminaltables',
],
# sa-icinga
'icinga': [
'Mako',
'icinga2py',
'inflect',
],
# sa-tc
'tencentcloud': [
'tencentcloud-sdk-python',
'PyYAML',
'inflection',
],
}
entry_points = """
[console_scripts]
sa-uptime = sa_tools_core.uptime:main
sa-dns = sa_tools_core.dns:main
sa-disk = sa_tools_core.disk:main
sa-notify = sa_tools_core.notify:main
sa-access = sa_tools_core.access:main
sa-script = sa_tools_core.script:main [script]
sa-icinga = sa_tools_core.icinga:main [icinga]
sa-tc = sa_tools_core.tc:main [tencentcloud]
sa-github = sa_tools_core.github:main
# sa-node = sa_tools_core.node:main
# sa-lvs = sa_tools_core.lvs:main
# sa-rsync = sa_tools_core.rsync:main
"""
scripts = []
setup(
name='sa-tools-core',
version=version,
description="SA Tools Core",
long_description=open("README.md", encoding='utf-8').read(),
long_description_content_type='text/markdown',
# Get more strings from
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Development Status :: 5 - Production/Stable',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
'Topic :: Software Development :: Libraries :: Python Modules',
],
url='https://github.com/douban/sa-tools-core',
keywords=['sa-tools', 'sysadmin', 'command line tools'],
author='sysadmin',
author_email='[email protected]',
license='BSD',
packages=find_packages(exclude=['examples*', 'tests*']),
include_package_data=True,
zip_safe=False,
entry_points=entry_points,
scripts=scripts,
install_requires=requirements,
extras_require=extras_require,
) # NOQA