forked from oshied/directord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
140 lines (131 loc) · 4.1 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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# Copyright Peznauts <kevin@cloudnull.com>. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import glob
import os
import setuptools
from directord import meta
with open("README.md", "r", encoding="utf-8") as f:
long_description = f.read()
GPRC_PACKAGE = "grpcio-tools>=1.26.0"
REQUIREMENTS = {
"dev": ["podman-py", GPRC_PACKAGE],
"test": ["flake8", "coverage"],
"redis": ["redis"],
"oslo_messaging": ["oslo_messaging[amqp1]"],
"zmq": ["pyzmq"],
"grpc": [GPRC_PACKAGE, "protobuf"],
}
REQUIREMENTS["all"] = list(
set([item for line in REQUIREMENTS.values() for item in line])
)
setuptools.setup(
name="directord",
author=meta.__author__,
author_email=meta.__email__,
description=(
"A deployment framework built to manage the data center life cycle."
),
version=meta.__version__,
packages=["directord"],
include_package_data=True,
zip_safe=False,
test_suite="tests",
install_requires=[
"jinja2",
"pyyaml",
"requests",
"ssh-python",
"tabulate",
"tenacity",
],
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/directord/directord",
project_urls={
"Bug Tracker": "https://github.com/directord/directord/issues",
},
python_requires=">=3.6",
extras_require=REQUIREMENTS,
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.8",
"Topic :: Utilities",
"Topic :: Software Development :: Libraries :: Python Modules",
],
entry_points={
"console_scripts": [
"directord = directord.main:main",
"directord-server-systemd = directord.main:_systemd_server",
"directord-client-systemd = directord.main:_systemd_client",
],
},
data_files=[
(
"share/directord/components",
[i for i in glob.glob("components/*") if os.path.isfile(i)],
),
(
"share/directord/orchestrations",
[i for i in glob.glob("orchestrations/*") if os.path.isfile(i)],
),
(
"share/directord/orchestrations/files",
[
i
for i in glob.glob("orchestrations/files/*")
if os.path.isfile(i)
],
),
(
"share/directord/pods",
[i for i in glob.glob("pods/*") if os.path.isfile(i)],
),
(
"share/directord/tools",
[i for i in glob.glob("tools/*") if os.path.isfile(i)],
),
(
"share/directord/tools/config/messaging",
[
i
for i in glob.glob("tools/config/messaging/*")
if os.path.isfile(i)
],
),
(
"share/directord/tools/scripts/messaging",
[
i
for i in glob.glob("tools/scripts/messaging/*")
if os.path.isfile(i)
],
),
(
"share/directord/tools/scripts/grpcd",
[
i
for i in glob.glob("tools/scripts/grpcd/*")
if os.path.isfile(i)
],
),
(
"share/directord/systemd",
[i for i in glob.glob("contrib/systemd/*") if os.path.isfile(i)],
),
],
)