Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion helm_sdkpy/_ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ def get_library():
try:
_library = ffi.dlopen(lib_path)
except OSError as e:
raise HelmLibraryNotFound(f"Failed to load helm_sdkpy library from {lib_path}: {e}") from e
raise HelmLibraryNotFound(
f"Failed to load helm_sdkpy library from {lib_path}: {e}"
) from e

return _library

Expand Down
8 changes: 6 additions & 2 deletions helm_sdkpy/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ def _chart():
result_json = ffi.new("char **")
path_cstr = ffi.new("char[]", chart_path.encode("utf-8"))

result = self._lib.helm_sdkpy_show_chart(self.config._handle_value, path_cstr, result_json)
result = self._lib.helm_sdkpy_show_chart(
self.config._handle_value, path_cstr, result_json
)

if result != 0:
check_error(result)
Expand Down Expand Up @@ -135,7 +137,9 @@ def _values():
result_json = ffi.new("char **")
path_cstr = ffi.new("char[]", chart_path.encode("utf-8"))

result = self._lib.helm_sdkpy_show_values(self.config._handle_value, path_cstr, result_json)
result = self._lib.helm_sdkpy_show_values(
self.config._handle_value, path_cstr, result_json
)

if result != 0:
check_error(result)
Expand Down
14 changes: 5 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "helm-sdkpy"
version = "0.0.3"
version = "0.0.4"
description = "Python bindings for Helm - The Kubernetes Package Manager"
readme = "README.md"
requires-python = ">=3.12"
Expand Down Expand Up @@ -54,10 +54,8 @@ dev = [

[tool.hatch.build.targets.wheel]
packages = ["helm_sdkpy"]
# Include binary artifacts (shared libraries)
artifacts = [
"helm_sdkpy/_lib/**/*",
]
# 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]
Expand All @@ -68,10 +66,8 @@ only-include = [
"README.md",
"LICENSE",
]
# Include binary files in sdist
artifacts = [
"helm_sdkpy/_lib/**/*",
]
# 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
Expand Down
1 change: 0 additions & 1 deletion tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

"""Basic tests for helm-sdkpy package."""


import helm_sdkpy


Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading