From 5bbf760a618f54d85e367f4ce25d925b9606fbcf Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 26 Oct 2021 15:49:00 +0000 Subject: [PATCH 1/5] chore: delete owlbot.py --- owlbot.py | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 owlbot.py diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index 67b8f34..0000000 --- a/owlbot.py +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""This script is used to synthesize generated parts of this library.""" - -import synthtool as s -import synthtool.gcp as gcp -from synthtool.languages import python -import logging - -logging.basicConfig(level=logging.DEBUG) - -common = gcp.CommonTemplates() - -default_version = "v1" - -for library in s.get_staging_dirs(default_version): - excludes = ["README.rst", "setup.py", "nox*.py", "docs/conf.py", "docs/index.rst"] - s.move(library, excludes=excludes) - -s.remove_staging_dirs() - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library( - samples=False, - microgenerator=True, - cov_level=98, -) -s.move(templated_files, excludes=[".coveragerc"]) # microgenerator has a good .coveragerc file - -python.py_samples(skip_readmes=True) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False) From 100913bf2997dec4aaf107c69747c2b01a08322c Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 26 Oct 2021 15:50:23 +0000 Subject: [PATCH 2/5] test: increase code coverage --- testing/constraints-3.6.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index add8f1e..4758000 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -9,3 +9,6 @@ google-api-core==1.26.0 proto-plus==1.4.0 libcst==0.2.5 packaging==14.3 +# TODO: remove once google-auth>=1.25.0 is required transitively +# through google-api-core>=1.28.0 +google-auth==1.24.0 From f13e3194c378b16f9ffcce05775d5accc8d3dfc3 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 26 Oct 2021 15:51:10 +0000 Subject: [PATCH 3/5] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- docs/index.rst | 27 ++++++++++++++++++++++++--- noxfile.py | 2 +- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index c3208e9..f405b3a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,23 +2,44 @@ .. include:: multiprocessing.rst -Api Reference +This package includes clients for multiple versions of Cloud Redis. +By default, you will get version ``redis_v1``. + + +API Reference ------------- .. toctree:: :maxdepth: 2 redis_v1/services redis_v1/types + +API Reference +------------- +.. toctree:: + :maxdepth: 2 + redis_v1beta1/services redis_v1beta1/types + Migration Guide --------------- -See the guide below for instructions on migrating to the 2.x release of this library. +See the guide below for instructions on migrating to the latest version. .. toctree:: :maxdepth: 2 - UPGRADING +  UPGRADING + + +Changelog +--------- + +For a list of all ``google-cloud-redis`` releases: + +.. toctree:: + :maxdepth: 2 + changelog diff --git a/noxfile.py b/noxfile.py index f041f1f..2a2001c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -175,7 +175,7 @@ def cover(session): test runs (not system test runs), and then erases coverage data. """ session.install("coverage", "pytest-cov") - session.run("coverage", "report", "--show-missing", "--fail-under=98") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") From 9f9c43dbc9eecbcb6aed20349d1b9d800d8e862a Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 26 Oct 2021 15:52:10 +0000 Subject: [PATCH 4/5] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- docs/index.rst | 27 ++++++++++++++++++++++++--- noxfile.py | 2 +- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index c3208e9..f405b3a 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,23 +2,44 @@ .. include:: multiprocessing.rst -Api Reference +This package includes clients for multiple versions of Cloud Redis. +By default, you will get version ``redis_v1``. + + +API Reference ------------- .. toctree:: :maxdepth: 2 redis_v1/services redis_v1/types + +API Reference +------------- +.. toctree:: + :maxdepth: 2 + redis_v1beta1/services redis_v1beta1/types + Migration Guide --------------- -See the guide below for instructions on migrating to the 2.x release of this library. +See the guide below for instructions on migrating to the latest version. .. toctree:: :maxdepth: 2 - UPGRADING +  UPGRADING + + +Changelog +--------- + +For a list of all ``google-cloud-redis`` releases: + +.. toctree:: + :maxdepth: 2 + changelog diff --git a/noxfile.py b/noxfile.py index f041f1f..2a2001c 100644 --- a/noxfile.py +++ b/noxfile.py @@ -175,7 +175,7 @@ def cover(session): test runs (not system test runs), and then erases coverage data. """ session.install("coverage", "pytest-cov") - session.run("coverage", "report", "--show-missing", "--fail-under=98") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") From 223362b7ebacc15dfc9493a23e315ead71d478f3 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 27 Oct 2021 10:39:42 +0000 Subject: [PATCH 5/5] add docs/changelog.md --- docs/changelog.md | 1 + 1 file changed, 1 insertion(+) create mode 120000 docs/changelog.md diff --git a/docs/changelog.md b/docs/changelog.md new file mode 120000 index 0000000..04c99a5 --- /dev/null +++ b/docs/changelog.md @@ -0,0 +1 @@ +../CHANGELOG.md \ No newline at end of file