-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
106 lines (92 loc) · 2.34 KB
/
pyproject.toml
File metadata and controls
106 lines (92 loc) · 2.34 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
[project]
name = "helm-sdkpy"
version = "0.0.4"
description = "Python bindings for Helm - The Kubernetes Package Manager"
readme = "README.md"
requires-python = ">=3.12"
license = {text = "Apache-2.0"}
authors = [
{name = "VantageCompute"}
]
keywords = ["helm", "kubernetes", "k8s", "package-manager", "bindings"]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Systems Administration",
]
dependencies = [
"cffi>=1.15",
]
[project.optional-dependencies]
dev = [
# Testing
"coverage[toml] ~= 7.8",
"pytest ~= 8.3",
"pytest-mock ~= 3.14",
"pytest-order ~= 1.3",
"python-dotenv ~= 1.0",
# Linting
"ruff",
"codespell",
"pyright",
]
[tool.pytest.ini_options]
addopts = "-ra"
testpaths = ["tests"]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"codespell>=2.4.1",
"pyright>=1.1.406",
"pytest-cov>=7.0.0",
"ruff>=0.14.1",
]
[tool.hatch.build.targets.wheel]
packages = ["helm_sdkpy"]
# Force include binary artifacts (shared libraries) even if not in git
force-include = { "helm_sdkpy/_lib" = "helm_sdkpy/_lib" }
# Source distribution - mirror wheel contents plus build requirements
[tool.hatch.build.targets.sdist]
# Only include helm_sdkpy package (same as wheel) plus essential build files
only-include = [
"helm_sdkpy",
"pyproject.toml",
"README.md",
"LICENSE",
]
# Force include binary files in sdist even if not in git
force-include = { "helm_sdkpy/_lib" = "helm_sdkpy/_lib" }
[tool.hatch.metadata]
allow-direct-references = true
# Pyright configuration
[tool.pyright]
include = ["helm_sdkpy", "tests"]
exclude = ["examples", "build", "vendor"]
pythonVersion = "3.12"
[tool.ruff]
line-length = 100
target-version = "py312"
[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 (handled by formatter)
]
[tool.coverage.run]
source = ["helm_sdkpy"]
omit = ["*/tests/*", "*/test_*.py"]
[tool.coverage.report]
precision = 2
show_missing = true
skip_covered = false