]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-146444: Don't package as part of iOS 'build hosts' target (#146628)
authorRussell Keith-Magee <russell@keith-magee.com>
Mon, 30 Mar 2026 10:58:57 +0000 (18:58 +0800)
committerGitHub <noreply@github.com>
Mon, 30 Mar 2026 10:58:57 +0000 (12:58 +0200)
* Revert Py3.9 compatibility fixes.
* Only build the package on 'build all'.

Platforms/Apple/.ruff.toml
Platforms/Apple/__main__.py
Platforms/Apple/testbed/__main__.py

index a10de0edb804f4e638ab95f6e92aad6472760dd6..f5d74fdb6afe8711ed3f4dc8d14b0b17176c77f0 100644 (file)
@@ -1,8 +1,5 @@
 extend = "../../.ruff.toml"  # Inherit the project-wide settings
 
-# iOS buildbot worker uses Python 3.9
-target-version = "py39"
-
 [format]
 preview = true
 docstring-code-format = true
index 9b51f8a3b755147ffa10b31608030a2fb6910717..44a991c6c20a9386e2dfe87686c102bc1a12ae22 100644 (file)
@@ -52,10 +52,9 @@ from datetime import datetime, timezone
 from os.path import basename, relpath
 from pathlib import Path
 from subprocess import CalledProcessError
-from typing import Union
 
 EnvironmentT = dict[str, str]
-ArgsT = Sequence[Union[str, Path]]
+ArgsT = Sequence[str | Path]
 
 SCRIPT_NAME = Path(__file__).name
 PYTHON_DIR = Path(__file__).resolve().parent.parent.parent
@@ -772,7 +771,7 @@ def build(context: argparse.Namespace, host: str | None = None) -> None:
         ]:
             step(context, host=step_host)
 
-    if host in {"all", "hosts"}:
+    if host == "all":
         package(context)
 
 
index 96da1f9c7525f1f55d6e9aaf158cb29745082272..0dd77ab8b827974ea5b8ebd3c48ee47f9538c612 100644 (file)
@@ -7,7 +7,6 @@ import shutil
 import subprocess
 import sys
 from pathlib import Path
-from typing import Union
 
 TEST_SLICES = {
     "iOS": "ios-arm64_x86_64-simulator",
@@ -263,7 +262,7 @@ def update_test_plan(testbed_path, platform, args):
 
 def run_testbed(
     platform: str,
-    simulator: Union[str, None],
+    simulator: str | None,
     args: list[str],
     verbose: bool = False,
 ):