From fb362b6417b314955adaa7f9844b77b2a469db6b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 31 Oct 2024 11:29:39 +0100 Subject: [PATCH] chore: drop Python 3.8 --- .azure-pipelines/publish.yml | 2 +- .github/workflows/ci.yml | 11 +---------- meta.yaml | 6 +++--- pyproject.toml | 4 ++-- setup.py | 3 +-- 5 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.azure-pipelines/publish.yml b/.azure-pipelines/publish.yml index 52af52ceb..cd8916184 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 87bb1317f..6288bde7e 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 diff --git a/meta.yaml b/meta.yaml index 69dbbcec7..cb2da8460 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 709e0ffa1..e65384134 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 @@ -36,7 +36,7 @@ profile = "black" [tool.pyright] include = ["playwright", "tests", "scripts"] exclude = ["**/node_modules", "**/__pycache__", "**/.*", "./build"] -pythonVersion = "3.8" +pythonVersion = "3.9" reportMissingImports = false reportTypedDictNotRequiredAccess = false reportCallInDefaultInitializer = true diff --git a/setup.py b/setup.py index 8a67ab2c8..a98358b45 100644 --- a/setup.py +++ b/setup.py @@ -228,7 +228,6 @@ 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", @@ -237,7 +236,7 @@ def _download_and_extract_local_driver( "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": [