|
1 | 1 | # -*- coding: utf-8 -*- |
2 | 2 | # |
3 | | -# Copyright 2023 Google LLC |
| 3 | +# Copyright 2024 Google LLC |
4 | 4 | # |
5 | 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
6 | 6 | # you may not use this file except in compliance with the License. |
|
35 | 35 |
|
36 | 36 | DEFAULT_PYTHON_VERSION = "3.10" |
37 | 37 |
|
38 | | -UNIT_TEST_PYTHON_VERSIONS: List[str] = ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] |
| 38 | +UNIT_TEST_PYTHON_VERSIONS: List[str] = [ |
| 39 | + "3.7", |
| 40 | + "3.8", |
| 41 | + "3.9", |
| 42 | + "3.10", |
| 43 | + "3.11", |
| 44 | + "3.12", |
| 45 | + "3.13", |
| 46 | +] |
39 | 47 | UNIT_TEST_STANDARD_DEPENDENCIES = [ |
40 | 48 | "mock", |
41 | 49 | "asyncmock", |
|
49 | 57 | UNIT_TEST_EXTRAS: List[str] = [] |
50 | 58 | UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {} |
51 | 59 |
|
52 | | -SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 60 | +SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] |
53 | 61 | SYSTEM_TEST_STANDARD_DEPENDENCIES = [ |
54 | 62 | "mock", |
55 | 63 | "pytest", |
@@ -168,7 +176,7 @@ def install_unittest_dependencies(session, *constraints): |
168 | 176 | def unit(session, protobuf_implementation): |
169 | 177 | # Install all test dependencies, then install this package in-place. |
170 | 178 |
|
171 | | - if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12"): |
| 179 | + if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"): |
172 | 180 | session.skip("cpp implementation is not supported in python 3.11+") |
173 | 181 |
|
174 | 182 | constraints_path = str( |
@@ -368,15 +376,15 @@ def docfx(session): |
368 | 376 | ) |
369 | 377 |
|
370 | 378 |
|
371 | | -@nox.session(python="3.12") |
| 379 | +@nox.session(python="3.13") |
372 | 380 | @nox.parametrize( |
373 | 381 | "protobuf_implementation", |
374 | 382 | ["python", "upb", "cpp"], |
375 | 383 | ) |
376 | 384 | def prerelease_deps(session, protobuf_implementation): |
377 | 385 | """Run all tests with prerelease versions of dependencies installed.""" |
378 | 386 |
|
379 | | - if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12"): |
| 387 | + if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"): |
380 | 388 | session.skip("cpp implementation is not supported in python 3.11+") |
381 | 389 |
|
382 | 390 | # Install all dependencies |
|
0 commit comments