Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (127 loc) · 4.02 KB
/
Copy pathpyproject.toml
File metadata and controls
146 lines (127 loc) · 4.02 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
[project]
name = "keycardai-temporal"
dynamic = ["version"]
description = "Temporal integration for Keycard: per-call token minting for activities, with nothing in workflow history"
readme = "README.md"
requires-python = ">=3.10"
license = { text = "MIT" }
authors = [{ name = "Keycard", email = "support@keycard.ai" }]
dependencies = [
"keycardai-oauth>=0.30.0",
"temporalio>=1.32.0",
]
keywords = ["temporal", "workflows", "activities", "oauth", "token-exchange", "authentication", "keycard"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: OS Independent",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Security",
"License :: OSI Approved :: MIT License",
]
[project.optional-dependencies]
openai-agents = [
"openai-agents>=0.20.0",
"openai>=2.45.0",
]
test = [
"pytest>=8.4.1",
"pytest-asyncio>=1.1.0",
]
[project.urls]
Homepage = "https://github.com/keycardai/python-sdk"
Repository = "https://github.com/keycardai/python-sdk"
Documentation = "https://docs.keycardai.com"
Issues = "https://github.com/keycardai/python-sdk/issues"
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
vcs = "git"
pattern = "(?P<base>\\d+\\.\\d+\\.\\d+)-keycardai-temporal"
style = "pep440"
[[tool.uv.index]]
name = "testpypi"
url = "https://test.pypi.org/simple/"
publish-url = "https://test.pypi.org/legacy/"
explicit = true
[tool.hatch.build.targets.wheel]
packages = ["src/keycardai"]
[tool.ruff]
line-length = 88
target-version = "py310"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, we'll handle case by case
]
isort = { combine-as-imports = true, known-first-party = ["keycardai"] }
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = ["T20"]
[tool.mypy]
strict = true
disallow_incomplete_defs = false
disallow_untyped_defs = false
disallow_untyped_calls = false
[[tool.mypy.overrides]]
module = "tests.*"
disallow_untyped_defs = false
[tool.coverage.run]
source = ["tests", "src/keycardai"]
[tool.coverage.report]
show_missing = true
exclude_also = [
"pragma: no cover",
"if TYPE_CHECKING:",
"@abc.abstractmethod",
"raise NotImplementedError",
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra -q"
asyncio_mode = "auto"
[tool.commitizen]
name = "cz_customize"
version = "0.8.0"
tag_format = "${version}-keycardai-temporal"
# Ignores sibling packages' tags only; it must not match this package's own tag, because commitizen applies ignored formats before tag_format.
ignored_tag_formats = ["${version}-keycardai-(?!temporal$).*"]
update_changelog_on_bump = true
bump_message = "bump: keycardai-temporal $current_version → $new_version"
major_version_zero = true
[tool.commitizen.customize]
# Scoped bump detection: without bump_pattern/bump_map commitizen falls back to
# its default classifier, which matches any `feat(...)!:` regardless of scope.
changelog_pattern = "^(feat|fix|refactor|perf|test|revert)\\(keycardai-temporal\\)(!)?:"
bump_pattern = "^((?:feat|fix|refactor|perf|revert|BREAKING[\\- ]CHANGE)\\(keycardai-temporal\\)!?):"
[tool.commitizen.customize.bump_map]
"^.+\\(keycardai-temporal\\)!$" = "MAJOR"
"^BREAKING[\\- ]CHANGE" = "MAJOR"
"^feat" = "MINOR"
"^fix" = "PATCH"
"^refactor" = "PATCH"
"^perf" = "PATCH"
"^revert" = "PATCH"
[tool.commitizen.customize.bump_map_major_version_zero]
"^.+\\(keycardai-temporal\\)!$" = "MINOR"
"^BREAKING[\\- ]CHANGE" = "MINOR"
"^feat" = "MINOR"
"^fix" = "PATCH"
"^refactor" = "PATCH"
"^perf" = "PATCH"
"^revert" = "PATCH"