Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
123 lines (109 loc) · 2.97 KB
/
Copy pathpyproject.toml
File metadata and controls
123 lines (109 loc) · 2.97 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
[build-system]
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "kaitencloud"
dynamic = ["version"]
description = "Official Python SDK for Kaiten: customers, instances, licenses, entitlements, usage metering, feature flags and the Platform API."
readme = "README.md"
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE"]
authors = [{ name = "KAITEN INC", email = "support@kaiten.sh" }]
requires-python = ">=3.10"
dependencies = [
"httpx>=0.27,<1",
"pydantic>=2.11,<3",
"typing-extensions>=4.12.2",
]
keywords = [
"kaiten",
"saas",
"entitlements",
"licensing",
"usage-metering",
"feature-flags",
"openfeature",
"sdk",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Software Development :: Libraries :: Python Modules",
"Typing :: Typed",
]
[project.urls]
Homepage = "https://kaiten.sh"
Documentation = "https://docs.kaiten.sh"
Repository = "https://github.com/kaitencloud/sdk-python"
Issues = "https://github.com/kaitencloud/sdk-python/issues"
Changelog = "https://github.com/kaitencloud/sdk-python/blob/main/CHANGELOG.md"
[dependency-groups]
dev = [
"anyio>=4.6",
"jsonschema>=4.23",
"mypy>=2.3",
"openfeature-provider-ofrep>=0.3.0",
"pytest>=9.0",
"pytest-cov>=7.0",
"pyyaml>=6.0",
"ruff>=0.16",
"types-jsonschema>=4.23",
"types-pyyaml>=6.0",
]
[tool.hatch.version]
path = "src/kaitencloud/_version.py"
[tool.hatch.build.targets.wheel]
packages = ["src/kaitencloud"]
[tool.hatch.build.targets.sdist]
include = [
"/src",
"/examples",
"/tests",
"/openapi",
"/scripts",
"/README.md",
"/CHANGELOG.md",
"/LICENSE",
"/NOTICE",
]
[tool.ruff]
line-length = 100
target-version = "py310"
[tool.ruff.lint]
select = ["B", "C4", "E", "F", "I", "N", "PIE", "PT", "RET", "RUF", "SIM", "UP", "W"]
ignore = [
# Docstrings and contract descriptions run long; the formatter owns code width.
"E501",
]
[tool.ruff.lint.isort]
known-first-party = ["kaitencloud"]
[tool.mypy]
python_version = "3.10"
strict = true
warn_unreachable = true
files = ["src/kaitencloud", "examples"]
plugins = ["pydantic.mypy"]
[tool.pydantic-mypy]
init_typed = true
warn_required_dynamic_aliases = true
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = ["-ra", "--strict-markers", "--strict-config"]
xfail_strict = true
filterwarnings = ["error"]
[tool.coverage.run]
branch = true
source = ["kaitencloud"]
[tool.coverage.report]
show_missing = true
skip_covered = true
exclude_also = ["if TYPE_CHECKING:", "@overload"]