Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .kokoro/presubmit/unit_3-13.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Format: //devtools/kokoro/config/proto/build.proto

# Run unit tests for Python 3.13
env_vars: {
key: "NOX_SESSION"
value: "unit-3.13"
}

# Run unit tests in parallel, splitting up by file
env_vars: {
key: "PYTEST_ADDOPTS"
value: "-n=auto --dist=loadscope"
}
4 changes: 3 additions & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ In order to add a feature:
documentation.

- The feature must work fully on the following CPython versions:
3.9, 3.10, 3.11 and 3.12 on both UNIX and Windows.
3.9, 3.10, 3.11, 3.12, and 3.13 on both UNIX and Windows.

- The feature must not add unnecessary dependencies (where
"unnecessary" is of course subjective, but new dependencies should
Expand Down Expand Up @@ -225,11 +225,13 @@ We support:
- `Python 3.10`_
- `Python 3.11`_
- `Python 3.12`_
- `Python 3.13`_

.. _Python 3.9: https://docs.python.org/3.9/
.. _Python 3.10: https://docs.python.org/3.10/
.. _Python 3.11: https://docs.python.org/3.11/
.. _Python 3.12: https://docs.python.org/3.12/
.. _Python 3.13: https://docs.python.org/3.13/


Supported versions can be found in our ``noxfile.py`` `config`_.
Expand Down
5 changes: 4 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,10 @@
"requests >= 2.28.1",
]

autologging_extra_require = ["mlflow>=1.27.0,<=2.16.0"]
autologging_extra_require = [
"mlflow>=1.27.0,<=2.16.0; python_version<'3.13'",
"mlflow>=1.27.0; python_version>='3.13'",
]

preview_extra_require = []

Expand Down
3 changes: 2 additions & 1 deletion testing/constraints-3.13.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ ray==2.5.0 # Pinned until 2.9.3 is verified for Ray tests
ipython==8.22.2 # Pinned to unbreak TypeAliasType import error
google-adk==0.0.2
google-genai>=1.10.0
google-vizier==0.1.21
google-vizier==0.1.21
pyarrow>=18.0.0
10 changes: 10 additions & 0 deletions tests/unit/vertexai/test_evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#

import re
import sys
import threading
import time
from unittest import mock
Expand Down Expand Up @@ -1061,6 +1062,9 @@ def test_compute_pointwise_metrics_without_model_inference(self, api_transport):
"explanation",
]

@pytest.mark.skipif(
sys.version_info >= (3, 13), reason="flaky race condition in python 3.13"
)
@pytest.mark.parametrize("api_transport", ["grpc", "rest"])
def test_compute_model_based_translation_metrics_without_model_inference(
self, api_transport
Expand Down Expand Up @@ -1372,6 +1376,9 @@ def test_compute_pairwise_metrics_without_model_inference(self, api_transport):
== 0.5
)

@pytest.mark.skipif(
sys.version_info >= (3, 13), reason="flaky race condition in python 3.13"
)
@pytest.mark.parametrize("api_transport", ["grpc", "rest"])
def test_compute_multiple_metrics(self, api_transport):
aiplatform.init(
Expand Down Expand Up @@ -1499,6 +1506,9 @@ def test_eval_result_experiment_run_logging(self):
{"row_count": 1, "mock_metric/mean": 1.0, "mock_metric/std": "NaN"}
)

@pytest.mark.skipif(
sys.version_info >= (3, 13), reason="flaky race condition in python 3.13"
)
@pytest.mark.parametrize("api_transport", ["grpc", "rest"])
def test_rubric_based_instruction_following_metric(self, api_transport):
aiplatform.init(
Expand Down
Loading