forked from Stormbase/django-otp-webauthn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
126 lines (114 loc) · 3.49 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "django-otp-webauthn"
dynamic = ["version"]
readme = "README.md"
description = "FIDO2 WebAuthn support for django-otp: lets your users authenticate with Passkeys"
requires-python = ">=3.9"
license = "BSD-3-Clause"
keywords = ["django", "django-otp", "webauthn", "fido2", "u2f", "security", "mfa", "authentication"]
authors = [{ name = "Storm B. Heg", email = "storm@stormbase.digital" }]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Intended Audience :: Developers",
"License :: OSI Approved :: BSD License",
"Topic :: Security",
"Topic :: Communications :: FIDO",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Framework :: Django",
"Framework :: Django :: 4.2",
"Framework :: Django :: 5.0",
]
dependencies = [
"django>=4.2",
"django-otp>=1.4,<2.0",
"djangorestframework>=3.14",
"webauthn>=2.1.0,<3",
]
[project.urls]
# TODO: documentation link
# Documentation = "https://github.com/Stormbase/django-otp-webauthn/"
Changelog = "https://github.com/Stormbase/django-otp-webauthn/blob/main/CHANGELOG.md"
Issues = "https://github.com/Stormbase/django-otp-webauthn/issues"
Source = "https://github.com/Stormbase/django-otp-webauthn"
[tool.hatch.version]
path = "src/django_otp_webauthn/__init__.py"
[tool.hatch.build.targets.wheel]
artifacts = [
# Include built static files that are gitignored and thus not included by default
"src/django_otp_webauthn/static/django_otp_webauthn/*",
# Include compiled translations that are gitignored and thus not included by default
"src/django_otp_webauthn/locale/*/LC_MESSAGES/*.mo",
]
[tool.hatch.build.targets.sdist]
artifacts = [
# Include built static files that are gitignored and thus not included by default
"src/django_otp_webauthn/static/django_otp_webauthn/*",
# Include compiled translations that are gitignored and thus not included by default
"src/django_otp_webauthn/locale/*/LC_MESSAGES/*.mo",
"sandbox/locale/*/LC_MESSAGES/*.mo",
]
# Manually specify what to include, otherwise it becomes a mess
include = [
"src/django_otp_webauthn",
"sandbox/",
"client/",
"tests/",
"update_translations.sh",
"compile_translations.sh",
"README.md",
"LICENSE",
"CHANGELOG.md",
"CONTRIBUTORS.md",
"SECURITY.md",
"pyproject.toml",
]
[tool.hatch.envs.default]
dependencies = [
"django-debug-toolbar>4,<5",
"dj-database-url>=2.1.0,<3",
"psycopg>=2.9",
"django-csp>=3.8,<4",
]
[tool.hatch.envs.hatch-static-analysis]
dependencies = [
# Update as necessary, prevent sudden breakage
"ruff>0.4,<0.5",
"isort>5,<6",
]
[tool.ruff]
target-version = "py39" # minimum target version
[tool.ruff.lint]
# E501: Line too long
ignore = ["E501"]
select = [
"E", # pycodestyle errors
"F", # pyflakes
"I", # isort
"T20", # flake8-print
"BLE", # flake8-blind-except
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
[tool.isort]
force_grid_wrap = 0
include_trailing_comma = true
line_length = 88
multi_line_output = 3
use_parentheses = true
[tool.coverage.run]
source_pkgs = ["django_otp_webauthn", "tests"]
branch = true
parallel = true
omit = []
[tool.coverage.report]
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]