Skip to content

Commit bf44e4d

Browse files
committed
fix: include go libs
These changes include the gl libs in the built wheel.
1 parent dc5472e commit bf44e4d

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

helm_sdkpy/_ffi.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ def get_library():
186186
try:
187187
_library = ffi.dlopen(lib_path)
188188
except OSError as e:
189-
raise HelmLibraryNotFound(f"Failed to load helm_sdkpy library from {lib_path}: {e}") from e
189+
raise HelmLibraryNotFound(
190+
f"Failed to load helm_sdkpy library from {lib_path}: {e}"
191+
) from e
190192

191193
return _library
192194

helm_sdkpy/chart.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ def _chart():
106106
result_json = ffi.new("char **")
107107
path_cstr = ffi.new("char[]", chart_path.encode("utf-8"))
108108

109-
result = self._lib.helm_sdkpy_show_chart(self.config._handle_value, path_cstr, result_json)
109+
result = self._lib.helm_sdkpy_show_chart(
110+
self.config._handle_value, path_cstr, result_json
111+
)
110112

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

138-
result = self._lib.helm_sdkpy_show_values(self.config._handle_value, path_cstr, result_json)
140+
result = self._lib.helm_sdkpy_show_values(
141+
self.config._handle_value, path_cstr, result_json
142+
)
139143

140144
if result != 0:
141145
check_error(result)

pyproject.toml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "helm-sdkpy"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
description = "Python bindings for Helm - The Kubernetes Package Manager"
55
readme = "README.md"
66
requires-python = ">=3.12"
@@ -54,10 +54,8 @@ dev = [
5454

5555
[tool.hatch.build.targets.wheel]
5656
packages = ["helm_sdkpy"]
57-
# Include binary artifacts (shared libraries)
58-
artifacts = [
59-
"helm_sdkpy/_lib/**/*",
60-
]
57+
# Force include binary artifacts (shared libraries) even if not in git
58+
force-include = { "helm_sdkpy/_lib" = "helm_sdkpy/_lib" }
6159

6260
# Source distribution - mirror wheel contents plus build requirements
6361
[tool.hatch.build.targets.sdist]
@@ -68,10 +66,8 @@ only-include = [
6866
"README.md",
6967
"LICENSE",
7068
]
71-
# Include binary files in sdist
72-
artifacts = [
73-
"helm_sdkpy/_lib/**/*",
74-
]
69+
# Force include binary files in sdist even if not in git
70+
force-include = { "helm_sdkpy/_lib" = "helm_sdkpy/_lib" }
7571

7672
[tool.hatch.metadata]
7773
allow-direct-references = true

tests/test_basic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

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

17-
1817
import helm_sdkpy
1918

2019

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)