Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (141 loc) · 3.71 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (141 loc) · 3.71 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
[build-system]
requires = ["uv_build>=0.13.5,<0.14"]
build-backend = "uv_build"
[project]
name = "pytest-iam"
version = "0.4.0"
description = "A fully functional OAuth2 / OpenID Connect (OIDC) / SCIM server to be used in your test suite"
authors = [{name="Yaal Coop", email="contact@yaal.coop"}]
license = "MIT"
license-files = ["LICENSE.md"]
readme = "README.md"
keywords = ["oidc", "oauth", "oauth2", "openid", "identity", "pytest", "unit tests", "iam", "scim"]
classifiers = [
"Intended Audience :: Developers",
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Programming Language :: Python :: Implementation :: CPython",
"Environment :: Web Environment",
"Programming Language :: Python",
"Operating System :: OS Independent",
"Framework :: Pytest",
"Typing :: Typed",
]
requires-python = ">=3.11"
dependencies = [
"blinker>=1.9.0",
"canaille[oidc]>=0.4.1",
"httpx2>=2.13.1",
"portpicker>=1.6.0",
"pytest>=7.0.0",
"faker>=38.2.0",
]
[project.optional-dependencies]
scim = [
"canaille[oidc,scim]>=0.4.1",
]
[project.urls]
repository = "https://github.com/pytest-dev/pytest-iam"
documentation = "https://pytest-iam.readthedocs.io/en/latest/"
changelog = "https://github.com/pytest-dev/pytest-iam/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"authlib>=1.2.1",
"canaille[oidc,scim]>=0.4.1",
"mypy>=2.4.0",
"prek>=0.1.3",
"pytest-cov>=6.0.0",
"requests>=2.31.0",
"scim2-client>=0.13.2",
"scim2-models>=0.12.3",
"tox-uv>=1.16.0",
"types-portpicker>=1.6.0.20260508",
]
doc = [
"myst-parser>=3.0.0",
"shibuya>=2024.7.13",
"sphinx>=7.0.0",
"sphinx-issues>=4.0.0",
]
[project.entry-points."pytest11"]
iam = "pytest_iam"
[tool.uv.build-backend]
source-include = ["tests/**", "CHANGELOG.md"]
[tool.mypy]
strict = true
files = ["src/pytest_iam"]
[[tool.mypy.overrides]]
module = ["canaille", "canaille.*"]
ignore_missing_imports = true
[tool.ruff.lint]
select = [
"B", # flake8-bugbear
"D", # pydocstyle
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"UP", # pyupgrade
]
ignore = [
"E501", # line-too-long
"E722", # bare-except
"D100", # public module
"D101", # public class
"D102", # public method
"D103", # public function
"D104", # public package
"D105", # magic method
"D106", # nested class
"D107", # public init
"D203", # no-blank-line-before-class
"D213", # multi-line-summary-second-line
]
[tool.ruff.lint.isort]
force-single-line = true
[tool.ruff.format]
docstring-code-format = true
[tool.tox]
requires = ["tox>=4.19"]
env_list = [
"doc",
"style",
"typing",
"py311",
"py312",
"py313",
"py314",
"py315",
"minversions",
]
[tool.tox.env_run_base]
runner = "uv-venv-lock-runner"
with_dev = true
commands = [
["pytest", "--showlocals", "--full-trace", "{posargs}"],
]
[tool.tox.env.style]
runner = "uv-venv-runner"
skip_install = true
deps = ["prek"]
commands = [
["prek", "run", "--all-files", "--show-diff-on-failure"],
]
[tool.tox.env.typing]
commands = [
["mypy"],
]
[tool.tox.env.minversions]
base_python = ["python3.11"]
runner = "uv-venv-runner"
dependency_groups = ["dev"]
uv_resolution = "lowest-direct"
[tool.tox.env.doc]
dependency_groups = ["doc"]
commands = [
["sphinx-build", "--fail-on-warning", "--keep-going", "--nitpicky", "--builder", "html", "doc", "build/sphinx/html"],
["sphinx-build", "--fail-on-warning", "--keep-going", "--nitpicky", "--builder", "man", "doc", "build/sphinx/html"],
]