Skip to content

Commit 8446e0e

Browse files
feat: remove support for Python 3.8 (#92)
* feat: remove support for Python 3.8 * chore: upgrading the langchain-community version
1 parent 2637e2d commit 8446e0e

File tree

6 files changed

+12
-14
lines changed

6 files changed

+12
-14
lines changed

.github/sync-repo-settings.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ branchProtectionRules:
2727
requiredStatusCheckContexts:
2828
- "cla/google"
2929
- "lint"
30-
- "integration-test-pr-py38 (langchain-spanner-testing)"
3130
- "integration-test-pr-py39 (langchain-spanner-testing)"
3231
- "integration-test-pr-py310 (langchain-spanner-testing)"
3332
- "integration-test-pr-py311 (langchain-spanner-testing)"

DEVELOPER.md

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

3535
#### Trigger Setup
3636

37-
Cloud Build triggers (for Python versions 3.8 to 3.11) were created with the following specs:
37+
Cloud Build triggers (for Python versions 3.9 to 3.11) were created with the following specs:
3838

3939
```YAML
40-
name: integration-test-pr-py38
41-
description: Run integration tests on PR for Python 3.8
40+
name: integration-test-pr-py39
41+
description: Run integration tests on PR for Python 3.9
4242
filename: integration.cloudbuild.yaml
4343
github:
4444
name: langchain-google-spanner-python
@@ -55,7 +55,7 @@ substitutions:
5555
_INSTANCE_ID: <ADD_VALUE>
5656
_PG_DATABASE: <ADD_VALUE>
5757
_GOOGLE_DATABASE: <ADD_VALUE>
58-
_VERSION: "3.8"
58+
_VERSION: "3.9"
5959
```
6060

6161
Use `gcloud builds triggers import --source=trigger.yaml` to create triggers via the command line
@@ -80,7 +80,7 @@ To run Cloud Build tests on GitHub from external contributors, ie RenovateBot, c
8080
#### Code Coverage
8181
Please make sure your code is fully tested. The Cloud Build integration tests are run with the `pytest-cov` code coverage plugin. They fail for PRs with a code coverage less than the threshold specified in `.coveragerc`. If your file is inside the main module and should be ignored by code coverage check, add it to the `omit` section of `.coveragerc`.
8282

83-
Check for code coverage report in any Cloud Build integration test log.
83+
Check for code coverage report in any Cloud Build integration test log.
8484
Here is a breakdown of the report:
8585
- `Stmts`: lines of executable code (statements).
8686
- `Miss`: number of lines not covered by tests.

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ With `virtualenv`_, it’s possible to install this library without needing syst
4444
Supported Python Versions
4545
^^^^^^^^^^^^^^^^^^^^^^^^^
4646

47-
Python >= 3.8
47+
Python >= 3.9
4848

4949
Mac/Linux
5050
^^^^^^^^^

integration.cloudbuild.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ substitutions:
3838
_INSTANCE_ID: test-instance
3939
_GOOGLE_DATABASE: test-google-db
4040
_PG_DATABASE: test-pg-db
41-
_VERSION: "3.8"
41+
_VERSION: "3.9"
4242

4343
options:
4444
dynamicSubstitutions: true

pyproject.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ dynamic = ["version"]
44
description = "LangChain integrations for Google Cloud Spanner"
55
readme = "README.rst"
66
license = {file = "LICENSE"}
7-
requires-python = ">=3.8"
7+
requires-python = ">=3.9"
88
authors = [
99
{name = "Google LLC", email = "googleapis-packages@google.com"}
1010
]
@@ -18,7 +18,6 @@ classifiers = [
1818
"License :: OSI Approved :: Apache Software License",
1919
"Programming Language :: Python",
2020
"Programming Language :: Python :: 3",
21-
"Programming Language :: Python :: 3.8",
2221
"Programming Language :: Python :: 3.9",
2322
"Programming Language :: Python :: 3.10",
2423
"Programming Language :: Python :: 3.11",
@@ -50,13 +49,13 @@ requires = ["setuptools"]
5049
build-backend = "setuptools.build_meta"
5150

5251
[tool.black]
53-
target-version = ['py38']
52+
target-version = ['py39']
5453

5554
[tool.isort]
5655
profile = "black"
5756

5857
[tool.mypy]
59-
python_version = 3.8
58+
python_version = 3.9
6059
warn_unused_configs = true
6160

6261
exclude = [

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
langchain-core==0.2.38
2-
langchain-community==0.2.16
1+
langchain-core==0.3.0
2+
langchain-community==0.3.0
33
google-cloud-spanner==3.49.1

0 commit comments

Comments
 (0)