From adae304cb8fad8118cc0a28c8cb2cb4c58fb85ef Mon Sep 17 00:00:00 2001 From: tnguyen3-godaddy Date: Mon, 29 Jul 2024 19:14:35 +0200 Subject: [PATCH 1/2] Add aarch64 --- cobhan/cobhan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cobhan/cobhan.py b/cobhan/cobhan.py index 8968b29..e638e95 100644 --- a/cobhan/cobhan.py +++ b/cobhan/cobhan.py @@ -71,10 +71,10 @@ def load_library( machine = platform.machine() if machine in ("x86_64", "AMD64"): arch_part = "-x64" - elif machine == "arm64": + elif machine in ("arm64", "aarch64"): arch_part = "-arm64" else: - raise UnsupportedOperation("Unsupported CPU") + raise UnsupportedOperation(f"Unsupported CPU: {machine}") # Get absolute library path resolved_library_path = pathlib.Path(library_path).resolve() @@ -151,7 +151,7 @@ def __set_payload(self, buf: CBuf, payload: bytearray, length: int) -> None: :param payload: The payload to be copied :param length: The length of the payload """ - self.__set_header(buf, length) + self.__set_header(buf, length) buf[self.__sizeof_header:self.__sizeof_header + length] = payload def bytearray_to_buf(self, payload: bytearray) -> Any: From 6f64bf3204af54106bb2c8a32b1c07167a7f8b03 Mon Sep 17 00:00:00 2001 From: tnguyen3-godaddy Date: Mon, 29 Jul 2024 19:15:00 +0200 Subject: [PATCH 2/2] increase version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f89dac0..369a6a7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cobhan" -version = "0.4.2" +version = "0.4.3" description = "Cobhan FFI" authors = [ "Jeremiah Gowdy ",