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 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 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 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') 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"]