From ad87884b041e5689d8753db478fe6848e5c7272c Mon Sep 17 00:00:00 2001 From: siddu1205 Date: Fri, 27 Nov 2026 20:56:28 +0530 Subject: [PATCH] Fix Linux ARM64 manylinux platform tag Signed-off-by: siddu1205 --- src/python_inspector/utils_pypi.py | 2 +- tests/test_utils_pypi.py | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/python_inspector/utils_pypi.py b/src/python_inspector/utils_pypi.py index 690aabec..3c674ff5 100644 --- a/src/python_inspector/utils_pypi.py +++ b/src/python_inspector/utils_pypi.py @@ -159,7 +159,7 @@ def get_python_dot_version(version): "manylinux_2_27_x86_64", "manylinux_2_28_x86_64", "manylinux_2_31_x86_64", - "manylinux2014_aarch6", + "manylinux2014_aarch64", "musllinux_1_2_x86_64", "manylinux_2_33_aarch64", ], diff --git a/tests/test_utils_pypi.py b/tests/test_utils_pypi.py index 0e70d646..7946ff35 100644 --- a/tests/test_utils_pypi.py +++ b/tests/test_utils_pypi.py @@ -165,3 +165,16 @@ def test_PypiPackage_get_supported_wheels(linux_platform): supported_wheels = list(pkg.get_supported_wheels(environment=env)) assert supported_wheels == [whl] + + +def test_PypiPackage_get_supported_wheels_linux_aarch64(): + whl = Wheel.from_filename("onnxruntime-1.19.2-cp311-cp311-manylinux2014_aarch64.whl") + pkg = PypiPackage.package_from_dists(dists=[whl]) + env = utils_pypi.Environment.from_pyver_and_os( + python_version="311", + operating_system="linux", + ) + + supported_wheels = list(pkg.get_supported_wheels(environment=env)) + + assert supported_wheels == [whl]