mirror of
https://github.com/GoogleCloudPlatform/vertex-ai-samples.git
synced 2026-09-26 14:42:04 +00:00
* copy github actions * copy Cloud Build * add Dockerfile for cloud build * add notebook test_folders.txt to .cloud-build and update the file path
15 lines
313 B
Python
15 lines
313 B
Python
import sys
|
|
|
|
MINIMUM_MAJOR_VERSION = 3
|
|
MINIMUM_MINOR_VERSION = 3
|
|
|
|
if (
|
|
sys.version_info.major < MINIMUM_MAJOR_VERSION
|
|
and sys.version_info.minor < MINIMUM_MINOR_VERSION
|
|
):
|
|
print("Error: Python version less than 3.5")
|
|
exit(1)
|
|
else:
|
|
print(f"Python version acceptable: {sys.version}")
|
|
exit(0)
|