GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: Add Python 3.13 Kokoro run config · silverdev/python-aiplatform@57d2709

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .kokoro/presubmit
    • unit_3-13.cfg
  • CONTRIBUTING.rst
  • setup.py
  • testing
    • constraints-3.13.txt
  • tests/unit/vertexai
    • test_evaluation.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.kokoro/presubmit/unit_3-13.cfg‎

Copy file name to clipboard
+13Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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

‎CONTRIBUTING.rst‎

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 numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ In order to add a feature:
2222
documentation.
2323

2424
- 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.
2626

2727
- The feature must not add unnecessary dependencies (where
2828
"unnecessary" is of course subjective, but new dependencies should
@@ -225,11 +225,13 @@ We support:
225225
- `Python 3.10`_
226226
- `Python 3.11`_
227227
- `Python 3.12`_
228+
- `Python 3.13`_
228229

229230
.. _Python 3.9: https://docs.python.org/3.9/
230231
.. _Python 3.10: https://docs.python.org/3.10/
231232
.. _Python 3.11: https://docs.python.org/3.11/
232233
.. _Python 3.12: https://docs.python.org/3.12/
234+
.. _Python 3.13: https://docs.python.org/3.13/
233235

234236

235237
Supported versions can be found in our ``noxfile.py`` `config`_.
Collapse file

‎setup.py‎

Copy file name to clipboardExpand all lines: setup.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@
9393
"requests >= 2.28.1",
9494
]
9595

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+
]
97100

98101
preview_extra_require = []
99102

Collapse file

‎testing/constraints-3.13.txt‎

Copy file name to clipboardExpand all lines: testing/constraints-3.13.txt
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ ray==2.5.0 # Pinned until 2.9.3 is verified for Ray tests
1212
ipython==8.22.2 # Pinned to unbreak TypeAliasType import error
1313
google-adk==0.0.2
1414
google-genai>=1.10.0
15-
google-vizier==0.1.21
15+
google-vizier==0.1.21
16+
pyarrow>=18.0.0
Collapse file

‎tests/unit/vertexai/test_evaluation.py‎

Copy file name to clipboardExpand all lines: tests/unit/vertexai/test_evaluation.py
+10Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#
1717

1818
import re
19+
import sys
1920
import threading
2021
import time
2122
from unittest import mock
@@ -1061,6 +1062,9 @@ def test_compute_pointwise_metrics_without_model_inference(self, api_transport):
10611062
"explanation",
10621063
]
10631064

1065+
@pytest.mark.skipif(
1066+
sys.version_info >= (3, 13), reason="flaky race condition in python 3.13"
1067+
)
10641068
@pytest.mark.parametrize("api_transport", ["grpc", "rest"])
10651069
def test_compute_model_based_translation_metrics_without_model_inference(
10661070
self, api_transport
@@ -1372,6 +1376,9 @@ def test_compute_pairwise_metrics_without_model_inference(self, api_transport):
13721376
== 0.5
13731377
)
13741378

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

1509+
@pytest.mark.skipif(
1510+
sys.version_info >= (3, 13), reason="flaky race condition in python 3.13"
1511+
)
15021512
@pytest.mark.parametrize("api_transport", ["grpc", "rest"])
15031513
def test_rubric_based_instruction_following_metric(self, api_transport):
15041514
aiplatform.init(

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.