From 767dbbafc393b9ab23b98707c14d6a9c05243d59 Mon Sep 17 00:00:00 2001 From: Averi Kitsch Date: Fri, 26 Jun 2026 10:19:31 -0700 Subject: [PATCH] feat: Disable support for python 3.9 and enable support for python3.13 --- .github/sync-repo-settings.yaml | 2 +- DEVELOPER.md | 6 +++--- README.rst | 2 +- integration.cloudbuild.yaml | 2 +- pyproject.toml | 8 ++++---- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 0dde89bb..85f03251 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -27,10 +27,10 @@ branchProtectionRules: requiredStatusCheckContexts: - "cla/google" - "lint" - - "integration-test-pr-py39 (langchain-spanner-testing)" - "integration-test-pr-py310 (langchain-spanner-testing)" - "integration-test-pr-py311 (langchain-spanner-testing)" - "integration-test-pr-py312 (langchain-spanner-testing)" + - "integration-test-pr-py313 (langchain-spanner-testing)" - "conventionalcommits.org" - "header-check" # - Add required status checks like presubmit tests diff --git a/DEVELOPER.md b/DEVELOPER.md index 24d33a9e..4eaa91f7 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -34,11 +34,11 @@ These tests are registered as required tests in `.github/sync-repo-settings.yaml #### Trigger Setup -Cloud Build triggers (for Python versions 3.9 to 3.11) were created with the following specs: +Cloud Build triggers (for Python versions 3.10 to 3.13) were created with the following specs: ```YAML name: integration-test-pr-py39 -description: Run integration tests on PR for Python 3.9 +description: Run integration tests on PR for Python 3.10 filename: integration.cloudbuild.yaml github: name: langchain-google-spanner-python @@ -55,7 +55,7 @@ substitutions: _INSTANCE_ID: _PG_DATABASE: _GOOGLE_DATABASE: - _VERSION: "3.9" + _VERSION: "3.10" ``` Use `gcloud builds triggers import --source=trigger.yaml` to create triggers via the command line diff --git a/README.rst b/README.rst index e4f78002..fd9d54f9 100644 --- a/README.rst +++ b/README.rst @@ -44,7 +44,7 @@ With `virtualenv`_, it’s possible to install this library without needing syst Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ -Python >= 3.9 +Python >= 3.10 Mac/Linux ^^^^^^^^^ diff --git a/integration.cloudbuild.yaml b/integration.cloudbuild.yaml index e27c8a02..bfe38fb9 100644 --- a/integration.cloudbuild.yaml +++ b/integration.cloudbuild.yaml @@ -38,7 +38,7 @@ substitutions: _INSTANCE_ID: test-instance _GOOGLE_DATABASE: test-gsql-db _PG_DATABASE: test-pgsql-db - _VERSION: "3.9" + _VERSION: "3.10" options: dynamicSubstitutions: true diff --git a/pyproject.toml b/pyproject.toml index 2f730758..6025c02c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] description = "LangChain integrations for Google Cloud Spanner" readme = "README.rst" license = {file = "LICENSE"} -requires-python = ">=3.9" +requires-python = ">=3.10" authors = [ {name = "Google LLC", email = "googleapis-packages@google.com"} ] @@ -19,10 +19,10 @@ classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "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", ] [tool.setuptools.dynamic] @@ -58,13 +58,13 @@ requires = ["setuptools"] build-backend = "setuptools.build_meta" [tool.black] -target-version = ['py39'] +target-version = ['py310'] [tool.isort] profile = "black" [tool.mypy] -python_version = 3.9 +python_version = "3.10" warn_unused_configs = true exclude = [