-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpyproject.toml
76 lines (63 loc) · 1.69 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
[project]
name = "logto"
version = "0.2.1"
description = "Logto Python SDK."
authors = [
{name = "Silverhand Inc.", email = "contact@silverhand.io"},
]
dependencies = [
"aiohttp<4.0.0,>=3.8.5",
"pydantic<3.0.0,>=2.1.1",
"pyjwt[crypto]<3.0.0,>=2.8.0",
]
requires-python = "<4.0,>=3.8"
readme = "README.md"
license = {text = "MIT"}
keywords = ["logto", "auth", "user", "authentication", "authorization"]
[project.urls]
homepage = "https://logto.io/"
repository = "https://github.com/logto-io/python"
documentation = "https://github.com/logto-io/python/tree/master/docs"
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.coverage.run]
branch = true
omit = ["*_test.py"]
source = ["logto"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
[tool.pydoc-markdown]
[[tool.pydoc-markdown.loaders]]
type = "python"
[tool.pydoc-markdown.renderer]
filename = "docs/api.md"
type = "markdown"
descriptive_class_title = false
render_toc = true
toc_maxdepth = 1
render_toc_title = "Logto Python SDK API reference"
[[tool.pydoc-markdown.processors]]
type = "filter"
expression = "not name.endswith('_test') and default()"
[tool.pdm]
distribution = true
[tool.pdm.scripts]
test = "pytest --cov --cov-report=term-missing"
flask = "flask --app samples.flask --debug run"
doc = "pydoc-markdown"
[tool.pdm.dev-dependencies]
dev = [
"flask[async]>=2.3.3",
"pytest>=7.4.4",
"pytest-cov>=4.1.0",
"python-dotenv>=1.0.1",
"black>=24.3.0",
"pytest-mock>=3.14.0",
"pytest-asyncio>=0.23.6",
"pydoc-markdown>=4.8.2",
]
[tool.pdm.resolution]
excludes = ["black"] # pydoc-markdown requires black<24.0.0, but we need to upgrade it to >=24.3.0
[tool.pdm.build]
includes = []