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 - } ], } 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 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 ^^^^^^^^^ 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: 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 diff --git a/requirements.txt b/requirements.txt index 9eacfe4b..adf7896c 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,6 +1,5 @@ cloud-sql-python-connector[asyncpg]==1.18.5 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