From a30986d7cd97344bcd13408d736c99e440fba026 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 12 Jan 2025 21:16:10 -0500 Subject: [PATCH 1/2] Force include binaries --- hatch_cpp/plugin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hatch_cpp/plugin.py b/hatch_cpp/plugin.py index 7fcbfbf..4166551 100644 --- a/hatch_cpp/plugin.py +++ b/hatch_cpp/plugin.py @@ -80,3 +80,11 @@ def initialize(self, version: str, build_data: dict[str, t.Any]) -> None: # Perform any cleanup actions build_plan.cleanup() + + # force include libraries + for library in libraries: + if build_plan.platform.platform == "win32": + suffix = "dll" + else: + suffix = "so" + build_data["force_include"][f"{library.name}.{suffix}"] = f"{library.name}.{suffix}" From 27d4793ccc10029d3dddc7569e54afbaee7d1051 Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sun, 12 Jan 2025 21:19:43 -0500 Subject: [PATCH 2/2] =?UTF-8?q?Bump=20version:=200.1.3=20=E2=86=92=200.1.4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hatch_cpp/__init__.py | 2 +- pyproject.toml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hatch_cpp/__init__.py b/hatch_cpp/__init__.py index 6ec6cb1..7b0b672 100644 --- a/hatch_cpp/__init__.py +++ b/hatch_cpp/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1.3" +__version__ = "0.1.4" from .hooks import hatch_register_build_hook from .plugin import HatchCppBuildHook diff --git a/pyproject.toml b/pyproject.toml index a49115b..4e90653 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -8,7 +8,7 @@ authors = [{name = "the hatch-cpp authors", email = "t.paine154@gmail.com"}] description = "Hatch plugin for C++ builds" readme = "README.md" license = { text = "Apache-2.0" } -version = "0.1.3" +version = "0.1.4" requires-python = ">=3.9" keywords = [ "hatch", @@ -62,7 +62,7 @@ Repository = "https://github.com/python-project-templates/hatch-cpp" Homepage = "https://github.com/python-project-templates/hatch-cpp" [tool.bumpversion] -current_version = "0.1.3" +current_version = "0.1.4" commit = true tag = false