From c9f33430a84caac6c8afe86cc7e81192256b62be Mon Sep 17 00:00:00 2001 From: rhatgadkar-goog Date: Wed, 30 Oct 2024 22:25:11 +0000 Subject: [PATCH] feat: drop support for Python 3.8 Python 3.8 EOL was October 7, 2024: https://endoflife.date/python --- .github/workflows/tests.yaml | 4 ++-- mypy.ini | 2 +- noxfile.py | 4 ++-- setup.py | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 8018c4ec..3ef0fc20 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -38,7 +38,7 @@ jobs: strategy: matrix: os: [macos-latest, windows-latest, ubuntu-latest] - python-version: ["3.8", "3.12"] + python-version: ["3.9", "3.12"] fail-fast: false steps: - name: Checkout code @@ -99,7 +99,7 @@ jobs: (github.event.pull_request.head.repo.full_name == github.repository && github.actor != 'dependabot[bot]') strategy: matrix: - python-version: ["3.8", "3.12"] + python-version: ["3.9", "3.12"] fail-fast: false permissions: contents: read diff --git a/mypy.ini b/mypy.ini index 4095da9d..c1eec50d 100644 --- a/mypy.ini +++ b/mypy.ini @@ -1,5 +1,5 @@ [mypy] -python_version = 3.8 +python_version = 3.9 warn_unused_configs = True namespace_packages = True diff --git a/noxfile.py b/noxfile.py index e7c46257..a2c55240 100644 --- a/noxfile.py +++ b/noxfile.py @@ -22,8 +22,8 @@ ISORT_VERSION = "isort==5.13.2" LINT_PATHS = ["google", "tests", "noxfile.py", "setup.py"] -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"] -UNIT_TEST_PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"] +SYSTEM_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12"] +UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12"] @nox.session diff --git a/setup.py b/setup.py index 0033a3e0..aac1e223 100644 --- a/setup.py +++ b/setup.py @@ -66,7 +66,6 @@ "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -79,7 +78,7 @@ "pg8000": ["pg8000>=1.31.1"], "asyncpg": ["asyncpg>=0.29.0"], }, - python_requires=">=3.8", + python_requires=">=3.9", include_package_data=True, zip_safe=False, package_data={"google.cloud.alloydb.connector": ["py.typed"]},