Skip to content

Commit

Permalink
chore: Bump the default base images of CPR to python 3.10 because pyt…
Browse files Browse the repository at this point in the history
…hon 3.7 has reached end of life.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#2548 from googleapis:release-please--branches--main a725eac
PiperOrigin-RevId: 554850979
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed Sep 6, 2023
1 parent 5dba09b commit f4241dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions google/cloud/aiplatform/prediction/local_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
DEFAULT_PREDICT_ROUTE = "/predict"
DEFAULT_HEALTH_ROUTE = "/health"
DEFAULT_HTTP_PORT = 8080
_DEFAULT_SDK_REQUIREMENTS = ["google-cloud-aiplatform[prediction]>=1.16.0"]
_DEFAULT_SDK_REQUIREMENTS = ["google-cloud-aiplatform[prediction]>=1.27.0"]
_DEFAULT_HANDLER_MODULE = "google.cloud.aiplatform.prediction.handler"
_DEFAULT_HANDLER_CLASS = "PredictionHandler"
_DEFAULT_PYTHON_MODULE = "google.cloud.aiplatform.prediction.model_server"
Expand Down Expand Up @@ -150,7 +150,7 @@ def build_cpr_model(
output_image_uri: str,
predictor: Optional[Type[Predictor]] = None,
handler: Type[Handler] = PredictionHandler,
base_image: str = "python:3.7",
base_image: str = "python:3.10",
requirements_path: Optional[str] = None,
extra_packages: Optional[List[str]] = None,
no_cache: bool = False,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/aiplatform/test_prediction.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@

_TEST_IMAGE_URI = "test_image:latest"

_DEFAULT_BASE_IMAGE = "python:3.7"
_DEFAULT_BASE_IMAGE = "python:3.10"
_MODEL_SERVER_FILE = "cpr_model_server.py"
_TEST_SRC_DIR = "user_code"
_TEST_PREDICTOR_FILE = "predictor.py"
Expand Down

0 comments on commit f4241dc

Please sign in to comment.