From aecfd8c63b059e1d755e2004f856847e828e9403 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 26 Oct 2026 10:55:48 +0200 Subject: [PATCH 1/2] Remove unnecessary 3.13 macOS installer code --- add_to_pydotorg.py | 9 +-------- tests/test_add_to_pydotorg.py | 11 ----------- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/add_to_pydotorg.py b/add_to_pydotorg.py index f86d571f..756d6bf2 100755 --- a/add_to_pydotorg.py +++ b/add_to_pydotorg.py @@ -96,13 +96,6 @@ def run_cmd( } -def macos_description(version: tuple[int, int, int]) -> str: - if version >= (3, 14): - return "for macOS 10.15 and later" - else: - return "for macOS 10.13 and later" - - def winarm64_experimental(version: tuple[int, int, int]) -> str: if version >= (3, 15): return "" @@ -162,7 +155,7 @@ def get_file_descriptions( "macOS installer", "macos", True, - macos_description(v), + "for macOS 10.15 and later", ), ), ( diff --git a/tests/test_add_to_pydotorg.py b/tests/test_add_to_pydotorg.py index 6bbefeec..b0e85e61 100644 --- a/tests/test_add_to_pydotorg.py +++ b/tests/test_add_to_pydotorg.py @@ -179,17 +179,6 @@ def test_minor_version(release: str, expected: str) -> None: assert add_to_pydotorg.minor_version(release) == expected -@pytest.mark.parametrize( - ["release", "expected"], - [ - ((3, 13, 0), "for macOS 10.13 and later"), - ((3, 14, 0), "for macOS 10.15 and later"), - ], -) -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: # Arrange fake_ftp_root = "/fake_ftp_root" From 7fd4fe4e996a76d482f3961d2755b0953ae4e59d Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 26 Oct 2026 10:58:10 +0200 Subject: [PATCH 2/2] Simplify regex, files now named like python-3.14.0-macos11.pkg not python-3.8.0-macosx10.9.pkg --- 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 756d6bf2..c2856611 100755 --- a/add_to_pydotorg.py +++ b/add_to_pydotorg.py @@ -150,7 +150,7 @@ def get_file_descriptions( ), (rx(r"\.exe$"), ("Windows installer (32-bit)", "windows", False, "")), ( - rx(r"-macos(x)?1[1-9](\.[0-9]*)?\.pkg$"), + rx(r"-macos1[1-9]\.pkg$"), ( "macOS installer", "macos",