forked from Netcracker/KubeMarine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
185 lines (172 loc) · 5.35 KB
/
pyproject.toml
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
dynamic = ["version", "readme"]
name = "kubemarine"
description = "Management tool for Kubernetes cluster deployment and maintenance"
authors = [
{name = "Kubemarine Group", email = "[email protected]"},
]
license = {text = "Apache-2.0"}
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
]
keywords = ["kubernetes", "devops", "administration", "helm"]
dependencies = [
"PyYAML==6.0",
"deepmerge==1.0.*",
"fabric==2.6.*",
"jinja2==3.1.*",
"MarkupSafe==2.1.*",
"invoke==1.6.*",
"ruamel.yaml==0.17.22",
"pygelf==0.4.*",
"toml==0.10.*",
"python-dateutil==2.8.*",
"deepdiff==6.2.*",
"ordered-set==4.1.*",
# cryptography is a transitive dependency of paramiko. Fix version to avoid unexpected deprecation warnings.
"cryptography==39.0.*",
"paramiko==2.11.*",
"jsonschema==4.17.*",
"typing_extensions==4.6.*",
]
requires-python = ">=3.7"
[project.optional-dependencies]
ansible = ["ansible==7.0.*"]
mypy = [
"mypy==1.3.*",
"types-PyYAML==6.*",
"types-invoke==1.*",
"types-toml==0.*",
"types-python-dateutil==2.*",
"types-paramiko==2.*",
"types-jsonschema==4.*",
]
# Auxiliary executable roughly equivalent to python -m kubemarine
# Allows to not worry about exact path to python executable on the client machine
# Should still no be called directly as it does not ensure necessary environment variables.
# Real executables are installed by setup.py
[project.scripts]
_kubemarine = "kubemarine.__main__:main"
[project.urls]
Homepage = "https://github.com/Netcracker/KubeMarine"
Documentation = "https://github.com/Netcracker/KubeMarine#documentation"
Issues = "https://github.com/Netcracker/KubeMarine/issues/"
# To change version with automatic push and triggering of the release workflow use
# 1. pip install bumpver
# 2. bumpver update --set-version <new version>
[tool.bumpver]
current_version = "0.19.0"
version_pattern = "MAJOR.MINOR.PATCH"
commit_message = "bump version to {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'current_version = "{version}"',
]
"kubemarine/version" = [
'^{version}$'
]
[tool.mypy]
files = ["kubemarine", "scripts"]
# various configuration and code checks
warn_unused_configs = true
warn_redundant_casts = true
warn_unused_ignores = true
warn_unreachable = true
# strict typing checks
check_untyped_defs = true
strict_equality = true
strict_concatenate = true
disallow_subclassing_any = true
disallow_untyped_decorators = true
# permissive configuration
implicit_optional = true
# https://github.com/python/mypy/issues/12664
incremental = false
# List of all modules where type annotations are maintained with references (but still with any-generics) to avoid degradation.
[[tool.mypy.overrides]]
module = [
# modules from scripts/
"build_binary",
"install_package",
"src.*",
"sync",
# kubemarine modules
"kubemarine",
"kubemarine.apparmor",
"kubemarine.apt",
"kubemarine.audit",
"kubemarine.controlplane",
"kubemarine.core",
"kubemarine.core.action",
"kubemarine.core.annotations",
"kubemarine.core.connections",
"kubemarine.core.environment",
"kubemarine.core.errors",
"kubemarine.core.executor",
"kubemarine.core.group",
"kubemarine.core.os",
"kubemarine.core.patch",
"kubemarine.core.schema",
"kubemarine.core.static",
"kubemarine.core.summary",
"kubemarine.core.yaml_merger",
"kubemarine.cri.*",
"kubemarine.etcd",
"kubemarine.haproxy",
"kubemarine.jinja",
"kubemarine.k8s_certs",
"kubemarine.keepalived",
"kubemarine.kubernetes.daemonset",
"kubemarine.kubernetes.deployment",
"kubemarine.kubernetes.replicaset",
"kubemarine.kubernetes.statefulset",
"kubemarine.kubernetes_accounts",
"kubemarine.plugins.builtin",
"kubemarine.plugins.calico",
"kubemarine.plugins.kubernetes_dashboard",
"kubemarine.plugins.local_path_provisioner",
"kubemarine.plugins.manifest",
"kubemarine.plugins.nginx_ingress",
"kubemarine.procedures.cert_renew",
"kubemarine.procedures.do",
"kubemarine.procedures.manage_psp",
"kubemarine.procedures.manage_pss",
"kubemarine.procedures.migrate_kubemarine",
"kubemarine.procedures.reboot",
"kubemarine.packages",
"kubemarine.selinux",
"kubemarine.sysctl",
"kubemarine.system",
"kubemarine.thirdparties",
"kubemarine.yum",
]
disallow_incomplete_defs = true
disallow_untyped_defs = true
disallow_untyped_calls = true
warn_return_any = true
# List of all modules where type annotations are self maintained to avoid degradation.
[[tool.mypy.overrides]]
module = [
"kubemarine.core.cluster",
"kubemarine.core.resources",
"kubemarine.kubernetes.object",
]
disallow_incomplete_defs = true
disallow_untyped_defs = true