forked from pretalx/pretalx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
234 lines (215 loc) · 5.99 KB
/
pyproject.toml
File metadata and controls
234 lines (215 loc) · 5.99 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
231
232
233
234
# SPDX-FileCopyrightText: 2023-present Tobias Kunze
# SPDX-License-Identifier: Apache-2.0
[project]
name = "pretalx"
dynamic = ["version"]
description = "Conference organisation: CfPs, scheduling, much more"
readme = "README.rst"
license = "AGPL-3.0-only"
# SHOULD be the following, but Python does not support SPDX v3 (yet?)
#license = "AGPL-3.0-only WITH AdditionRef-Pretalx-AGPL-3.0-Terms"
license-files = ["LICENSE"]
requires-python = ">=3.12"
keywords = ["conference", "event", "schedule", "talk", "cfp"]
authors = [
{name = "Tobias Kunze", email = "r@rixx.de"},
]
maintainers = [
{name = "Tobias Kunze", email = "r@rixx.de"},
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Django :: 6.0",
"Intended Audience :: Developers",
"Intended Audience :: Other Audience",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
]
dependencies = [
"beautifulsoup4[lxml]~=4.14.0",
"bleach~=6.3.0",
"celery~=5.6.0",
"css_inline~=0.20.0",
"cssutils~=2.11.0",
"defusedcsv~=3.0.0",
"defusedxml~=0.7.0",
"diff-match-patch==20241021",
"Django[argon2]~=6.0.0",
"django-context-decorator",
"django-csp~=4.0.0",
"django-filter==25.2",
"django-formtools~=2.5.1",
"django-hierarkey~=2.0.1",
"django-i18nfield~=1.11.0",
"django-minify-html~=1.14.0",
"django-scopes~=2.0.0",
"django-tables2~=2.8.0",
"djangorestframework~=3.16.0",
"drf-flex-fields~=1.0.0",
"Markdown~=3.10.0",
"Pillow~=12.1.0",
"publicsuffixlist~=1.0.0",
"python-dateutil~=2.9.0",
"qrcode~=8.0",
"reportlab~=4.4.0",
"requests~=2.32.0",
"rules~=3.5.0",
"urlman~=2.0.1",
"vobject~=0.9.0",
"whitenoise[brotli]~=6.11.0",
"zxcvbn~=4.5.0",
]
[project.optional-dependencies]
dev = [
"build",
"check-manifest",
"coverage",
"django-watchfiles",
"djhtml",
"drf-spectacular",
"freezegun",
"jsonschema",
"polib",
"pytest",
"pytest-cov",
"pytest-django",
"pytest-mock",
"pytest-sugar",
"pytest-xdist",
"responses",
"ruff",
"twine",
"urllib3",
]
devdocs = [
"drf-spectacular",
"sphinx",
"sphinx-autobuild",
"sphinx-autodoc-typehints",
"sphinx-copybutton",
"sphinxcontrib-django",
"sphinxcontrib-httpdomain",
"sphinxcontrib-spelling",
]
postgres = ["psycopg2-binary~=2.9.0"]
redis = ["redis~=7.1.0"]
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools", "wheel"]
[project.urls]
Homepage = "https://pretalx.com"
Documentation = "https://docs.pretalx.org"
Repository = "https://github.com/pretalx/pretalx"
Changelog = "https://docs.pretalx.org/changelog/"
Issues = "https://github.com/pretalx/pretalx/issues"
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
version = {attr = "pretalx.__version__"}
[tool.setuptools.packages.find]
where = ["src"]
include = ["pretalx*"]
exclude = ["pretalx/frontend/node_modules"]
[tool.check-manifest]
ignore = [
".*",
"assets/*",
"CODE_OF_CONDUCT.md",
"CONTRIBUTORS",
"docs/*",
"src/local/*",
"src/tests",
"src/tests/*",
"SECURITY.md",
]
[tool.pytest.ini_options]
DJANGO_SETTINGS_MODULE = "pretalx.common.settings.test_settings"
testpaths = "src/tests"
pythonpath = "src"
filterwarnings = [
# We can ignore this one, as it's just about trying to parse the XML output while exporting the schedule
"ignore:It looks like you're parsing an XML document using an HTML parser.::pretalx.agenda.management.commands.export_schedule:",
# This warning *should* get suppressed via our own settings anyway …
"ignore:Cache key contains characters that will cause errors if used with memcached::django.core.cache.backends.base:"
]
addopts = "-p no:doctest -p no:pastebin -p no:nose"
[tool.coverage.run]
branch = true
omit = [
"*/__init__.py",
"*/__main__.py",
"*/admin.py",
"*/celery_app.py",
"*/legacy.py",
"*/local/*",
"*/manage.py",
"*/migrations/*",
"*/screenshots/*",
"*/settings*",
"*/test_settings*",
"*/urls.py",
"*/wsgi.py",
]
relative_files = true
[tool.coverage.report]
exclude_also = [
"def __repr__",
"def __str__",
"if settings.DEBUG",
"NOQA",
"noqa",
"NotImplementedError",
]
[tool.ruff.format]
skip-magic-trailing-comma = true
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"ANN", # We do not do annotations
"ARG", # Unused method arguments are often ok
"C901", # We do do complexity
"COM812", # Trailing commas are formatter territory
"D", # We do not enforce docstyles
"DJ001", # We live in a state of sin
"E501", # Long lines are formatter territory
"EM", # Formatting strings is fine, actually
"FBT", # Booleans are fine, actually
"FIX", # TODO comments are fine, actually
"PLR", # Refactoring: Too many branches, arguments, statements, etc
"RET502", # Just returning is fine, actually
"RET503", # Just not returning is fine, actually
"RUF012", # Mutable default in class attribute is just how django rolls
"RUF100", # Unused noqa; problematic when run in isolation
"TRY003", # Error messages are fine, actually
]
allowed-confusables = ["–", "’", "×"]
[tool.ruff.lint.per-file-ignores]
"src/tests/**.py" = [
"DTZ", # TODO: do not use naive datetimes in tests
"RUF", # Ignore ambiguous characters in tests, may be security tests
"S", # Tests do not need cryptographic randomness and other security features
"S101", # Ignore `assert` rules in tests
"SLF001", # TODO: remove SLF001, fix private access
"TRY", # Exception handling is special in tests
]
[tool.ruff.lint.flake8-pytest-style]
parametrize-values-type = "tuple"
[tool.ruff.lint.flake8-self]
extend-ignore-names = ["_base_manager", "_default_manager", "_meta"]
[tool.ruff.lint.isort]
split-on-trailing-comma = false
[tool.ruff.lint.pep8-naming]
extend-ignore-names = [
"allDay",
"api_urls",
"EventSettings",
"extendMarkdown",
"get_allDay",
"orga_urls",
"SendMailException",
"setUpTestData",
"urls",
]