diff --git a/add_to_pydotorg.py b/add_to_pydotorg.py index afce207e..f5e4d346 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 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..0a801d35 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 installer", "macos", True, "for macOS 10.15 and later",