From 8aa61ee0f0584a535296fbeedf3e290502e458d0 Mon Sep 17 00:00:00 2001 From: Hyunsu Cho Date: Mon, 2 Dec 2024 12:25:59 -0800 Subject: [PATCH] Refresh Patch #3 --- ...ark-wheels-as-any-platform-compatible.patch | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/recipe/patches/0003-Mark-wheels-as-any-platform-compatible.patch b/recipe/patches/0003-Mark-wheels-as-any-platform-compatible.patch index a63061f4..9b32c561 100644 --- a/recipe/patches/0003-Mark-wheels-as-any-platform-compatible.patch +++ b/recipe/patches/0003-Mark-wheels-as-any-platform-compatible.patch @@ -8,24 +8,24 @@ Subject: [PATCH 3/3] Mark wheels as any platform compatible 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python-package/hatch_build.py b/python-package/hatch_build.py -index 925c917..710530c 100644 +index d81a21cd5..710530ce4 100644 --- a/python-package/hatch_build.py +++ b/python-package/hatch_build.py -@@ -3,7 +3,6 @@ Custom hook to customize the behavior of Hatchling. - Here, we customize the tag of the generated wheels. - """ - --import sysconfig +@@ -6,13 +6,11 @@ Here, we customize the tag of the generated wheels. from typing import Any, Dict from hatchling.builders.hooks.plugin.interface import BuildHookInterface -@@ -11,8 +10,7 @@ from hatchling.builders.hooks.plugin.interface import BuildHookInterface +-from packaging.tags import platform_tags + def get_tag() -> str: """Get appropriate wheel tag according to system""" -- tag_platform = sysconfig.get_platform().replace("-", "_").replace(".", "_") -- return f"py3-none-{tag_platform}" +- platform_tag = next(platform_tags()) +- return f"py3-none-{platform_tag}" + return f"py3-none-any" class CustomBuildHook(BuildHookInterface): +-- +2.34.1 +