From f2dc83280eee4fc514f1c085fbf9d6094f2e2224 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 9 Oct 2024 14:11:43 +0200 Subject: [PATCH] chore: drop support for Python 3.8 --- .azure-pipelines/publish.yml | 2 +- .github/workflows/ci.yml | 18 ++++-------------- meta.yaml | 6 +++--- pyproject.toml | 4 ++-- setup.py | 4 ++-- 5 files changed, 12 insertions(+), 22 deletions(-) diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 52af52cebb..cd8916184e 100644 --- a/.azure-pipelines/publish.yml +++ b/.azure-pipelines/publish.yml @@ -33,7 +33,7 @@ extends: steps: - task: UsePythonVersion@0 inputs: - versionSpec: '3.8' + versionSpec: '3.9' displayName: 'Use Python' - script: | python -m pip install --upgrade pip diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7528da1146..dae85fb6ee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -47,18 +47,9 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, windows-latest, macos-latest] - python-version: [3.8, 3.9] + python-version: ['3.9', '3.10'] browser: [chromium, firefox, webkit] include: - - os: ubuntu-latest - python-version: '3.10' - browser: chromium - - os: windows-latest - python-version: '3.10' - browser: chromium - - os: macos-latest - python-version: '3.10' - browser: chromium - os: windows-latest python-version: '3.11' browser: chromium @@ -78,14 +69,13 @@ jobs: python-version: '3.12' browser: chromium - os: windows-latest - # TODO: Change to actual version when it's released - python-version: '3.13.0-rc.2' + python-version: '3.13' browser: chromium - os: macos-latest - python-version: '3.13.0-rc.2' + python-version: '3.13' browser: chromium - os: ubuntu-latest - python-version: '3.13.0-rc.2' + python-version: '3.13' browser: chromium runs-on: ${{ matrix.os }} steps: diff --git a/meta.yaml b/meta.yaml index 69dbbcec7a..cb2da84607 100644 --- a/meta.yaml +++ b/meta.yaml @@ -15,17 +15,17 @@ build: requirements: build: - - python >=3.8 # [build_platform != target_platform] + - python >=3.9 # [build_platform != target_platform] - pip # [build_platform != target_platform] - cross-python_{{ target_platform }} # [build_platform != target_platform] host: - - python >=3.8 + - python >=3.9 - wheel - pip - curl - setuptools_scm run: - - python >=3.8 + - python >=3.9 - greenlet ==3.1.1 - pyee ==12.0.0 diff --git a/pyproject.toml b/pyproject.toml index 34504380f9..f7565962f3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,7 +18,7 @@ asyncio_mode = "auto" [tool.mypy] ignore_missing_imports = true -python_version = "3.8" +python_version = "3.9" warn_unused_ignores = false warn_redundant_casts = true warn_unused_configs = true @@ -35,7 +35,7 @@ profile = "black" [tool.pyright] include = ["playwright", "tests", "scripts"] -pythonVersion = "3.8" +pythonVersion = "3.9" reportMissingImports = false reportTypedDictNotRequiredAccess = false reportCallInDefaultInitializer = true diff --git a/setup.py b/setup.py index 20047ebe6d..80cbd3c7a7 100644 --- a/setup.py +++ b/setup.py @@ -228,15 +228,15 @@ def _download_and_extract_local_driver( "Topic :: Internet :: WWW/HTTP :: Browsers", "Intended Audience :: Developers", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", ], - python_requires=">=3.8", + python_requires=">=3.9", cmdclass={"bdist_wheel": PlaywrightBDistWheelCommand}, entry_points={ "console_scripts": [