diff --git a/helm_sdkpy/_ffi.py b/helm_sdkpy/_ffi.py index 7629e96..24a60c9 100644 --- a/helm_sdkpy/_ffi.py +++ b/helm_sdkpy/_ffi.py @@ -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 diff --git a/helm_sdkpy/chart.py b/helm_sdkpy/chart.py index bb80d70..055a072 100644 --- a/helm_sdkpy/chart.py +++ b/helm_sdkpy/chart.py @@ -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) @@ -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) diff --git a/pyproject.toml b/pyproject.toml index d9bb0d2..2c32770 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" @@ -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] @@ -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 diff --git a/tests/test_basic.py b/tests/test_basic.py index 3ff3630..8674908 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -14,7 +14,6 @@ """Basic tests for helm-sdkpy package.""" - import helm_sdkpy diff --git a/uv.lock b/uv.lock index 00fbf20..01a4173 100644 --- a/uv.lock +++ b/uv.lock @@ -153,7 +153,7 @@ wheels = [ [[package]] name = "helm-sdkpy" -version = "0.0.3" +version = "0.0.4" source = { editable = "." } dependencies = [ { name = "cffi" },