Skip to content

Commit

Permalink
chore: migrate to owl bot (#61)
Browse files Browse the repository at this point in the history
* chore: migrate to owl bot

* chore: copy files from googleapis-gen 130ce904e5d546c312943d10f48799590f9c0f66

* chore: run the post processor
  • Loading branch information
parthea authored Apr 20, 2021
1 parent b659548 commit 14bf18a
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 153 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
docker:
digest: sha256:612842ba5ccf62b4e3983fe6dc453cf66883c74bc168aa62da7acaed1e2fdc93
image: gcr.io/repo-automation-bots/owlbot-python:latest

29 changes: 29 additions & 0 deletions packages/google-cloud-bigquery-connection/.github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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.

docker:
image: gcr.io/repo-automation-bots/owlbot-python:latest

deep-remove-regex:
- /owl-bot-staging

deep-preserve-regex:
- /owl-bot-staging/v1beta1

deep-copy-regex:
- source: /google/cloud/bigquery/connection/(v.*)/.*-py/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: 130ce904e5d546c312943d10f48799590f9c0f66

4 changes: 1 addition & 3 deletions packages/google-cloud-bigquery-connection/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ def docfx(session):
"""Build the docfx yaml files for this library."""

session.install("-e", ".")
# sphinx-docfx-yaml supports up to sphinx version 1.5.5.
# https://github.com/docascode/sphinx-docfx-yaml/issues/97
session.install("sphinx==1.5.5", "alabaster", "recommonmark", "sphinx-docfx-yaml")
session.install("sphinx", "alabaster", "recommonmark", "gcp-sphinx-docfx-yaml")

shutil.rmtree(os.path.join("docs", "_build"), ignore_errors=True)
session.run(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,14 @@
import synthtool.gcp as gcp
from synthtool.languages import python

gapic = gcp.GAPICBazel()
common = gcp.CommonTemplates()

# ----------------------------------------------------------------------------
# Generate access approval GAPIC layer
# ----------------------------------------------------------------------------
library = gapic.py_library(
service="bigquery/connection",
version="v1",
bazel_target=f"//google/cloud/bigquery/connection/v1:bigquery-connection-v1-py"
)
default_version = "v1"

for library in s.get_staging_dirs(default_version):
s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst", "*.tar.gz"])

s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst", "*.tar.gz"])
s.remove_staging_dirs()

# ----------------------------------------------------------------------------
# Add templated files
Expand Down
140 changes: 0 additions & 140 deletions packages/google-cloud-bigquery-connection/synth.metadata

This file was deleted.

0 comments on commit 14bf18a

Please sign in to comment.