-
Notifications
You must be signed in to change notification settings - Fork 17
/
pyproject.toml
270 lines (241 loc) · 5.41 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
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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pas.plugins.authomatic"
dynamic = ["version"]
description = "Provides OAuth2/OpenID login for Plone using Authomatic."
readme = "README.md"
license = {text = "GNU General Public License v2 (GPLv2)"}
requires-python = ">=3.11"
authors = [
{ name = "Jens Klein", email = "[email protected]" },
{ name = "Érico Andrei", email = "[email protected]" },
{ name = "Matthias Dollfuss" },
]
keywords = [
"Authentication",
"OAuth",
"PAS",
"Plone",
"Python",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Framework :: Plone",
"Framework :: Plone :: 6.0",
"Framework :: Plone :: 6.1",
"Framework :: Plone :: Addon",
"Framework :: Zope",
"Framework :: Zope :: 5",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
dependencies = [
"authomatic>=1.3.0",
"plone.restapi",
"Products.CMFPlone>=6.0",
]
[project.optional-dependencies]
test = [
"collective.MockMailHost",
"plone.app.robotframework[debug]",
"plone.app.testing",
"plone.restapi[test]",
"zest.releaser[recommended]",
]
[project.urls]
Changelog = "https://github.com/collective/pas.plugins.authomatic/blob/main/CHANGELOG.md"
Homepage = "https://github.com/collective/pas.plugins.authomatic"
Issues = "https://github.com/collective/pas.plugins.authomatic/issues"
Repository = "https://github.com/collective/pas.plugins.authomatic/"
[project.entry-points."z3c.autoinclude.plugin"]
target = "plone"
[tool.hatch.version]
path = "src/pas/plugins/authomatic/about.py"
[tool.hatch.build]
strict-naming = false
packages = ["src/pas","src/pas/plugins"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
]
[tool.hatch.env]
requires = [
"hatch-pip-compile"
]
[tool.hatch.envs.default]
type = "pip-compile"
path = ".venv"
pip-compile-resolver = "uv"
pip-compile-installer = "uv"
lock-filename = "requirements.lock"
pip-compile-args = [
"--constraint",
"constraints-mxdev.txt",
]
dependencies = [
"hatch",
"hatchling",
"i18ndude",
"isort",
"plone.app.testing",
"plone.app.upgrade",
"plone.restapi[test]",
"pytest-cov==5.0.0",
"pytest-plone>=0.5.0",
"pytest",
"ruff",
"towncrier==23.11.0",
"zpretty",
"zest.releaser[recommended]",
]
[tool.hatch.envs.default.scripts]
test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
]
cov = [
"test-cov",
"cov-report",
]
zpretty_lint = [
"find src -name '*.xml'|xargs zpretty -x --check",
"find src -name '*.zcml'|xargs zpretty -z --check",
]
zpretty_format = [
"find src -name '*.xml'|xargs zpretty -x -i",
"find src -name '*.zcml'|xargs zpretty -z -i",
]
lint = [
"ruff check",
"isort --check-only src/ tests/",
"zpretty_lint"
]
format = [
"ruff format",
"isort src/ tests/",
"zpretty_format"
]
i18n = [
"python -m pas.plugins.authomatic.locales.update"
]
changelog-draft = "towncrier --draft"
[[tool.hatch.envs.all.matrix]]
python = ["3.11", "3.12"]
[tool.coverage.run]
source_pkgs = ["pas.plugins.authomatic", "tests"]
branch = true
parallel = true
omit = [
"pas/plugins/authomatic/locales/__init__.py",
"pas/plugins/authomatic/locales/update.py",
]
[tool.coverage.paths]
pas.plugins.authomatic = ["src/pas/plugins/authomatic"]
tests = ["tests",]
[tool.coverage.report]
skip_empty = true
show_missing = true
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
[tool.isort]
profile = "plone"
[tool.towncrier]
package = "pas.plugins.authomatic"
package_dir = "src"
directory = "news/"
filename = "CHANGES.md"
start_string = "<!-- towncrier release notes start -->\n"
title_format = "## {version} ({project_date})"
template = "news/.changelog_template.jinja"
underlines = ["", "", ""]
[[tool.towncrier.type]]
directory = "breaking"
name = "Breaking changes:"
showcontent = true
[[tool.towncrier.type]]
directory = "feature"
name = "New features:"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Bug fixes:"
showcontent = true
[[tool.towncrier.type]]
directory = "internal"
name = "Internal:"
showcontent = true
[[tool.towncrier.type]]
directory = "documentation"
name = "Documentation:"
showcontent = true
[[tool.towncrier.type]]
directory = "tests"
name = "Tests"
showcontent = true
[tool.ruff]
target-version = "py311"
line-length = 88
fix = true
lint.select = [
# flake8-2020
"YTT",
# flake8-bandit
"S",
# flake8-bugbear
"B",
# flake8-builtins
"A",
# flake8-comprehensions
"C4",
# flake8-debugger
"T10",
# flake8-simplify
"SIM",
# mccabe
"C90",
# pycodestyle
"E", "W",
# pyflakes
"F",
# pygrep-hooks
"PGH",
# pyupgrade
"UP",
# ruff
"RUF",
]
lint.ignore = [
# DoNotAssignLambda
"E731",
"S602",
"SIM102",
"S314",
"S324"
]
[tool.ruff.format]
preview = true
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101"]
[tool.codespell]
ignore-words-list = "discreet,vew"
skip = "*.po,*.min.js"
[tool.check-manifest]
ignore = [
".editorconfig",
".flake8",
"dependabot.yml",
"mx.ini",
]