From c297119ac50993a9522bef539fb737871805faac Mon Sep 17 00:00:00 2001 From: Googler Date: Tue, 23 Apr 2024 14:08:53 -0700 Subject: [PATCH] chore(components): Drop GCPC Python 3.7 PiperOrigin-RevId: 627500444 --- components/google-cloud/RELEASE.md | 1 + .../google_cloud_pipeline_components/__init__.py | 8 ++++---- components/google-cloud/setup.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/components/google-cloud/RELEASE.md b/components/google-cloud/RELEASE.md index b263dca2c95..094938880c4 100644 --- a/components/google-cloud/RELEASE.md +++ b/components/google-cloud/RELEASE.md @@ -2,6 +2,7 @@ * Use larger base reward model when tuning `text-bison@001`, `chat-bison@001` and `t5-xxl` with the `preview.llm.rlhf_pipeline`. * Move `preview.model_evaluation.autosxs_pipeline` to `v1.model_evaluation.autosxs_pipeline`. * Remove default prediction column names in `v1.model_evaluation.classification_component` component to fix pipeline errors when using bigquery data source. +* Drop support for Python 3.7 since it has reached end-of-life. ## Release 2.13.1 * Fix model name preprocess error, pass correct model to `ModelImportEvaluationOp` component in `v1.model_evaluation.evaluation_llm_text_generation_pipeline` and `v1.model_evaluation.evaluation_llm_classification_pipeline`. diff --git a/components/google-cloud/google_cloud_pipeline_components/__init__.py b/components/google-cloud/google_cloud_pipeline_components/__init__.py index bbe6559da3b..e604741ea26 100644 --- a/components/google-cloud/google_cloud_pipeline_components/__init__.py +++ b/components/google-cloud/google_cloud_pipeline_components/__init__.py @@ -17,13 +17,13 @@ from google_cloud_pipeline_components.version import __version__ -if sys.version_info < (3, 8): +if sys.version_info < (3, 9): warnings.warn( ( - 'Python 3.7 has reached end-of-life. Google Cloud Pipeline Components' - ' will drop support for Python 3.7 on April 23, 2024. To use new' + 'Python 3.8 has reached end-of-life. Google Cloud Pipeline Components' + ' will drop support for Python 3.8 in Oct, 2024. To use new' ' versions of the KFP SDK after that date, you will need to upgrade' - ' to Python >= 3.8. See https://devguide.python.org/versions/ for' + ' to Python >= 3.9. See https://devguide.python.org/versions/ for' ' more details.' ), FutureWarning, diff --git a/components/google-cloud/setup.py b/components/google-cloud/setup.py index 3892809482a..83a380f83cf 100644 --- a/components/google-cloud/setup.py +++ b/components/google-cloud/setup.py @@ -77,7 +77,7 @@ ], }, include_package_data=True, - python_requires=">=3.7.0,<3.12.0", + python_requires=">=3.8.0,<3.12.0", install_requires=[ # Pin google-api-core version for the bug fixing in 1.31.5 # https://github.com/googleapis/python-api-core/releases/tag/v1.31.5