forked from Uninett/Argus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
148 lines (132 loc) · 3.29 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
[build-system]
requires = ["setuptools>=61.0", "wheel", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "argus-server"
description = "Argus is an alert aggregator for monitoring systems"
authors = [{name="Uninett Opensource", email="[email protected]"}]
readme = "README.md"
requires-python = ">=3.8"
license = {text = "GPL-3.0-or-later"}
classifiers = [
"Framework :: Django",
"Framework :: Django :: 4.2",
"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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Monitoring",
]
dependencies = [
'importlib-metadata; python_version<"3.8"',
"Django>=4.2.14,<5.1",
"dj-database-url>=0.5.0",
"django-cors-headers>=3.2",
"django-filter",
"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",
"channels[daphne]>=4.0.0,<5",
"channels-redis>=4",
"httpx",
"pydantic>=2",
]
dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/Uninett/Argus"
[project.optional-dependencies]
docs = ["sphinx>=2.2.0"]
dev = [
"django-debug-toolbar",
"black",
"coverage",
"django-extensions",
"flake8",
"ipython",
"pre-commit",
"python-dotenv",
"towncrier",
"werkzeug",
"tox<4", # does not work on tox 4 for some reason
"build", # for debugging builds/installs
]
[tool.setuptools]
include-package-data = true
zip-safe = false
platforms = ["any"]
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["tests*"]
[tool.setuptools.package-data]
"*" = [
"templates/",
"*.rst",
]
[tool.setuptools.exclude-package-data]
"*" = ["tests/"]
[tool.setuptools_scm]
write_to = "src/argus/version.py"
[tool.black]
line-length = 120
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.nox
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
| src/.*/migrations
)
'''
[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