From 041cc6a25733a0906d712fc3ebd88231aa3a0011 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 8 Dec 2025 13:57:14 +0100 Subject: [PATCH 1/5] cd: build_wheels fixed --- .github/workflows/build_wheels.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build_wheels.yml b/.github/workflows/build_wheels.yml index 1b9bafa..36b0c76 100644 --- a/.github/workflows/build_wheels.yml +++ b/.github/workflows/build_wheels.yml @@ -82,4 +82,4 @@ jobs: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: python -m twine upload wheelhouse/* + run: find wheelhouse -name "*.whl" -print0 | xargs -0 python -m twine upload From b86659fd5199a32300e064e5c0c0be52e76cc69a Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 8 Dec 2025 14:01:22 +0100 Subject: [PATCH 2/5] get_binaries.py updated --- tools/get_binaries.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/tools/get_binaries.py b/tools/get_binaries.py index 8de612c..4c0a843 100644 --- a/tools/get_binaries.py +++ b/tools/get_binaries.py @@ -24,12 +24,17 @@ def main() -> None: assert releases, "No releases found." - release = releases[0] # newest release (first in list) - tag = release["tag_name"] - print(f"Found latest release: {tag}") + assets: list[Any] = [] + for release in releases: + tag = release["tag_name"] + print(f"Found latest release: {tag}") - assets = release.get("assets", []) - assert assets, "No assets found for this release." + assets = release.get("assets", []) + if assets: + break + print(f"No assets found for release {tag}.") + + assert assets, "No assets found." for asset in assets: url = asset["browser_download_url"] From 6251dbda5d1f55f0a1c21952ac1731ae06cd0843 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 8 Dec 2025 14:03:00 +0100 Subject: [PATCH 3/5] Aarch64 patching fixed for R_AARCH64_LDST32_ABS_LO12_NC and R_AARCH64_LDST64_ABS_LO12_NC relocations --- src/copapy/_stencils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/copapy/_stencils.py b/src/copapy/_stencils.py index 75d16f0..1c57374 100644 --- a/src/copapy/_stencils.py +++ b/src/copapy/_stencils.py @@ -258,7 +258,7 @@ class stencil_database(): elif pr.type.endswith('_LDST32_ABS_LO12_NC'): # R_AARCH64_LDST32_ABS_LO12_NC # (S + A) & 0xFFF - mask = 0b11_1111_1111_1100_0000_0000 + mask = 0b00_1111_1111_1100_0000_0000 patch_value = symbol_address + pr.fields['r_addend'] symbol_type = symbol_type + 0x02 # Absolut value scale = 4 @@ -276,7 +276,7 @@ class stencil_database(): elif pr.type.endswith('_LDST64_ABS_LO12_NC'): # R_AARCH64_LDST64_ABS_LO12_NC # (S + A) & 0xFFF - mask = 0b11_1111_1111_1100_0000_0000 + mask = 0b00_0111_1111_1100_0000_0000 patch_value = symbol_address + pr.fields['r_addend'] symbol_type = symbol_type + 0x02 # Absolut value scale = 8 From 6e0b46533de0a9c2f5531a4b24467e1fdc68e8c8 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 8 Dec 2025 14:09:14 +0100 Subject: [PATCH 4/5] verbosity of tests reduced, output for "Data to runner" deactivated --- tests/test_compile.py | 4 ++-- tests/test_compile_aarch64.py | 4 ++-- tests/test_compile_div.py | 4 ++-- tests/test_compile_math.py | 8 ++++---- tests/test_ops_aarch64.py | 4 ++-- tests/test_ops_armv7.py | 4 ++-- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tests/test_compile.py b/tests/test_compile.py index 9635ff1..f34eae4 100644 --- a/tests/test_compile.py +++ b/tests/test_compile.py @@ -71,8 +71,8 @@ def test_compile(): il.write_com(_binwrite.Command.END_COM) - print('* Data to runner:') - il.print() + #print('* Data to runner:') + #il.print() il.to_file('build/runner/test.copapy') diff --git a/tests/test_compile_aarch64.py b/tests/test_compile_aarch64.py index efc3990..3235a9d 100644 --- a/tests/test_compile_aarch64.py +++ b/tests/test_compile_aarch64.py @@ -66,8 +66,8 @@ def test_compile(): il.write_com(_binwrite.Command.END_COM) - print('* Data to runner:') - il.print() + #print('* Data to runner:') + #il.print() il.to_file('build/runner/test-arm64.copapy') diff --git a/tests/test_compile_div.py b/tests/test_compile_div.py index 87ee766..ff702fa 100644 --- a/tests/test_compile_div.py +++ b/tests/test_compile_div.py @@ -39,8 +39,8 @@ def test_compile(): il.write_com(_binwrite.Command.END_COM) - print('* Data to runner:') - il.print() + #print('* Data to runner:') + #il.print() il.to_file('build/runner/test.copapy') diff --git a/tests/test_compile_math.py b/tests/test_compile_math.py index 90385c3..d65f626 100644 --- a/tests/test_compile_math.py +++ b/tests/test_compile_math.py @@ -34,8 +34,8 @@ def test_compile_sqrt(): il.write_com(_binwrite.Command.END_COM) - print('* Data to runner:') - il.print() + #print('* Data to runner:') + #il.print() il.to_file('build/runner/test.copapy') @@ -68,8 +68,8 @@ def test_compile_log(): il.write_com(_binwrite.Command.END_COM) - print('* Data to runner:') - il.print() + #print('* Data to runner:') + #il.print() il.to_file('build/runner/test.copapy') diff --git a/tests/test_ops_aarch64.py b/tests/test_ops_aarch64.py index 2b0ffdd..26f026c 100644 --- a/tests/test_ops_aarch64.py +++ b/tests/test_ops_aarch64.py @@ -117,8 +117,8 @@ def test_compile(): dw.write_com(_binwrite.Command.END_COM) - print('* Data to runner:') - dw.print() + #print('* Data to runner:') + #dw.print() dw.to_file('build/runner/test-arm64.copapy') diff --git a/tests/test_ops_armv7.py b/tests/test_ops_armv7.py index 0c5d552..63a22eb 100644 --- a/tests/test_ops_armv7.py +++ b/tests/test_ops_armv7.py @@ -119,8 +119,8 @@ def test_compile(): dw.write_com(_binwrite.Command.END_COM) - print('* Data to runner:') - dw.print() + #print('* Data to runner:') + #dw.print() dw.to_file('build/runner/test-armv7.copapy') From 56c34972f55e572e1ca733091a096152c5d91053 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 8 Dec 2025 14:16:42 +0100 Subject: [PATCH 5/5] gitignore updated --- .gitignore | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index bdd5a7a..f04634f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,7 +5,7 @@ __pycache__ /src/*.egg-info/* /dist/* .vscode -.venv +.venv* .mypy_cache .pytest_cache /tests/autogenerated_*.py @@ -22,4 +22,8 @@ build/* vc140.pdb benchmark_results* docs/build -docs/source/api \ No newline at end of file +docs/source/api +/libs/ +*.core +core +*.log \ No newline at end of file