forked from Neeky/dbm-agent
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
50 lines (43 loc) · 1.75 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
import os
import re
from setuptools import setup
def get_version():
"""
提取出 dbma/version.py 中的 agent_version
"""
base = os.path.dirname(__file__)
version_file = os.path.join(base, 'dbma/version.py')
with open(version_file) as f:
line = f.readline()
m = re.search(r'\d*\.\d*\.\d*', line)
if m:
return m.group(0)
else:
return '0.0.0'
agent_version = get_version()
setup(name='dbm-agent',
version=agent_version,
description='dbm-agent 数据库管理中心客户端程序',
author="Neeky",
author_email="[email protected]",
maintainer='Neeky',
maintainer_email='[email protected]',
scripts=['bin/dbm-agent', 'bin/dbma-cli-single-instance', 'bin/dbma-cli-install-mysqlsh',
'bin/dbma-cli-build-slave', 'bin/dbma-cli-build-mgr', 'bin/dbma-cli-clone-instance',
'bin/dbm-monitor-gateway', 'bin/dbma-cli-zabbix-agent', 'bin/dbma-cli-mysql-monitor-item',
'bin/dbma-cli-backup-instance', 'bin/dbma-cli-install-backuptool', 'bin/dbm-backup-proxy'],
packages=['dbma'],
package_data={'dbma': ['static/cnfs/*', 'static/sql-scripts/*']},
url='https://github.com/Neeky/dbm-agent',
install_requires=['Jinja2>=2.10.1', 'mysql-connector-python>=8.0.18',
'psutil>=5.6.6', 'requests>=2.22.0', 'distro>=1.4.0'],
python_requires='>=3.6.*',
classifiers=[
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: POSIX',
'Operating System :: MacOS :: MacOS X',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8']
)