-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathpyproject.toml
106 lines (90 loc) · 2.71 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
[project]
name = "cerbos"
description = "SDK for working with Cerbos: an open core, language-agnostic, scalable authorization solution"
readme = "README.md"
license = { text = "Apache-2.0" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Security",
"Topic :: Software Development :: Libraries",
]
dependencies = [
"dataclasses-json>=0.5.7",
"requests-toolbelt>=0.9.1",
"httpx[http2]>=0.22.0",
"anyio>=3.6.1",
"tenacity>=8.1.0",
"grpcio-tools>=1.54.2",
"types-protobuf>=4.24.0.1",
"protoc-gen-openapiv2>=0.0.1",
"googleapis-common-protos>=1.62.0",
]
requires-python = ">=3.8"
dynamic = ["version"]
[project.urls]
Homepage = "https://cerbos.dev"
[project.optional-dependencies]
testcontainers = ["testcontainers>=3.5.3"]
[tool.pdm.version]
source = "scm"
[tool.pdm.dev-dependencies]
lint = ["black>=22.3.0", "isort>=5.10.1"]
test = ["pytest>=7.3.1"]
tools = [
"unasync>=0.5.0",
"setuptools>=63.2.0",
"commitizen>=3.2.2",
"ptpython>=3.0.23",
"pyyaml>=6.0.1",
]
[tool.pdm.build]
includes = ["cerbos/", "google/", "buf/"]
[tool.pdm.scripts]
isort = { cmd = "isort cerbos/sdk tests" }
black = { cmd = "black cerbos/sdk tests" }
format = { composite = ["isort", "black"] }
unasync = { cmd = "python utils/gen_unasync.py" }
test = { cmd = "pytest" }
pre_build = { composite = ["unasync", "format"] }
pre_test = { composite = ["unasync", "format"] }
[build-system]
requires = ["pdm-backend"]
build-backend = "pdm.backend"
[tool.pyprojectx]
pdm = "pdm"
black = "black"
isort = "isort"
twine = "twine"
cz = "cz"
[tool.pyprojectx.aliases]
generate = "pdm run python utils/gen_unasync.py"
install = "pdm install"
run = "pdm run"
outdated = "pdm update --outdated"
pytest = "pdm run pytest tests"
test = "pw@generate && pw@pytest"
format = "pdm format"
test_upload = "twine upload -r testpypi dist/*"
tag_release = "pdm run cz bump --changelog --increment"
changelog = "pdm run cz changelog"
[tool.pyright]
venvPath = "."
venv = ".venv"
extraPaths = ["__pypackages__/3.10/lib/"]
[tool.pytest.ini_options]
log_cli = true
log_cli_level = "INFO"
[tool.isort]
profile = 'black'
[tool.commitizen]
name = "cz_customize"
version_provider = "scm"
tag_format = "v$major.$minor.$patch$prerelease"
annotated_tag = true
update_changelog_on_bump = true
[tool.commitizen.customize]
commit_parser = "^(?P<change_type>feat|fix|enhancement|docs|chore)(\\\\(.*?\\\\))?:\\s(?P<message>.*)?"
change_type_map = { "feat" = "Features", "fix" = "Bug fixes", "enhancement" = "Enhancements", "docs" = "Documentation", "chore" = "Chores" }
change_type_order = ["feat", "enhancement", "fix", "docs"]