From 822fae31e59d82ca520cfe0f2156951bb7193f3f Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 10 Jan 2025 14:15:39 +0100 Subject: [PATCH] Remove Python 3.8 from CI (#13387) --- .github/workflows/daily.yml | 2 +- .github/workflows/stubtest_stdlib.yml | 2 +- .github/workflows/tests.yml | 4 ++-- tests/mypy_test.py | 2 +- tests/regr_test.py | 2 +- tests/runtests.py | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/daily.yml b/.github/workflows/daily.yml index 05f788afa..c015c7c6b 100644 --- a/.github/workflows/daily.yml +++ b/.github/workflows/daily.yml @@ -37,7 +37,7 @@ jobs: # As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions, # which can can cause problems with os module constants. os: ["ubuntu-24.04", "windows-latest", "macos-latest"] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false steps: diff --git a/.github/workflows/stubtest_stdlib.yml b/.github/workflows/stubtest_stdlib.yml index 9ae15305b..ca2081809 100644 --- a/.github/workflows/stubtest_stdlib.yml +++ b/.github/workflows/stubtest_stdlib.yml @@ -33,7 +33,7 @@ jobs: # As of 2024-10-18, ubuntu-latest can refer to different Ubuntu versions, # which can can cause problems with os module constants. os: ["ubuntu-24.04", "windows-latest", "macos-latest"] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false steps: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d3a4ff338..371c1ecca 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,7 +62,7 @@ jobs: strategy: matrix: platform: ["linux", "win32", "darwin"] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + python-version: ["3.9", "3.10", "3.11", "3.12"] fail-fast: false steps: - uses: actions/checkout@v4 @@ -113,7 +113,7 @@ jobs: strategy: matrix: python-platform: ["Linux", "Windows", "Darwin"] - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] fail-fast: false steps: - uses: actions/checkout@v4 diff --git a/tests/mypy_test.py b/tests/mypy_test.py index 67762bba9..15cd44bb8 100755 --- a/tests/mypy_test.py +++ b/tests/mypy_test.py @@ -44,7 +44,7 @@ except ImportError: print_error("Cannot import mypy. Did you install it?") sys.exit(1) -SUPPORTED_VERSIONS = ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8"] +SUPPORTED_VERSIONS = ["3.13", "3.12", "3.11", "3.10", "3.9"] SUPPORTED_PLATFORMS = ("linux", "win32", "darwin") DIRECTORIES_TO_TEST = [STDLIB_PATH, STUBS_PATH] diff --git a/tests/regr_test.py b/tests/regr_test.py index 573d25b72..248708b90 100755 --- a/tests/regr_test.py +++ b/tests/regr_test.py @@ -40,7 +40,7 @@ VENV_DIR = ".venv" TYPESHED = "typeshed" SUPPORTED_PLATFORMS = ["linux", "darwin", "win32"] -SUPPORTED_VERSIONS = ["3.13", "3.12", "3.11", "3.10", "3.9", "3.8"] +SUPPORTED_VERSIONS = ["3.13", "3.12", "3.11", "3.10", "3.9"] def distribution_with_test_cases(distribution_name: str) -> DistributionTests: diff --git a/tests/runtests.py b/tests/runtests.py index 1c5ba0c18..e0aad9e95 100755 --- a/tests/runtests.py +++ b/tests/runtests.py @@ -22,7 +22,7 @@ _SKIPPED = colored("Skipped", "yellow") _FAILED = colored("Failed", "red") # We're using the oldest fully supported version because it's the most likely to produce errors # due to unsupported syntax, feature, or bug in a tool. -_PYTHON_VERSION = "3.8" +_PYTHON_VERSION = "3.9" def _parse_jsonc(json_text: str) -> str: @@ -55,7 +55,7 @@ def main() -> None: parser.add_argument( "--python-version", default=_PYTHON_VERSION, - choices=("3.8", "3.9", "3.10", "3.11", "3.12", "3.13"), + choices=("3.9", "3.10", "3.11", "3.12", "3.13"), help="Target Python version for the test (default: %(default)s).", ) parser.add_argument("path", help="Path of the stub to test in format /, from the root of the project.")