GeezerVison is showing github.com — feat: Add Python 3.13 Kokoro run config · silverdev/python-aiplatform@57d2709
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 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.13 | | 4 | +env_vars: { | | 5 | + key: "NOX_SESSION" | | 6 | + value: "unit-3.13" | | 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: CONTRIBUTING.rst +3-1Lines changed: 3 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -22,7 +22,7 @@ In order to add a feature: | 22 | 22 | documentation. | 23 | 23 |
| 24 | 24 | - The feature must work fully on the following CPython versions: | 25 | | - 3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows. | | 25 | + 3.9, 3.10, 3.11, 3.12, and 3.13 on both UNIX and Windows. | 26 | 26 |
| 27 | 27 | - The feature must not add unnecessary dependencies (where | 28 | 28 | "unnecessary" is of course subjective, but new dependencies should | @@ -225,11 +225,13 @@ We support: | 225 | 225 | - `Python 3.10`_ | 226 | 226 | - `Python 3.11`_ | 227 | 227 | - `Python 3.12`_ | | 228 | +- `Python 3.13`_ | 228 | 229 |
| 229 | 230 | .. _Python 3.9: https://docs.python.org/3.9/ | 230 | 231 | .. _Python 3.10: https://docs.python.org/3.10/ | 231 | 232 | .. _Python 3.11: https://docs.python.org/3.11/ | 232 | 233 | .. _Python 3.12: https://docs.python.org/3.12/ | | 234 | +.. _Python 3.13: https://docs.python.org/3.13/ | 233 | 235 |
| 234 | 236 |
| 235 | 237 | Supported versions can be found in our ``noxfile.py`` `config`_. | |
Collapse file Copy file name to clipboardExpand all lines: setup.py +4-1Lines changed: 4 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 93 | 93 | "requests >= 2.28.1", | 94 | 94 | ] | 95 | 95 |
| 96 | | -autologging_extra_require = ["mlflow>=1.27.0,<=2.16.0"] | | 96 | +autologging_extra_require = [ | | 97 | + "mlflow>=1.27.0,<=2.16.0; python_version<'3.13'", | | 98 | + "mlflow>=1.27.0; python_version>='3.13'", | | 99 | +] | 97 | 100 |
| 98 | 101 | preview_extra_require = [] | 99 | 102 |
| |
Collapse file Copy file name to clipboardExpand all lines: testing/constraints-3.13.txt +2-1Lines changed: 2 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -12,4 +12,5 @@ ray==2.5.0 # Pinned until 2.9.3 is verified for Ray tests | 12 | 12 | ipython==8.22.2 # Pinned to unbreak TypeAliasType import error | 13 | 13 | google-adk==0.0.2 | 14 | 14 | google-genai>=1.10.0 | 15 | | -google-vizier==0.1.21 | | 15 | +google-vizier==0.1.21 | | 16 | +pyarrow>=18.0.0 |
Collapse file Copy file name to clipboardExpand all lines: tests/unit/vertexai/test_evaluation.py +10Lines changed: 10 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 16 | 16 | # | 17 | 17 |
| 18 | 18 | import re | | 19 | +import sys | 19 | 20 | import threading | 20 | 21 | import time | 21 | 22 | from unittest import mock | @@ -1061,6 +1062,9 @@ def test_compute_pointwise_metrics_without_model_inference(self, api_transport): | 1061 | 1062 | "explanation", | 1062 | 1063 | ] | 1063 | 1064 |
| | 1065 | + @pytest.mark.skipif( | | 1066 | + sys.version_info >= (3, 13), reason="flaky race condition in python 3.13" | | 1067 | + ) | 1064 | 1068 | @pytest.mark.parametrize("api_transport", ["grpc", "rest"]) | 1065 | 1069 | def test_compute_model_based_translation_metrics_without_model_inference( | 1066 | 1070 | self, api_transport | @@ -1372,6 +1376,9 @@ def test_compute_pairwise_metrics_without_model_inference(self, api_transport): | 1372 | 1376 | == 0.5 | 1373 | 1377 | ) | 1374 | 1378 |
| | 1379 | + @pytest.mark.skipif( | | 1380 | + sys.version_info >= (3, 13), reason="flaky race condition in python 3.13" | | 1381 | + ) | 1375 | 1382 | @pytest.mark.parametrize("api_transport", ["grpc", "rest"]) | 1376 | 1383 | def test_compute_multiple_metrics(self, api_transport): | 1377 | 1384 | aiplatform.init( | @@ -1499,6 +1506,9 @@ def test_eval_result_experiment_run_logging(self): | 1499 | 1506 | {"row_count": 1, "mock_metric/mean": 1.0, "mock_metric/std": "NaN"} | 1500 | 1507 | ) | 1501 | 1508 |
| | 1509 | + @pytest.mark.skipif( | | 1510 | + sys.version_info >= (3, 13), reason="flaky race condition in python 3.13" | | 1511 | + ) | 1502 | 1512 | @pytest.mark.parametrize("api_transport", ["grpc", "rest"]) | 1503 | 1513 | def test_rubric_based_instruction_following_metric(self, api_transport): | 1504 | 1514 | aiplatform.init( | |
|