diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index e2c1a6e..b827043 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -27,7 +27,6 @@ branchProtectionRules: requiredStatusCheckContexts: - "cla/google" - "lint" - - "mysql-integration-test-pr-py38 (langchain-cloud-sql-testing)" - "mysql-integration-test-pr-py39 (langchain-cloud-sql-testing)" - "mysql-integration-test-pr-py310 (langchain-cloud-sql-testing)" - "mysql-integration-test-pr-py311 (langchain-cloud-sql-testing)" diff --git a/DEVELOPER.md b/DEVELOPER.md index f8b9caa..d255836 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.8 to 3.11) were created with the following specs: +Cloud Build triggers (for Python versions 3.9 to 3.11) were created with the following specs: ```YAML -name: mysql-integration-test-pr-py38 -description: Run integration tests on PR for Python 3.8 +name: mysql-integration-test-pr-py39 +description: Run integration tests on PR for Python 3.9 filename: integration.cloudbuild.yaml github: name: langchain-google-cloud-sql-mysql-python @@ -55,7 +55,7 @@ substitutions: _INSTANCE_ID: _DB_NAME: _REGION: us-central1 - _VERSION: "3.8" + _VERSION: "3.9" ``` Use `gcloud builds triggers import --source=trigger.yaml` to create triggers via the command line diff --git a/README.rst b/README.rst index fa23109..d40d297 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.8 +Python >= 3.9 Mac/Linux ^^^^^^^^^ diff --git a/integration.cloudbuild.yaml b/integration.cloudbuild.yaml index cd6e9d2..3024a3b 100644 --- a/integration.cloudbuild.yaml +++ b/integration.cloudbuild.yaml @@ -26,7 +26,14 @@ steps: - id: Run integration tests name: python:${_VERSION} entrypoint: python - args: ["-m", "pytest", "--cov=langchain_google_cloud_sql_mysql", "--cov-config=.coveragerc", "tests/"] + args: + [ + "-m", + "pytest", + "--cov=langchain_google_cloud_sql_mysql", + "--cov-config=.coveragerc", + "tests/", + ] env: - "PROJECT_ID=$PROJECT_ID" - "INSTANCE_ID=$_INSTANCE_ID" @@ -46,7 +53,7 @@ substitutions: _INSTANCE_ID: test-instance _REGION: us-central1 _DB_NAME: test - _VERSION: "3.8" + _VERSION: "3.9" options: dynamicSubstitutions: true diff --git a/pyproject.toml b/pyproject.toml index 7b4d583..2921fbe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ dynamic = ["version"] description = "LangChain integrations for Google Cloud SQL for MySQL" readme = "README.rst" license = {file = "LICENSE"} -requires-python = ">=3.8" +requires-python = ">=3.9" authors = [ {name = "Google LLC", email = "googleapis-packages@google.com"} ] @@ -21,7 +21,6 @@ classifiers = [ "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", @@ -55,7 +54,7 @@ build-backend = "setuptools.build_meta" profile = "black" [tool.mypy] -python_version = "3.8" +python_version = "3.9" warn_unused_configs = true exclude = [ diff --git a/requirements.txt b/requirements.txt index 9f8ca58..43ae327 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ langchain==0.2.11 langchain-community==0.2.9 -numpy===1.24.4; python_version <= "3.8" -numpy==1.26.4; python_version > "3.8" +numpy==1.26.4 SQLAlchemy==2.0.31 cloud-sql-python-connector[pymysql]==1.11.0