Skip to content
This repository was archived by the owner on Feb 26, 2026. It is now read-only.

Commit f230636

Browse files
1 parent 5ff43ff commit f230636

3 files changed

Lines changed: 32 additions & 15 deletions

File tree

.kokoro/samples/python3.14/common.cfg

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,26 @@ env_vars: {
140140

141141

142142

143+
#############################################
144+
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
145+
146+
env_vars: {
147+
key: "PRODUCT_AREA_LABEL"
148+
value: "observability"
149+
}
150+
env_vars: {
151+
key: "PRODUCT_LABEL"
152+
value: "logging"
153+
}
154+
env_vars: {
155+
key: "LANGUAGE_LABEL"
156+
value: "python"
157+
}
158+
159+
###################################################
160+
161+
162+
143163
#############################################
144164
# this section merged from .kokoro/common_env_vars.cfg using owlbot.py
145165

CONTRIBUTING.rst

Lines changed: 6 additions & 4 deletions
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.7, 3.8, 3.9, 3.10, 3.11, 3.12 and 3.13 on both UNIX and Windows.
25+
3.7, 3.8, 3.9, 3.10, 3.11, 3.12, 3.13 and 3.14 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
@@ -72,7 +72,7 @@ We use `nox <https://nox.readthedocs.io/en/latest/>`__ to instrument our tests.
7272

7373
- To run a single unit test::
7474

75-
$ nox -s unit-3.13 -- -k <name of test>
75+
$ nox -s unit-3.14 -- -k <name of test>
7676

7777

7878
.. note::
@@ -143,12 +143,12 @@ Running System Tests
143143
$ nox -s system
144144

145145
# Run a single system test
146-
$ nox -s system-3.12 -- -k <name of test>
146+
$ nox -s system-3.19 -- -k <name of test>
147147

148148

149149
.. note::
150150

151-
System tests are only configured to run under Python 3.12.
151+
System tests are only configured to run under Python 3.19.
152152
For expediency, we do not run them in older versions of Python 3.
153153

154154
This alone will not run the tests. You'll need to change some local
@@ -228,6 +228,7 @@ We support:
228228
- `Python 3.11`_
229229
- `Python 3.12`_
230230
- `Python 3.13`_
231+
- `Python 3.14`_
231232

232233
.. _Python 3.7: https://docs.python.org/3.7/
233234
.. _Python 3.8: https://docs.python.org/3.8/
@@ -236,6 +237,7 @@ We support:
236237
.. _Python 3.11: https://docs.python.org/3.11/
237238
.. _Python 3.12: https://docs.python.org/3.12/
238239
.. _Python 3.13: https://docs.python.org/3.13/
240+
.. _Python 3.14: https://docs.python.org/3.14/
239241

240242

241243
Supported versions can be found in our ``noxfile.py`` `config`_.

noxfile.py

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
ISORT_VERSION = "isort==5.11.0"
3333
LINT_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
3434

35-
DEFAULT_PYTHON_VERSION = "3.13"
35+
DEFAULT_PYTHON_VERSION = "3.8"
3636

3737
UNIT_TEST_PYTHON_VERSIONS: List[str] = [
3838
"3.7",
@@ -61,7 +61,7 @@
6161
UNIT_TEST_EXTRAS: List[str] = []
6262
UNIT_TEST_EXTRAS_BY_PYTHON: Dict[str, List[str]] = {}
6363

64-
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.9", "3.14"]
64+
SYSTEM_TEST_PYTHON_VERSIONS: List[str] = ["3.19"]
6565
SYSTEM_TEST_STANDARD_DEPENDENCIES: List[str] = [
6666
"mock",
6767
"pytest",
@@ -82,12 +82,7 @@
8282
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
8383

8484
nox.options.sessions = [
85-
"unit-3.9",
86-
"unit-3.10",
87-
"unit-3.11",
88-
"unit-3.12",
89-
"unit-3.13",
90-
"unit-3.14",
85+
"unit",
9186
"system",
9287
"cover",
9388
"lint",
@@ -190,8 +185,8 @@ def install_unittest_dependencies(session, *constraints):
190185
)
191186
def unit(session, protobuf_implementation):
192187
# Install all test dependencies, then install this package in-place.
193-
py_version = tuple([int(v) for v in session.python.split(".")])
194-
if protobuf_implementation == "cpp" and py_version >= (3, 11):
188+
189+
if protobuf_implementation == "cpp" and session.python in ("3.11", "3.12", "3.13"):
195190
session.skip("cpp implementation is not supported in python 3.11+")
196191

197192
constraints_path = str(
@@ -391,7 +386,7 @@ def docfx(session):
391386
)
392387

393388

394-
@nox.session(python="3.13")
389+
@nox.session(python="3.14")
395390
@nox.parametrize(
396391
"protobuf_implementation",
397392
["python", "upb", "cpp"],

0 commit comments

Comments
 (0)