From db863252fc0bfcd8bf776ce93b1405e5ba535c48 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:52:32 +0530 Subject: [PATCH 1/8] chore!: Disable support for python 3.9 and enable support for python3.13 --- DEVELOPER.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/DEVELOPER.md b/DEVELOPER.md index 899f62b6..751df2e7 100644 --- a/DEVELOPER.md +++ b/DEVELOPER.md @@ -42,11 +42,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: pg-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-cloud-sql-pg-python @@ -64,7 +64,7 @@ substitutions: _DATABASE_ID: _INSTANCE_ID: _REGION: us-central1 - _VERSION: "3.9" + _VERSION: "3.10" ``` Use `gcloud builds triggers import --source=trigger.yaml` to create triggers via the command line From 93066b19630a8dcae40e1f9e02d5bac8ca809fd0 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:52:53 +0530 Subject: [PATCH 2/8] Update supported Python version to 3.10 --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 9839b661..d1e258c5 100644 --- a/README.rst +++ b/README.rst @@ -56,7 +56,7 @@ dependencies. Supported Python Versions ^^^^^^^^^^^^^^^^^^^^^^^^^ -Python >= 3.9 +Python >= 3.10 Mac/Linux ^^^^^^^^^ From c6fcb95e8b8a9787456900d3069340d8547721c8 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:53:47 +0530 Subject: [PATCH 3/8] Update Python version requirements to 3.10 --- pyproject.toml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c8232d20..24282b77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] description = "LangChain integrations for Google Cloud SQL for PostgreSQL" readme = "README.rst" license = {file = "LICENSE"} -requires-python = ">=3.9" +requires-python = ">=3.10" authors = [ {name = "Google LLC", email = "googleapis-packages@google.com"} ] @@ -13,7 +13,6 @@ dependencies = [ "cloud-sql-python-connector[asyncpg] >= 1.10.0, <2.0.0", "numpy>=1.24.4, <3.0.0; python_version >= '3.11'", "numpy>=1.24.4, <=2.2.6; python_version == '3.10'", - "numpy>=1.24.4, <=2.0.2; python_version <= '3.9'", "langchain-postgres>=0.0.16", ] @@ -22,10 +21,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] @@ -43,8 +42,7 @@ langgraph = [ ] test = [ "black[jupyter]==25.9.0", - "isort==6.1.0; python_version == '3.9'", - "isort==7.0.0; python_version >= '3.10'", + "isort==7.0.0", "mypy==1.18.2", "pytest-asyncio==0.26.0", "pytest==8.4.2", @@ -64,7 +62,7 @@ target-version = ['py39'] profile = "black" [tool.mypy] -python_version = 3.9 +python_version = "3.10" warn_unused_configs = true disallow_incomplete_defs = true From f009dc7d7b8e5ed4411ddd53ef5987696e0f85b5 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:54:01 +0530 Subject: [PATCH 4/8] Update requirements.txt to remove old numpy version Removed numpy version constraint for Python <= 3.9. --- requirements.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index d2aa371f..a425b4e6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ cloud-sql-python-connector[asyncpg]==1.18.4 numpy==2.3.3; python_version >= "3.11" numpy==2.2.6; python_version == "3.10" -numpy==2.0.2; python_version <= "3.9" langgraph==0.6.10 langchain-postgres==0.0.16 From 2631596959b2562b413992f6710655ad3dc6c867 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:54:29 +0530 Subject: [PATCH 5/8] Update integration.cloudbuild.yaml --- integration.cloudbuild.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration.cloudbuild.yaml b/integration.cloudbuild.yaml index 18414b8e..bc0b0d8f 100644 --- a/integration.cloudbuild.yaml +++ b/integration.cloudbuild.yaml @@ -62,7 +62,7 @@ substitutions: _DATABASE_PORT: "5432" _DATABASE_ID: test-database _REGION: us-central1 - _VERSION: "3.9" + _VERSION: "3.10" _IP_ADDRESS: "127.0.0.1" options: From 84cfe3e7b68164c7a4d58dd04794503c5c797551 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Tue, 2 Dec 2025 16:55:27 +0530 Subject: [PATCH 6/8] Clean up Renovate config by removing disabled rules Removed disabled numpy and isort update configurations for Python versions. --- .github/renovate.json5 | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index 93a38cf3..05a3fdf6 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -48,12 +48,6 @@ "matchCurrentVersion": "<=2.2.6", "enabled": false }, - { - "description": "Disable numpy updates for python <=3.9 in requirements.txt", - "matchPackageNames": ["numpy"], - "matchCurrentVersion": "<=2.0.2", - "enabled": false - }, { "description": "Disable numpy updates for python 3.10 in pyproject.toml", "matchFileNames": ["pyproject.toml"], @@ -61,25 +55,11 @@ "matchCurrentValue": ">=1.24.4, <=2.2.6", "enabled": false }, - { - "description": "Disable numpy updates for python <=3.9 in pyproject.toml", - "matchFileNames": ["pyproject.toml"], - "matchPackageNames": ["numpy"], - "matchCurrentValue": ">=1.24.4, <=2.0.2", - "enabled": false - }, { "description": "Use feat commit type for LangChain Postgres dependency updates", "matchPackageNames": ["langchain-postgres"], "semanticCommitType": "feat", "groupName": "langchain-postgres" }, - { - "description": "Disable isort updates for python <=3.9 in pyproject.toml", - "matchFileNames": ["pyproject.toml"], - "matchPackageNames": ["isort"], - "matchCurrentValue": "==6.1.0", - "enabled": false - } ], } From 1685173d695de0774bb6650c2663f6fcdd7d547d Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Fri, 12 Dec 2025 00:17:52 +0530 Subject: [PATCH 7/8] trigger cloud build --- pyproject.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/pyproject.toml b/pyproject.toml index 24282b77..07b2edde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,7 @@ authors = [ {name = "Google LLC", email = "googleapis-packages@google.com"} ] + dependencies = [ "cloud-sql-python-connector[asyncpg] >= 1.10.0, <2.0.0", "numpy>=1.24.4, <3.0.0; python_version >= '3.11'", From 7aae34365f73700cd2a57132ef48407f7ef60c55 Mon Sep 17 00:00:00 2001 From: dishaprakash <57954147+dishaprakash@users.noreply.github.com> Date: Fri, 12 Dec 2025 00:18:01 +0530 Subject: [PATCH 8/8] trigger cloud build --- pyproject.toml | 1 - 1 file changed, 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 07b2edde..24282b77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,6 @@ authors = [ {name = "Google LLC", email = "googleapis-packages@google.com"} ] - dependencies = [ "cloud-sql-python-connector[asyncpg] >= 1.10.0, <2.0.0", "numpy>=1.24.4, <3.0.0; python_version >= '3.11'",