Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
230 lines (209 loc) · 5.4 KB
/
Copy pathpyproject.toml
File metadata and controls
230 lines (209 loc) · 5.4 KB
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
[project]
name = "ara"
description = "ARA Records Ansible"
dynamic = ["version"]
readme = "README.md"
requires-python = ">=3.10"
classifiers = [
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"Intended Audience :: Developers",
"Topic :: Utilities",
# Licencing in classifier is deprecated
#"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Development Status :: 5 - Production/Stable",
]
dependencies = [
"cliff",
"requests>=2.14.2",
]
[[project.authors]]
name = "ARA Records Ansible authors"
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools_scm]
version_file = "ara/setup/_version.py"
version_scheme = "no-guess-dev"
[project.urls]
Homepage = "https://codeberg.org/ansible-community/ara"
[project.scripts]
ara = "ara.cli.base:main"
ara-manage = "ara.server.__main__:main"
[project.entry-points."ara.cli"]
expire = "ara.cli.expire:ExpireObjects"
prometheus = "ara.cli.prometheus:PrometheusExporter"
"playbook list" = "ara.cli.playbook:PlaybookList"
"playbook show" = "ara.cli.playbook:PlaybookShow"
"playbook delete" = "ara.cli.playbook:PlaybookDelete"
"playbook prune" = "ara.cli.playbook:PlaybookPrune"
"playbook metrics" = "ara.cli.playbook:PlaybookMetrics"
"play list" = "ara.cli.play:PlayList"
"play show" = "ara.cli.play:PlayShow"
"play delete" = "ara.cli.play:PlayDelete"
"host list" = "ara.cli.host:HostList"
"host show" = "ara.cli.host:HostShow"
"host delete" = "ara.cli.host:HostDelete"
"host metrics" = "ara.cli.host:HostMetrics"
"record list" = "ara.cli.record:RecordList"
"record show" = "ara.cli.record:RecordShow"
"record delete" = "ara.cli.record:RecordDelete"
"result list" = "ara.cli.result:ResultList"
"result show" = "ara.cli.result:ResultShow"
"result delete" = "ara.cli.result:ResultDelete"
"task list" = "ara.cli.task:TaskList"
"task show" = "ara.cli.task:TaskShow"
"task delete" = "ara.cli.task:TaskDelete"
"task metrics" = "ara.cli.task:TaskMetrics"
[project.optional-dependencies]
server = [
# 5.2 LTS is supported until early 2028
# As per https://www.djangoproject.com/download/
"django>=5.2,<5.3",
"djangorestframework>=3.9.1",
"django-filter",
"django-cors-headers",
# django-health-check>=4.0.0 introduces backwards incompatible changes
# https://codeberg.org/ansible-community/ara/issues/644
"django-health-check<4.0.0",
# dynaconf 3.1.3 had a regression https://codeberg.org/ansible-community/ara/issues/212
# dynaconf dropped support for py35 at version 3.0.0: https://codeberg.org/ansible-community/ara/issues/370
"dynaconf[yaml]>=3.0.0,!=3.1.3,<4.0.0",
# dynaconf[yaml] should recover ruamel.yaml but this isn't always the case (i.e, Fedora koji)
# Make the dependency explicit.
"ruamel.yaml",
"tzdata",
"tzlocal>=4.0",
"pygments",
"whitenoise",
]
postgresql = [
"psycopg2",
]
mysql = [
"mysqlclient",
]
prometheus = [
"prometheus-client",
]
[tool.setuptools]
packages = [
"ara",
"ara.api",
"ara.cli",
"ara.clients",
"ara.plugins",
"ara.server",
"ara.setup",
"ara.ui",
# Add also namespaces
"ara.server.db",
"ara.server.db.backends",
"ara.server.db.backends.distributed_sqlite",
"ara.ui.templatetags",
"ara.ui.templates",
"ara.ui.templates.partials.tables",
"ara.ui.static",
"ara.ui.management.commands",
"ara.ui.static.css",
"ara.ui.static.css.fonts",
"ara.ui.static.images",
"ara.ui.static.js",
"ara.ui.templates.partials",
"ara.ui.templates.partials.search",
"ara.api.management.commands",
"ara.api.migrations",
"ara.api.tests",
"ara.plugins.action",
"ara.plugins.callback",
"ara.plugins.lookup",
]
[dependency-groups]
dev = [
"black",
"flake8",
"isort",
"flake8-pyproject",
]
[tool.coverage.report]
ignore_errors = true
include = [
"ara/*",
]
omit = [
"/usr*",
"setup.py",
"*egg*",
".venv/*",
]
[tool.coverage.html]
directory = "reports"
[tool.flake8]
max-line-length = 120
extend-ignore = [
"E123",
"E125",
"E741",
]
enable-extensions = [
"H106",
"H203",
]
show-source = true
exclude = [
".venv",
".git",
".tox",
"dist",
"doc",
"*lib/python*",
"*egg",
"build",
"ara/api/migrations",
"ara/setup/_version.py",
]
[tool.isort]
profile = "black"
known_first_party = "ara"
default_section = "THIRDPARTY"
skip = [
"build",
".git",
".tox",
".cache",
".venv",
"ara/api/migrations",
"ara/setup/_version.py",
]
multi_line_output = 3
include_trailing_comma = true
force_grid_wrap = 0
combine_as_imports = true
line_length = 120
[tool.black]
line-length = 120
exclude = "[migrations|ara/setup/_version.py]"
[tool.sphinx-pyproject]
copyright = "2024, ARA Records Ansible authors"
project = "ara"
extensions = [
"sphinxcontrib.programoutput",
"sphinx.ext.autodoc",
"sphinx.ext.autosectionlabel"
]
master_doc = "index"
source_suffix = ".rst"
pygments_style = "default"
add_module_names = true
add_function_parentheses = true
autosectionlabel_prefix_document = true
html_theme = "sphinx_rtd_theme"
[tool.uv]
package = true