From 10ebc999ee7c00685ad31abbeb722b8cf5f3ba43 Mon Sep 17 00:00:00 2001 From: Sebastian Rittau Date: Fri, 10 Jan 2025 15:06:22 +0100 Subject: [PATCH] Officially drop Python 3.8 support (#13386) --- README.md | 2 +- pyproject.toml | 2 +- stubs/icalendar/METADATA.toml | 6 +----- stubs/pycocotools/METADATA.toml | 4 +--- stubs/seaborn/METADATA.toml | 12 +----------- 5 files changed, 5 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 9776813d07ea..b52ecf3a5de9 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ the project the stubs are for, but instead report them here to typeshed.** Further documentation on stub files, typeshed, and Python's typing system in general, can also be found at https://typing.readthedocs.io/en/latest/. -Typeshed supports Python versions 3.8 to 3.13. +Typeshed supports Python versions 3.9 to 3.13. ## Using diff --git a/pyproject.toml b/pyproject.toml index 32c2bf5b350c..39f196cdb595 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -171,4 +171,4 @@ extra-standard-library = [ known-first-party = ["_utils", "ts_utils"] [tool.typeshed] -oldest_supported_python = "3.8" +oldest_supported_python = "3.9" diff --git a/stubs/icalendar/METADATA.toml b/stubs/icalendar/METADATA.toml index 18d11b38fe89..b38656b30402 100644 --- a/stubs/icalendar/METADATA.toml +++ b/stubs/icalendar/METADATA.toml @@ -1,10 +1,6 @@ version = "6.1.*" upstream_repository = "https://github.com/collective/icalendar" -requires = [ - "types-python-dateutil", - "types-pytz", - "backports.zoneinfo; python_version<'3.9'", -] +requires = ["types-python-dateutil", "types-pytz"] [tool.stubtest] stubtest_requirements = ["pytz"] diff --git a/stubs/pycocotools/METADATA.toml b/stubs/pycocotools/METADATA.toml index 598dc57162b7..cd764fe93749 100644 --- a/stubs/pycocotools/METADATA.toml +++ b/stubs/pycocotools/METADATA.toml @@ -1,5 +1,3 @@ version = "2.0.*" upstream_repository = "https://github.com/ppwwyyxx/cocoapi" -requires = ["numpy>=2.0.0rc1; python_version>='3.9'"] -# numpy>=2.0.0 requires Python >=3.9 -requires_python = ">=3.9" +requires = ["numpy>=2.0.0rc1"] diff --git a/stubs/seaborn/METADATA.toml b/stubs/seaborn/METADATA.toml index 6e08e2f6d1bd..617bc4ef5ec8 100644 --- a/stubs/seaborn/METADATA.toml +++ b/stubs/seaborn/METADATA.toml @@ -1,14 +1,4 @@ version = "0.13.2" # Requires a version of numpy and matplotlib with a `py.typed` file -# -# TODO: Specifying the python-version for matplotlib should not be necessary, -# because of the requires_python field. However, this needs changes to -# get_typeshed_stub_version.py (see there). -requires = [ - "matplotlib>=3.8; python_version>='3.9'", - "numpy>=1.20", - "pandas-stubs", -] -# matplotlib>=3.8 requires Python >=3.9 -requires_python = ">=3.9" +requires = ["matplotlib>=3.8", "numpy>=1.20", "pandas-stubs"] upstream_repository = "https://github.com/mwaskom/seaborn"