Skip to content

Commit b97060e

Browse files
feat: Disable support for python 3.9 and enable support for python3.13 (#378)
* chore!: Disable support for python 3.9 and enable support for python3.13 * Update supported Python version to 3.10 * Update Python version requirements to 3.10 * Update requirements.txt to remove old numpy version Removed numpy version constraint for Python <= 3.9. * Update integration.cloudbuild.yaml * Clean up Renovate config by removing disabled rules Removed disabled numpy and isort update configurations for Python versions. * trigger cloud build * trigger cloud build --------- Co-authored-by: Averi Kitsch <akitsch@google.com>
1 parent b3d8d82 commit b97060e

File tree

6 files changed

+9
-32
lines changed

6 files changed

+9
-32
lines changed

.github/renovate.json5

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -48,38 +48,18 @@
4848
"matchCurrentVersion": "<=2.2.6",
4949
"enabled": false
5050
},
51-
{
52-
"description": "Disable numpy updates for python <=3.9 in requirements.txt",
53-
"matchPackageNames": ["numpy"],
54-
"matchCurrentVersion": "<=2.0.2",
55-
"enabled": false
56-
},
5751
{
5852
"description": "Disable numpy updates for python 3.10 in pyproject.toml",
5953
"matchFileNames": ["pyproject.toml"],
6054
"matchPackageNames": ["numpy"],
6155
"matchCurrentValue": ">=1.24.4, <=2.2.6",
6256
"enabled": false
6357
},
64-
{
65-
"description": "Disable numpy updates for python <=3.9 in pyproject.toml",
66-
"matchFileNames": ["pyproject.toml"],
67-
"matchPackageNames": ["numpy"],
68-
"matchCurrentValue": ">=1.24.4, <=2.0.2",
69-
"enabled": false
70-
},
7158
{
7259
"description": "Use feat commit type for LangChain Postgres dependency updates",
7360
"matchPackageNames": ["langchain-postgres"],
7461
"semanticCommitType": "feat",
7562
"groupName": "langchain-postgres"
7663
},
77-
{
78-
"description": "Disable isort updates for python <=3.9 in pyproject.toml",
79-
"matchFileNames": ["pyproject.toml"],
80-
"matchPackageNames": ["isort"],
81-
"matchCurrentValue": "==6.1.0",
82-
"enabled": false
83-
}
8464
],
8565
}

DEVELOPER.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ These tests are registered as required tests in `.github/sync-repo-settings.yaml
4242

4343
#### Trigger Setup
4444

45-
Cloud Build triggers (for Python versions 3.9 to 3.11) were created with the following specs:
45+
Cloud Build triggers (for Python versions 3.10 to 3.13) were created with the following specs:
4646

4747
```YAML
4848
name: pg-integration-test-pr-py39
49-
description: Run integration tests on PR for Python 3.9
49+
description: Run integration tests on PR for Python 3.10
5050
filename: integration.cloudbuild.yaml
5151
github:
5252
name: langchain-google-cloud-sql-pg-python
@@ -64,7 +64,7 @@ substitutions:
6464
_DATABASE_ID: <ADD_VALUE>
6565
_INSTANCE_ID: <ADD_VALUE>
6666
_REGION: us-central1
67-
_VERSION: "3.9"
67+
_VERSION: "3.10"
6868
```
6969

7070
Use `gcloud builds triggers import --source=trigger.yaml` to create triggers via the command line

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies.
5656
Supported Python Versions
5757
^^^^^^^^^^^^^^^^^^^^^^^^^
5858

59-
Python >= 3.9
59+
Python >= 3.10
6060

6161
Mac/Linux
6262
^^^^^^^^^

integration.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ substitutions:
6262
_DATABASE_PORT: "5432"
6363
_DATABASE_ID: test-database
6464
_REGION: us-central1
65-
_VERSION: "3.9"
65+
_VERSION: "3.10"
6666
_IP_ADDRESS: "127.0.0.1"
6767

6868
options:

pyproject.toml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44
description = "LangChain integrations for Google Cloud SQL for PostgreSQL"
55
readme = "README.rst"
66
license = {file = "LICENSE"}
7-
requires-python = ">=3.9"
7+
requires-python = ">=3.10"
88
authors = [
99
{name = "Google LLC", email = "googleapis-packages@google.com"}
1010
]
@@ -13,7 +13,6 @@ dependencies = [
1313
"cloud-sql-python-connector[asyncpg] >= 1.10.0, <2.0.0",
1414
"numpy>=1.24.4, <3.0.0; python_version >= '3.11'",
1515
"numpy>=1.24.4, <=2.2.6; python_version == '3.10'",
16-
"numpy>=1.24.4, <=2.0.2; python_version <= '3.9'",
1716
"langchain-postgres>=0.0.16",
1817
]
1918

@@ -22,10 +21,10 @@ classifiers = [
2221
"License :: OSI Approved :: Apache Software License",
2322
"Programming Language :: Python",
2423
"Programming Language :: Python :: 3",
25-
"Programming Language :: Python :: 3.9",
2624
"Programming Language :: Python :: 3.10",
2725
"Programming Language :: Python :: 3.11",
2826
"Programming Language :: Python :: 3.12",
27+
"Programming Language :: Python :: 3.13",
2928
]
3029

3130
[tool.setuptools.dynamic]
@@ -43,8 +42,7 @@ langgraph = [
4342
]
4443
test = [
4544
"black[jupyter]==25.9.0",
46-
"isort==6.1.0; python_version == '3.9'",
47-
"isort==7.0.0; python_version >= '3.10'",
45+
"isort==7.0.0",
4846
"mypy==1.18.2",
4947
"pytest-asyncio==0.26.0",
5048
"pytest==8.4.2",
@@ -64,7 +62,7 @@ target-version = ['py39']
6462
profile = "black"
6563

6664
[tool.mypy]
67-
python_version = 3.9
65+
python_version = "3.10"
6866
warn_unused_configs = true
6967
disallow_incomplete_defs = true
7068

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
cloud-sql-python-connector[asyncpg]==1.18.5
22
numpy==2.3.3; python_version >= "3.11"
33
numpy==2.2.6; python_version == "3.10"
4-
numpy==2.0.2; python_version <= "3.9"
54
langgraph==0.6.10
65
langchain-postgres==0.0.16

0 commit comments

Comments
 (0)