Skip to content

Commit 730a1de

Browse files
authored
fix: Add support for python 3.11 (#1463)
* fix: Add support for python 3.11 * use python 3.11 for system tests
1 parent 52451a1 commit 730a1de

File tree

6 files changed

+9
-8
lines changed

6 files changed

+9
-8
lines changed

.kokoro/continuous/prerelease-deps-3.10.cfg .kokoro/continuous/prerelease-deps-3.11.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "prerelease_deps-3.10"
6+
value: "prerelease_deps-3.11"
77
}

.kokoro/presubmit/prerelease-deps-3.10.cfg .kokoro/presubmit/prerelease-deps-3.11.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "prerelease_deps-3.10"
6+
value: "prerelease_deps-3.11"
77
}

.kokoro/presubmit/snippets-3.10.cfg .kokoro/presubmit/snippets-3.11.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "snippets-3.10"
6+
value: "snippets-3.11"
77
}

.kokoro/presubmit/system-3.10.cfg .kokoro/presubmit/system-3.11.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
# Only run this nox session.
44
env_vars: {
55
key: "NOX_SESSION"
6-
value: "system-3.10"
6+
value: "system-3.11"
77
}

noxfile.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
)
3737

3838
DEFAULT_PYTHON_VERSION = "3.8"
39-
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.10"]
39+
SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.11"]
4040
UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"]
4141
CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute()
4242

@@ -80,7 +80,7 @@ def default(session, install_extras=True):
8080
constraints_path,
8181
)
8282

83-
if install_extras and session.python == "3.10":
83+
if install_extras and session.python == "3.11":
8484
install_target = ".[bqstorage,ipywidgets,pandas,tqdm,opentelemetry]"
8585
elif install_extras:
8686
install_target = ".[all]"
@@ -185,7 +185,7 @@ def system(session):
185185
# Data Catalog needed for the column ACL test with a real Policy Tag.
186186
session.install("google-cloud-datacatalog", "-c", constraints_path)
187187

188-
if session.python == "3.10":
188+
if session.python == "3.11":
189189
extras = "[bqstorage,ipywidgets,pandas,tqdm,opentelemetry]"
190190
else:
191191
extras = "[all]"
@@ -244,7 +244,7 @@ def snippets(session):
244244
session.install("google-cloud-storage", "-c", constraints_path)
245245
session.install("grpcio", "-c", constraints_path)
246246

247-
if session.python == "3.10":
247+
if session.python == "3.11":
248248
extras = "[bqstorage,ipywidgets,pandas,tqdm,opentelemetry]"
249249
else:
250250
extras = "[all]"

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@
131131
"Programming Language :: Python :: 3.8",
132132
"Programming Language :: Python :: 3.9",
133133
"Programming Language :: Python :: 3.10",
134+
"Programming Language :: Python :: 3.11",
134135
"Operating System :: OS Independent",
135136
"Topic :: Internet",
136137
],

0 commit comments

Comments
 (0)