From 8460ae1d7c0ca1d32cdc6210363f327d76dea01f Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Thu, 27 Nov 2025 18:03:47 +0200 Subject: [PATCH 1/3] Remove 'universal2' from the macOS installer description --- add_to_pydotorg.py | 6 +++--- tests/test_add_to_pydotorg.py | 8 +++----- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/add_to_pydotorg.py b/add_to_pydotorg.py index afce207e..c60034f8 100755 --- a/add_to_pydotorg.py +++ b/add_to_pydotorg.py @@ -93,7 +93,7 @@ def run_cmd( } -def macos_universal2_description(version: tuple[int, int, int]) -> str: +def macos_description(version: tuple[int, int, int]) -> str: if version >= (3, 14): return "for macOS 10.15 and later" elif version >= (3, 12, 6): @@ -173,10 +173,10 @@ def get_file_descriptions( ( rx(r"-macos(x)?1[1-9](\.[0-9]*)?\.pkg$"), ( - "macOS 64-bit universal2 installer", + "macOS 64-bit installer", "macos", True, - macos_universal2_description(v), + macos_description(v), ), ), ( diff --git a/tests/test_add_to_pydotorg.py b/tests/test_add_to_pydotorg.py index 7a32971e..9b08c3e9 100644 --- a/tests/test_add_to_pydotorg.py +++ b/tests/test_add_to_pydotorg.py @@ -142,10 +142,8 @@ def test_minor_version_tuple(release: str, expected: tuple[int, int]) -> None: ((3, 14, 0), "for macOS 10.15 and later"), ], ) -def test_macos_universal2_description( - release: tuple[int, int, int], expected: str -) -> None: - assert add_to_pydotorg.macos_universal2_description(release) == expected +def test_macos_description(release: tuple[int, int, int], expected: str) -> None: + assert add_to_pydotorg.macos_description(release) == expected def test_list_files(fs: FakeFilesystem) -> None: @@ -214,7 +212,7 @@ def test_list_files(fs: FakeFilesystem) -> None: ), ( "python-3.14.0b3-macos11.pkg", - "macOS 64-bit universal2 installer", + "macOS 64-bit installer", "macos", True, "for macOS 10.15 and later", From 4e6993833a0e1f99f5f924a253558c95473048bb Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 1 Dec 2025 20:03:23 +0200 Subject: [PATCH 2/3] Remove '64-bit' from the macOS installer description --- tests/test_add_to_pydotorg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_add_to_pydotorg.py b/tests/test_add_to_pydotorg.py index 9b08c3e9..0a801d35 100644 --- a/tests/test_add_to_pydotorg.py +++ b/tests/test_add_to_pydotorg.py @@ -212,7 +212,7 @@ def test_list_files(fs: FakeFilesystem) -> None: ), ( "python-3.14.0b3-macos11.pkg", - "macOS 64-bit installer", + "macOS installer", "macos", True, "for macOS 10.15 and later", From a9358482057712fa3066c4f0edfcc5a8bd27c71b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 1 Dec 2025 20:04:26 +0200 Subject: [PATCH 3/3] fixup! Remove '64-bit' from the macOS installer description --- add_to_pydotorg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/add_to_pydotorg.py b/add_to_pydotorg.py index c60034f8..f5e4d346 100755 --- a/add_to_pydotorg.py +++ b/add_to_pydotorg.py @@ -173,7 +173,7 @@ def get_file_descriptions( ( rx(r"-macos(x)?1[1-9](\.[0-9]*)?\.pkg$"), ( - "macOS 64-bit installer", + "macOS installer", "macos", True, macos_description(v),