From 80b9dc5ed92aa1a5126d76572bcef0ae31570225 Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Mon, 26 Oct 2026 08:46:41 -0700 Subject: [PATCH] feat: Drop support for Python 3.10 PiperOrigin-RevId: 1007308875 --- .github/workflows/import.yml | 2 +- .github/workflows/mypy.yml | 2 +- pyproject.toml | 3 +-- requirements.txt | 4 ++-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/import.yml b/.github/workflows/import.yml index 08e11ec02..89cb1a6f5 100644 --- a/.github/workflows/import.yml +++ b/.github/workflows/import.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15'] + python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] steps: - name: Checkout repository diff --git a/.github/workflows/mypy.yml b/.github/workflows/mypy.yml index c422de85f..c096bc4fe 100644 --- a/.github/workflows/mypy.yml +++ b/.github/workflows/mypy.yml @@ -17,7 +17,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10', '3.11', '3.12', '3.13', '3.14', '3.15'] + python-version: ['3.11', '3.12', '3.13', '3.14', '3.15'] steps: - name: Checkout code diff --git a/pyproject.toml b/pyproject.toml index d0396e651..21c03645a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ version = "2.33.0" description = "GenAI Python SDK" readme = "README.md" license = "Apache-2.0" -requires-python = ">=3.10" +requires-python = ">=3.11" authors = [ { name = "Google LLC", email = "googleapis-packages@google.com" }, ] @@ -16,7 +16,6 @@ classifiers = [ "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", diff --git a/requirements.txt b/requirements.txt index 2453ad31d..cb445a266 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,7 +7,7 @@ charset-normalizer==3.4.0 coverage==7.6.9 distro==1.9.0 httpx==0.28.1 -httpx2==2.7.0; python_version >= '3.10' +httpx2==2.7.0 google-auth==2.56.0 idna==3.18 iniconfig==2.0.0 @@ -33,6 +33,6 @@ tenacity==8.2.3 typing_extensions>=4.14.1 urllib3==2.5.0 websockets==16.0 -mcp>=1.14.0,<2.0.0; python_version > '3.9' +mcp>=1.14.0,<2.0.0 sentencepiece>=0.2.0; python_version < '3.15' protobuf