From 011f660b04ccefcbe8d385f29657260e0e0f062e Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Tue, 19 Oct 2021 12:48:15 +0000 Subject: [PATCH 1/7] chore: delete owlbot.py --- .github/.OwlBot.lock.yaml | 2 +- owlbot.py | 118 -------------------------------------- 2 files changed, 1 insertion(+), 119 deletions(-) delete mode 100644 owlbot.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 7d98291c..ba7b2f7c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:58f73ba196b5414782605236dd0712a73541b44ff2ff4d3a36ec41092dd6fa5b + digest: sha256:3728d8fd14daa46a96d04ce61c6451a3ac864dc48fb71eecbb4411f4a95618d4 diff --git a/owlbot.py b/owlbot.py deleted file mode 100644 index 8e813ea1..00000000 --- a/owlbot.py +++ /dev/null @@ -1,118 +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 pathlib - -import synthtool as s - -from synthtool import gcp -from synthtool.languages import python - - -REPO_ROOT = pathlib.Path(__file__).parent.absolute() - -common = gcp.CommonTemplates() - -# ---------------------------------------------------------------------------- -# Generate bigquery_datatransfer GAPIC layer -# ---------------------------------------------------------------------------- -for library in s.get_staging_dirs("v1"): - - # Fix incorrect DeprecationWarning - # Fixed in https://github.com/googleapis/gapic-generator-python/pull/943 - s.replace( - "google/**/*client.py", - "warnings\.DeprecationWarning", - "DeprecationWarning" - ) - - s.move(library, excludes=["*.tar.gz", "docs/index.rst", "README.rst", "setup.py"]) - -s.remove_staging_dirs() - - -# ---------------------------------------------------------------------------- -# Add templated files -# ---------------------------------------------------------------------------- -templated_files = common.py_library(microgenerator=True, samples=True, cov_level=99) -s.move(templated_files, excludes=[".coveragerc"]) - -# ---------------------------------------------------------------------------- -# Samples templates -# ---------------------------------------------------------------------------- - -python.py_samples(skip_readmes=True) - -# Remove the replacements below once -# https://github.com/googleapis/synthtool/pull/1188 is merged - -# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files -s.replace( - ".kokoro/*.sh", "repo-automation-bots/tree/master", "repo-automation-bots/tree/main" -) - -# Customize CONTRIBUTING.rst to replace master with main -s.replace( - "CONTRIBUTING.rst", - "fetch and merge changes from upstream into master", - "fetch and merge changes from upstream into main", -) - -s.replace( - "CONTRIBUTING.rst", - "git merge upstream/master", - "git merge upstream/main", -) - -s.replace( - "CONTRIBUTING.rst", - """export GOOGLE_CLOUD_TESTING_BRANCH=\"master\"""", - """export GOOGLE_CLOUD_TESTING_BRANCH=\"main\"""", -) - -s.replace( - "CONTRIBUTING.rst", - "remote \(``master``\)", - "remote (``main``)", -) - -s.replace( - "CONTRIBUTING.rst", - "blob/master/CONTRIBUTING.rst", - "blob/main/CONTRIBUTING.rst", -) - -s.replace( - "CONTRIBUTING.rst", - "blob/master/noxfile.py", - "blob/main/noxfile.py", -) - -s.replace( - "docs/conf.py", - "master_doc", - "root_doc", -) - -s.replace( - "docs/conf.py", - "# The master toctree document.", - "# The root toctree document.", -) - -s.shell.run(["nox", "-s", "blacken"], hide_output=False) -for noxfile in REPO_ROOT.glob("samples/**/noxfile.py"): - s.shell.run(["nox", "-s", "blacken"], cwd=noxfile.parent, hide_output=False) From 67f0e6a81cc6306c0146c67a04e21a18ade33eec Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Tue, 19 Oct 2021 12:51:32 +0000 Subject: [PATCH 2/7] =?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 | 20 ++++---------------- noxfile.py | 2 +- 2 files changed, 5 insertions(+), 17 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 46d93251..50819509 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,31 +2,19 @@ .. include:: multiprocessing.rst + API Reference ------------- - -.. toctree:: - :maxdepth: 2 - - Client - Types - - -Migration Guide ---------------- - -See the guide below for instructions on migrating to the 2.x release of this library. - .. toctree:: :maxdepth: 2 - UPGRADING - + bigquery_datatransfer_v1/services + bigquery_datatransfer_v1/types Changelog --------- -For a list of all ``google-cloud-bigquery-bigquery-datatransfer`` releases: +For a list of all ``google-cloud-bigquery-datatransfer`` releases: .. toctree:: :maxdepth: 2 diff --git a/noxfile.py b/noxfile.py index f885c682..2bb4cf72 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=99") + session.run("coverage", "report", "--show-missing", "--fail-under=100") session.run("coverage", "erase") From c550f25aacc4e356f07895006e7d7e86e64f34b4 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Wed, 20 Oct 2021 21:10:05 -0400 Subject: [PATCH 3/7] use latest post processor image --- .github/.OwlBot.lock.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index ba7b2f7c..70dcbbba 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:3728d8fd14daa46a96d04ce61c6451a3ac864dc48fb71eecbb4411f4a95618d4 + digest: sha256:3f66ebf145a16bb07a2fcbdb79bcb5743a791e3dc46015b0de22cacdd2875f64 From 1be0063e139c8b828bd89f5e9a02d3c73ec773f9 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 21 Oct 2021 01:11:42 +0000 Subject: [PATCH 4/7] =?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 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 50819509..852b94c5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,12 +11,24 @@ API Reference bigquery_datatransfer_v1/services bigquery_datatransfer_v1/types + +Migration Guide +--------------- + +See the guide below for instructions on migrating to the latest version. + +.. toctree:: + :maxdepth: 2 + +  UPGRADING + + Changelog --------- For a list of all ``google-cloud-bigquery-datatransfer`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog From f4d330c24eb830569bace26cbcda86419430a4e5 Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 21 Oct 2021 01:11:55 +0000 Subject: [PATCH 5/7] =?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 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 50819509..852b94c5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,12 +11,24 @@ API Reference bigquery_datatransfer_v1/services bigquery_datatransfer_v1/types + +Migration Guide +--------------- + +See the guide below for instructions on migrating to the latest version. + +.. toctree:: + :maxdepth: 2 + +  UPGRADING + + Changelog --------- For a list of all ``google-cloud-bigquery-datatransfer`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog From 63d72b91791cd3d024086981711fe390071d61da Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 21 Oct 2021 01:12:11 +0000 Subject: [PATCH 6/7] =?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 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/index.rst b/docs/index.rst index 50819509..852b94c5 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -11,12 +11,24 @@ API Reference bigquery_datatransfer_v1/services bigquery_datatransfer_v1/types + +Migration Guide +--------------- + +See the guide below for instructions on migrating to the latest version. + +.. toctree:: + :maxdepth: 2 + +  UPGRADING + + Changelog --------- For a list of all ``google-cloud-bigquery-datatransfer`` releases: .. toctree:: - :maxdepth: 2 + :maxdepth: 2 - changelog + changelog From 084f6d0db412bf6b20401d8633039e46a8a7ab0c Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 11 Nov 2021 02:06:06 +0000 Subject: [PATCH 7/7] use the latest post processor image --- .github/.OwlBot.lock.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index cb89b2e3..63bf76ea 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest - digest: sha256:ec49167c606648a063d1222220b48119c912562849a0528f35bfb592a9f72737 + digest: sha256:39ad8c0570e4f5d2d3124a509de4fe975e799e2b97e0f58aed88f8880d5a8b60