forked from sunbenxin/oscm
-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathsetup.py
94 lines (91 loc) · 2.66 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
import os, sys
from setuptools import setup, find_packages
sys.path.insert(0, os.path.abspath("lib"))
from netkiller import __version__, __author__
with open("README.md", "r") as fh:
long_description = fh.read()
setup(
name="netkiller-devops",
version="0.7.4",
author="Neo Chen",
author_email="[email protected]",
description="DevOps of useful deployment and automation",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://www.netkiller.cn",
license="BSD",
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
],
install_requires=[
"ruamel.yaml",
"requests",
"redis",
"pyttsx3",
"simple_term_menu",
"prompt_toolkit",
],
# package_dir={ '': 'library' },
packages=find_packages(),
scripts=[
"bin/deployment",
"bin/backup",
"bin/osconf",
"bin/mysqlshell",
"bin/chpasswd.sh",
"bin/gitsync",
"bin/lrsync",
"bin/randpasswd",
"bin/randtext",
"bin/matrixpasswd",
"bin/wechat",
"bin/voice",
"bin/sqldump",
"bin/mdump",
"bin/logviewer",
"bin/logviewer.docker",
"bin/logviewer.kubectl",
"bin/merge",
"bin/dingtalk",
# 'bin/gantt',
"bin/nacos",
"bin/exceldiff",
"bin/cicd",
],
data_files=[
("etc", ["etc/deployment.cfg"]),
("etc", ["etc/task.cfg"]),
("etc", ["etc/schedule.cfg"]),
("etc", ["etc/os.ini"]),
(
"etc",
[
"etc/notification.ini",
"etc/dump.ini.sample",
"etc/mongo.ini.sample",
"etc/logviewer.ini",
],
),
(
"libexec/devops",
[
"shell/backup/backup.mysql.sh",
"shell/backup/backup.mysql.gpg.sh",
"shell/backup/backup.mysql.gpg.sh",
"shell/backup/backup.mysql.struct.sh",
],
),
(
"share",
["share/example/testing/example.com.ini", "share/profile.d/devops.sh"],
),
("share/devops", ["doc/wechat.md", "doc/voice.md"]),
# ('example/testing', ['example/testing/example.com.ini']),
# ('example/config/testing', ['example/config/testing/www.example.com.ini']),
# ('example/exclude/testing', ['example/exclude/testing/www.example.com.lst'])
],
)