GeezerVison is showing github.com — feat: add initial support for Python v3.14 · googleapis/python-aiplatform@4618729
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/sync-repo-settings.yaml +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,6 +21,7 @@ branchProtectionRules: | 21 | 21 | - 'Presubmit - Unit Tests Python 3.11' | 22 | 22 | - 'Presubmit - Unit Tests Python 3.12' | 23 | 23 | - 'Presubmit - Unit Tests Python 3.13' | | 24 | + - 'Presubmit - Unit Tests Python 3.14' | 24 | 25 | - 'Presubmit - Unit Tests Ray 2.9.3' | 25 | 26 | - 'Presubmit - Unit Tests Ray 2.33.0' | 26 | 27 | - 'Presubmit - Unit Tests Ray 2.42.0 (Python 3.10)' | |
Collapse file Copy file name to clipboardExpand all lines: .github/workflows/mypy.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | runs-on: ubuntu-latest | 17 | 17 | strategy: | 18 | 18 | matrix: | 19 | | - python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | | 19 | + python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14'] | 20 | 20 |
| 21 | 21 | steps: | 22 | 22 | - name: Checkout code | |
Collapse file Copy file name to clipboard +13Lines changed: 13 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# Format: //devtools/kokoro/config/proto/build.proto | | 2 | + | | 3 | +# Run unit tests for Python 3.14 | | 4 | +env_vars: { | | 5 | + key: "NOX_SESSION" | | 6 | + value: "unit-3.14" | | 7 | +} | | 8 | + | | 9 | +# Run unit tests in parallel, splitting up by file | | 10 | +env_vars: { | | 11 | + key: "PYTEST_ADDOPTS" | | 12 | + value: "-n=auto --dist=loadscope" | | 13 | +} |
Collapse file Copy file name to clipboardExpand all lines: noxfile.py +4-4Lines changed: 4 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 53 | 53 | "recommonmark", | 54 | 54 | ) | 55 | 55 |
| 56 | | -UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"] | 57 | | -UNIT_TEST_LANGCHAIN_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"] | 58 | | -UNIT_TEST_AG2_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"] | 59 | | -UNIT_TEST_LLAMA_INDEX_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13"] | | 56 | +UNIT_TEST_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | | 57 | +UNIT_TEST_LANGCHAIN_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | | 58 | +UNIT_TEST_AG2_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | | 59 | +UNIT_TEST_LLAMA_INDEX_PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | 60 | 60 | PYTHON_TO_RAY_VERSIONS = { | 61 | 61 | "3.10": ["2.9.3", "2.33.0", "2.42.0"], | 62 | 62 | "3.11": ["2.42.0", "2.47.1"], | |
Collapse file Copy file name to clipboardExpand all lines: owlbot.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 99 | 99 | templated_files = common.py_library( | 100 | 100 | cov_level=98, | 101 | 101 | system_test_python_versions=["3.9"], | 102 | | - unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13"], | | 102 | + unit_test_python_versions=["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"], | 103 | 103 | unit_test_extras=["testing"], | 104 | 104 | system_test_extras=["testing"], | 105 | 105 | microgenerator=True, | |
Collapse file Copy file name to clipboardExpand all lines: setup.py +4-2Lines changed: 4 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 57 | 57 | lit_extra_require = [ | 58 | 58 | "tensorflow >= 2.3.0, <3.0.0; python_version<'3.13'", | 59 | 59 | "pandas >= 1.0.0", | 60 | | - "lit-nlp == 0.4.0", | | 60 | + "lit-nlp == 0.4.0; python_version<'3.14'", | 61 | 61 | "explainable-ai-sdk >= 1.0.0; python_version<'3.13'", | 62 | 62 | ] | 63 | 63 | featurestore_extra_require = [ | | 249 | 249 | # aiohttp is required for async rest tests (need google-auth[aiohttp], | 250 | 250 | # but can't specify extras in constraints files) | 251 | 251 | "aiohttp", | 252 | | - "bigframes; python_version>='3.10'", | | 252 | + "bigframes; python_version>='3.10' and python_version<'3.14'", | 253 | 253 | # google-api-core 2.x is required since kfp requires protobuf > 4 | 254 | 254 | "google-api-core >= 2.11, < 3.0.0", | 255 | 255 | "grpcio-testing", | | 260 | 260 | "pytest-cov", | 261 | 261 | "mock", | 262 | 262 | "pytest-xdist", | | 263 | + "Pillow", | 263 | 264 | "scikit-learn<1.6.0; python_version<='3.10'", | 264 | 265 | "scikit-learn; python_version>'3.10'", | 265 | 266 | # Lazy import requires > 2.12.0 | | 356 | 357 | "Programming Language :: Python :: 3.11", | 357 | 358 | "Programming Language :: Python :: 3.12", | 358 | 359 | "Programming Language :: Python :: 3.13", | | 360 | + "Programming Language :: Python :: 3.14", | 359 | 361 | "Topic :: Internet", | 360 | 362 | "Topic :: Software Development :: Libraries :: Python Modules", | 361 | 363 | ], | |
Collapse file Copy file name to clipboard +16Lines changed: 16 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +# -*- coding: utf-8 -*- | | 2 | +# This constraints file is required for unit tests. | | 3 | +# List all library dependencies and extras in this file. | | 4 | +google-api-core==2.21.0 # Tests google-api-core with rest async support | | 5 | +google-auth==2.35.0 # Tests google-auth with rest async support | | 6 | +proto-plus | | 7 | +mock==4.0.2 | | 8 | +google-cloud-storage==2.10.0 # Increased for kfp 2.0 compatibility | | 9 | +packaging==24.1 # Increased to unbreak canonicalize_version error (b/377774673) | | 10 | +pytest-xdist==3.3.1 # Pinned to unbreak unit tests | | 11 | +ray==2.5.0 # Pinned until 2.9.3 is verified for Ray tests | | 12 | +ipython==8.22.2 # Pinned to unbreak TypeAliasType import error | | 13 | +google-adk==0.0.2 | | 14 | +google-genai>=1.10.0 | | 15 | +google-vizier==0.1.21 | | 16 | +pyarrow>=18.0.0 |
|