-
-
Notifications
You must be signed in to change notification settings - Fork 215
Expand file tree
/
Copy pathpyproject.toml
More file actions
217 lines (198 loc) · 5.62 KB
/
Copy pathpyproject.toml
File metadata and controls
217 lines (198 loc) · 5.62 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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[project]
name = "kapitan"
dynamic = ["version"]
description = "Generic templated configuration management for Kubernetes, Terraform and other things"
authors = [
{ name = "Ricardo Amaro", email = "ramaro@kapicorp.com" },
]
requires-python = ">=3.10,<3.15"
readme = "README.md"
license = "Apache-2.0"
keywords = [
"jsonnet",
"kubernetes",
"reclass",
"jinja",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"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",
]
dependencies = [
"addict>=2.4.0,<3",
"jinja2>=3.0.1,<4",
"jsonnet>=0.21.0,<0.22",
"jsonschema>=4.17.3,<5",
"pyyaml~=6.0",
"requests>=2.28.2,<3",
"toml>=0.10.2,<0.11",
"yamllint>=1.29.0,<2",
# Data validation and configuration
"pydantic>=2.8.2,<3",
"pydantic-settings>=2.4.0,<3",
"python-box>=7.2.0,<8",
"jsonpath-ng>=1.7.0,<2",
# Inventory backends
"kapicorp-reclass>=2.0.0",
# optional: omegaconf
# optional: reclass
# Input types
# optional: gojsonnet
"kadet>=0.3.0,<0.4",
"copier>=9.3.1,<10",
# Cloud and secrets management
"azure-keyvault-keys>=4.7.0,<5",
"azure-identity>=1.12.0,<2",
"boto3>=1.18.17,<2",
"google-api-python-client>=2.15.0,<3",
"hvac==2.4.0",
"python-gnupg>=0.4.7,<0.6.0",
"cryptography>=3.4.7,<49.0.0",
# Git and file management
"gitpython>=3.1.30,<4",
"gitdb>=4.0.10,<5",
"filetype>=1.2.0,<2",
# Utilities
"certifi",
"packaging>=23,<26",
"regex>=2024.5.10,<2025",
"strenum>=0.4.15,<0.5 ; python_version ~= '3.10'",
"typing-extensions>=4.0.0,<5",
"cachetools (>=7.0.1,<8.0.0)",
]
[project.optional-dependencies]
gojsonnet = ["gojsonnet>=0.21.0,<0.22"]
omegaconf = ["omegaconf>=2.4.0.dev3,<3"]
reclass-rs = ["reclass-rs>=0.10.1,<0.11.0"]
oci = ["oras>=0.2.0"]
# Enables the rapidyaml (ryml) C++ YAML emitter via --yaml-use-rapidyaml.
# Several times faster than PyYAML on large manifests; safe to omit.
rapidyaml = ["rapidyaml>=0.12,<1"]
# CPU profiling. Memory profiling uses stdlib tracemalloc and needs no extras.
profile = ["pyinstrument>=4.6,<6"]
[project.urls]
Homepage = "https://kapitan.dev"
Repository = "https://github.com/kapicorp/kapitan"
Documentation = "https://kapitan.dev/"
[project.scripts]
kapitan = "kapitan.cli:main"
[dependency-groups]
test = [
"pytest>=8.2.0,<10",
"coverage>=7.6.1,<8",
"pytest-httpserver>=1.0.9,<2",
"pytest-md>=0.2.0,<0.3",
"pytest-emoji>=0.2.0,<0.3",
"pytest-cov>=3,<8",
"pytest-httpserver>=1.1.3",
"pytest-git >=1.8.0",
"pytest-random-order>=1.2.0",
"pytest-json-report>=1.5.0",
"pytest-xdist>=3.8.0",
"docker>=7.0.0,<8",
"oras>=0.2.0",
]
dev = [
# Tool configurations moved to ruff.toml for consistency
# See ruff.toml for linting and formatting configuration
"ruff>=0.8.6,<0.15.0",
"pre-commit>=4.3,<5.0",
"filelock>=3.20.1", # Security fix for CVE in versions < 3.20.1
]
docs = [
"markdown-include>=0.8.1,<0.9",
"mkdocs-material>=9.5.34,<10",
"mkdocs>=1.6.1,<2",
"pymdown-extensions>=10.21,<11",
"mike>=2.1.3,<3",
"mkdocs-material-extensions>=1.3.1,<2",
"markdown-exec[ansi]>=1.10.0,<2",
]
[tool.uv]
default-groups = [
"test",
"dev",
"docs",
]
cache-keys = [
{ file = "pyproject.toml" },
{ git = { tags = true } },
]
[tool.hatch.build.targets.wheel]
include = ["kapitan"]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
# NOTE: preview version with: uvx uv-dynamic-versioning
# https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/version_source.md#configuration
vcs = "git"
style = "pep440"
bump = true
# On tagged commits: produce the clean tag version (e.g. 0.35.1).
# On master merges: produce a PEP 440 dev pre-release (e.g. 0.35.2.dev3).
format-jinja = "{% if distance == 0 %}{{ serialize_pep440(base) }}{% else %}{{ serialize_pep440(base, dev=distance) }}{% endif %}"
# https://github.com/ninoseki/uv-dynamic-versioning/blob/main/docs/tips.md#dependabot
fallback-version = "0.0.0"
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
addopts = [
"-ra",
"--strict-markers",
"--strict-config",
"--cov=kapitan",
"--cov-branch",
# don't report when running pytest, get report with: uv run coverage report
"--cov-report=",
]
markers = [
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
"integration: marks tests as integration tests",
"unit: marks tests as unit tests",
]
filterwarnings = [
"ignore::DeprecationWarning",
"ignore::PendingDeprecationWarning",
"default::DeprecationWarning:kapitan",
]
[tool.coverage.run]
source = ["kapitan"]
branch = true
parallel = true
concurrency = ["multiprocessing"]
command_line = "-m pytest"
omit = [
"*/tests/*",
"*/test_*.py",
"*/conftest.py",
"*/__init__.py",
]
[tool.coverage.report]
precision = 2
fail_under = 72
show_missing = true
skip_covered = false
exclude_lines = [
"pragma: no cover",
"def __repr__",
"def __str__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"if typing.TYPE_CHECKING:",
"@abstractmethod",
"@abc.abstractmethod",
]
[tool.coverage.html]
directory = "htmlcov"