From 4adb2ab5925c8a9f9dfd9320dcc4f424ffe6704d Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 12 Jan 2023 17:40:03 +0000 Subject: [PATCH 1/2] fix: Add support for python 3.11 --- .kokoro/continuous/prerelease-deps-3.10.cfg | 2 +- .kokoro/presubmit/prerelease-deps-3.10.cfg | 2 +- .kokoro/presubmit/snippets-3.10.cfg | 2 +- .kokoro/presubmit/system-3.10.cfg | 2 +- noxfile.py | 8 ++++---- setup.py | 1 + 6 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.kokoro/continuous/prerelease-deps-3.10.cfg b/.kokoro/continuous/prerelease-deps-3.10.cfg index 339980bdd..1e19f1239 100644 --- a/.kokoro/continuous/prerelease-deps-3.10.cfg +++ b/.kokoro/continuous/prerelease-deps-3.10.cfg @@ -3,5 +3,5 @@ # Only run this nox session. env_vars: { key: "NOX_SESSION" - value: "prerelease_deps-3.10" + value: "prerelease_deps-3.11" } diff --git a/.kokoro/presubmit/prerelease-deps-3.10.cfg b/.kokoro/presubmit/prerelease-deps-3.10.cfg index 339980bdd..1e19f1239 100644 --- a/.kokoro/presubmit/prerelease-deps-3.10.cfg +++ b/.kokoro/presubmit/prerelease-deps-3.10.cfg @@ -3,5 +3,5 @@ # Only run this nox session. env_vars: { key: "NOX_SESSION" - value: "prerelease_deps-3.10" + value: "prerelease_deps-3.11" } diff --git a/.kokoro/presubmit/snippets-3.10.cfg b/.kokoro/presubmit/snippets-3.10.cfg index dde182fb9..74af6dd07 100644 --- a/.kokoro/presubmit/snippets-3.10.cfg +++ b/.kokoro/presubmit/snippets-3.10.cfg @@ -3,5 +3,5 @@ # Only run this nox session. env_vars: { key: "NOX_SESSION" - value: "snippets-3.10" + value: "snippets-3.11" } diff --git a/.kokoro/presubmit/system-3.10.cfg b/.kokoro/presubmit/system-3.10.cfg index 30956a3ab..5ff31a603 100644 --- a/.kokoro/presubmit/system-3.10.cfg +++ b/.kokoro/presubmit/system-3.10.cfg @@ -3,5 +3,5 @@ # Only run this nox session. env_vars: { key: "NOX_SESSION" - value: "system-3.10" + value: "system-3.11" } diff --git a/noxfile.py b/noxfile.py index 5f08c016b..381876462 100644 --- a/noxfile.py +++ b/noxfile.py @@ -36,7 +36,7 @@ ) DEFAULT_PYTHON_VERSION = "3.8" -SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.10"] +SYSTEM_TEST_PYTHON_VERSIONS = ["3.8", "3.11"] UNIT_TEST_PYTHON_VERSIONS = ["3.7", "3.8", "3.9", "3.10", "3.11"] CURRENT_DIRECTORY = pathlib.Path(__file__).parent.absolute() @@ -80,7 +80,7 @@ def default(session, install_extras=True): constraints_path, ) - if install_extras and session.python == "3.10": + if install_extras and session.python == "3.11": install_target = ".[bqstorage,ipywidgets,pandas,tqdm,opentelemetry]" elif install_extras: install_target = ".[all]" @@ -185,7 +185,7 @@ def system(session): # Data Catalog needed for the column ACL test with a real Policy Tag. session.install("google-cloud-datacatalog", "-c", constraints_path) - if session.python == "3.10": + if session.python == "3.11": extras = "[bqstorage,ipywidgets,pandas,tqdm,opentelemetry]" else: extras = "[all]" @@ -244,7 +244,7 @@ def snippets(session): session.install("google-cloud-storage", "-c", constraints_path) session.install("grpcio", "-c", constraints_path) - if session.python == "3.10": + if session.python == "3.11": extras = "[bqstorage,ipywidgets,pandas,tqdm,opentelemetry]" else: extras = "[all]" diff --git a/setup.py b/setup.py index fd1687193..77a9bb53c 100644 --- a/setup.py +++ b/setup.py @@ -131,6 +131,7 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "Operating System :: OS Independent", "Topic :: Internet", ], From 604ec826cbc377c9da01a98a82c478d02bcd1657 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 12 Jan 2023 13:37:38 -0500 Subject: [PATCH 2/2] use python 3.11 for system tests --- .../{prerelease-deps-3.10.cfg => prerelease-deps-3.11.cfg} | 0 .../{prerelease-deps-3.10.cfg => prerelease-deps-3.11.cfg} | 0 .kokoro/presubmit/{snippets-3.10.cfg => snippets-3.11.cfg} | 0 .kokoro/presubmit/{system-3.10.cfg => system-3.11.cfg} | 0 4 files changed, 0 insertions(+), 0 deletions(-) rename .kokoro/continuous/{prerelease-deps-3.10.cfg => prerelease-deps-3.11.cfg} (100%) rename .kokoro/presubmit/{prerelease-deps-3.10.cfg => prerelease-deps-3.11.cfg} (100%) rename .kokoro/presubmit/{snippets-3.10.cfg => snippets-3.11.cfg} (100%) rename .kokoro/presubmit/{system-3.10.cfg => system-3.11.cfg} (100%) diff --git a/.kokoro/continuous/prerelease-deps-3.10.cfg b/.kokoro/continuous/prerelease-deps-3.11.cfg similarity index 100% rename from .kokoro/continuous/prerelease-deps-3.10.cfg rename to .kokoro/continuous/prerelease-deps-3.11.cfg diff --git a/.kokoro/presubmit/prerelease-deps-3.10.cfg b/.kokoro/presubmit/prerelease-deps-3.11.cfg similarity index 100% rename from .kokoro/presubmit/prerelease-deps-3.10.cfg rename to .kokoro/presubmit/prerelease-deps-3.11.cfg diff --git a/.kokoro/presubmit/snippets-3.10.cfg b/.kokoro/presubmit/snippets-3.11.cfg similarity index 100% rename from .kokoro/presubmit/snippets-3.10.cfg rename to .kokoro/presubmit/snippets-3.11.cfg diff --git a/.kokoro/presubmit/system-3.10.cfg b/.kokoro/presubmit/system-3.11.cfg similarity index 100% rename from .kokoro/presubmit/system-3.10.cfg rename to .kokoro/presubmit/system-3.11.cfg