From 9defc1ff026e8f6a704313d86f32018a106fa780 Mon Sep 17 00:00:00 2001 From: Tres Seaver Date: Tue, 5 Oct 2021 15:12:56 -0400 Subject: [PATCH] feat: add support for Python 3.10 --- CONTRIBUTING.rst | 6 +++--- noxfile.py | 2 +- owlbot.py | 1 + setup.py | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 5352f2953..f0118678a 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -22,7 +22,7 @@ In order to add a feature: documentation. - The feature must work fully on the following CPython versions: 2.7, - 3.5, 3.6, 3.7 and 3.8 on both UNIX and Windows. + 3.5, 3.6, 3.7, 3.8, 3.9 and 3.10 on both UNIX and Windows. - The feature must not add unnecessary dependencies (where "unnecessary" is of course subjective, but new dependencies should @@ -111,7 +111,7 @@ Coding Style should point to the official ``googleapis`` checkout and the the branch should be the main branch on that remote (``main``). -- This repository contains configuration for the +- This repository contains configuration for the `pre-commit `__ tool, which automates checking our linters during a commit. If you have it installed on your ``$PATH``, you can enable enforcing those checks via: @@ -156,7 +156,7 @@ Running System Tests `docs `__ for more details. -- Once you have downloaded your json keys, set the environment variable +- Once you have downloaded your json keys, set the environment variable ``GOOGLE_APPLICATION_CREDENTIALS`` to the absolute path of the json file:: $ export GOOGLE_APPLICATION_CREDENTIALS="/Users//path/to/app_credentials.json" diff --git a/noxfile.py b/noxfile.py index 3e6a7ceaa..67bfa4eeb 100644 --- a/noxfile.py +++ b/noxfile.py @@ -29,7 +29,7 @@ DEFAULT_PYTHON_VERSION = "3.8" SYSTEM_TEST_PYTHON_VERSIONS = ["2.7", "3.8"] -UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9"] +UNIT_TEST_PYTHON_VERSIONS = ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10"] CONFORMANCE_TEST_PYTHON_VERSIONS = ["3.8"] _DEFAULT_STORAGE_HOST = "https://storage.googleapis.com" diff --git a/owlbot.py b/owlbot.py index 73d931454..828536f24 100644 --- a/owlbot.py +++ b/owlbot.py @@ -26,6 +26,7 @@ templated_files = common.py_library( cov_level=100, split_system_tests=True, + unit_test_python_versions=["3.6", "3.7", "3.8", "3.9", "3.10"], system_test_external_dependencies=[ "google-cloud-iam", "google-cloud-pubsub < 2.0.0", diff --git a/setup.py b/setup.py index d679c2727..0bb36ff93 100644 --- a/setup.py +++ b/setup.py @@ -91,6 +91,7 @@ "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", "Operating System :: OS Independent", "Topic :: Internet", ],