forked from Uninett/Argus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
168 lines (149 loc) · 3.88 KB
/
pyproject.toml
File metadata and controls
168 lines (149 loc) · 3.88 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
[build-system]
requires = ["hatchling", "hatch-build-scripts", "versioningit>=3.0.0"]
build-backend = "hatchling.build"
[project]
name = "argus-server"
description = "Argus is an alert aggregator for monitoring systems"
authors = [{name="Uninett Opensource", email="opensource@uninett.no"}]
readme = "README.md"
requires-python = ">=3.10"
license = {text = "GPL-3.0-or-later"}
classifiers = [
"Framework :: Django",
"Framework :: Django :: 5.2",
"Framework :: Django :: 6.0",
"Intended Audience :: Information Technology",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: System :: Monitoring",
]
dependencies = [
"Django>=5.2.8,<6.1",
"dj-database-url>=0.5.0",
"django-cors-headers>=3.2",
"django-filter",
"django-tasks-db",
"django-phonenumber-field[phonenumberslite]",
"djangorestframework>=3.14",
"drf-rw-serializers>=1.1",
"drf-spectacular>=0.17",
"factory_boy",
"psycopg2",
"python-dataporten-auth",
"social-auth-core>=4.1",
"social-auth-app-django>=5.0",
"whitenoise",
"wheel",
"httpx",
"pydantic>=2",
"django-rest-knox",
"django-htmx",
"django-widget-tweaks==1.5.0",
"fontawesomefree~=6.6",
"social-auth-core>=4.1",
"social-auth-app-django>=5.0",
]
dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/Uninett/Argus"
[project.optional-dependencies]
htmx = [] # for outdated install procedures
docs = ["sphinx>=2.2.0"]
dev = [
"django-debug-toolbar",
"coverage",
"django-extensions",
"ruff",
"djlint",
"ipython",
"pre-commit",
"python-dotenv",
"towncrier",
"werkzeug",
"tox>=4",
"build", # for debugging builds/installs
]
[tool.hatch.version]
source = "versioningit"
[tool.hatch.build]
artifacts = [
"src/argus/version.py",
"src/argus/htmx/static/styles.css",
"src/argus/htmx/tailwindtheme/styles.css",
"src/argus/htmx/tailwindtheme/tailwind.css",
"src/argus/htmx/tailwindtheme/custom-themes/*.css",
]
[[tool.hatch.build.hooks.build-scripts.scripts]]
commands = [
"make upgrade-tailwind tailwind-build-config tailwind",
]
artifacts = [
"src/argus/htmx/static/styles.css",
"src/argus/htmx/tailwindtheme/styles.css",
"src/argus/htmx/tailwindtheme/tailwind.css",
"src/argus/htmx/tailwindtheme/custom-themes/*.css",
]
[tool.hatch.build.targets.wheel]
packages = ["src/argus"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/*.json",
"/*.py",
"/*.sh",
]
[tool.versioningit.write]
file = "src/argus/version.py"
[tool.djlint]
profile="django"
indent = 2
ignore="H006"
use_gitignore=true
[tool.ruff]
line-length = 120
extend-exclude = [
".egg-info",
"migrations",
"templates",
]
output-format = "full"
[tool.ruff.lint]
select = ["E4", "E7", "E9", "F"]
ignore = ["F403", "F405"]
[tool.towncrier]
directory = "changelog.d"
filename = "CHANGELOG.md"
start_string = "<!-- towncrier release notes start -->\n"
underlines = ["", "", ""]
title_format = "## [{version}] - {project_date}"
issue_format = "[#{issue}](https://github.com/Uninett/Argus/issues/{issue})"
wrap = true
[[tool.towncrier.type]]
directory = "security"
name = "Security"
showcontent = true
[[tool.towncrier.type]]
directory = "removed"
name = "Removed"
showcontent = true
[[tool.towncrier.type]]
directory = "deprecated"
name = "Deprecated"
showcontent = true
[[tool.towncrier.type]]
directory = "added"
name = "Added"
showcontent = true
[[tool.towncrier.type]]
directory = "changed"
name = "Changed"
showcontent = true
[[tool.towncrier.type]]
directory = "fixed"
name = "Fixed"
showcontent = true