fix: rename gp242 identifier to gp311_242 (#2411)

This commit is contained in:
Matthieu Darbois
2025-05-26 15:49:59 -04:00
committed by GitHub
parent b1d944060a
commit 2d6b40d669
10 changed files with 36 additions and 27 deletions
+4 -1
View File
@@ -237,7 +237,8 @@ def build_description_from_identifier(identifier: str) -> str:
build_description = ""
python_interpreter = python_identifier[0:2]
python_version = python_identifier[2:]
version_parts = python_identifier[2:].split("_")
python_version = version_parts[0]
if python_interpreter == "cp":
build_description += "CPython"
@@ -250,6 +251,8 @@ def build_description_from_identifier(identifier: str) -> str:
raise Exception(msg)
build_description += f" {python_version[0]}.{python_version[1:]} "
if len(version_parts) > 1:
build_description += f"(ABI {version_parts[1]}) "
try:
build_description += PLATFORM_IDENTIFIER_DESCRIPTIONS[platform_identifier]