From 3a55fd915e15668cd1cecba712e1f52032bc3077 Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Thu, 14 Oct 2021 19:21:38 -0400 Subject: [PATCH] chore: delete owlbot.py (#47) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: delete owlbot.py * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../.github/.OwlBot.lock.yaml | 2 +- .../docs/index.rst | 2 +- .../google-cloud-bigquery-logging/owlbot.py | 93 ------------------- 3 files changed, 2 insertions(+), 95 deletions(-) delete mode 100644 packages/google-cloud-bigquery-logging/owlbot.py diff --git a/packages/google-cloud-bigquery-logging/.github/.OwlBot.lock.yaml b/packages/google-cloud-bigquery-logging/.github/.OwlBot.lock.yaml index 7d98291cc35f..ba7b2f7cd143 100644 --- a/packages/google-cloud-bigquery-logging/.github/.OwlBot.lock.yaml +++ b/packages/google-cloud-bigquery-logging/.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/packages/google-cloud-bigquery-logging/docs/index.rst b/packages/google-cloud-bigquery-logging/docs/index.rst index e6518cf42964..9a521ab0a2c9 100644 --- a/packages/google-cloud-bigquery-logging/docs/index.rst +++ b/packages/google-cloud-bigquery-logging/docs/index.rst @@ -2,6 +2,7 @@ .. include:: multiprocessing.rst + API Reference ------------- .. toctree:: @@ -10,7 +11,6 @@ API Reference bigquery_logging_v1/services bigquery_logging_v1/types - Changelog --------- diff --git a/packages/google-cloud-bigquery-logging/owlbot.py b/packages/google-cloud-bigquery-logging/owlbot.py deleted file mode 100644 index b3c04a237536..000000000000 --- a/packages/google-cloud-bigquery-logging/owlbot.py +++ /dev/null @@ -1,93 +0,0 @@ -# Copyright 2021 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 os -import synthtool as s -import synthtool.gcp as gcp -from synthtool.languages import python - -common = gcp.CommonTemplates() - -default_version = "v1" - -for library in s.get_staging_dirs(default_version): - s.move(library, excludes=["docs/index.rst", "setup.py", "README.rst"]) - -s.remove_staging_dirs() - -templated_files = common.py_library(microgenerator=True) - -excludes=[".coveragerc"] -s.move(templated_files, excludes=excludes) - -# 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)