diff --git a/packages/google-cloud-bigquery-connection/.github/.OwlBot.lock.yaml b/packages/google-cloud-bigquery-connection/.github/.OwlBot.lock.yaml new file mode 100644 index 000000000000..9bdafee727d1 --- /dev/null +++ b/packages/google-cloud-bigquery-connection/.github/.OwlBot.lock.yaml @@ -0,0 +1,4 @@ +docker: + digest: sha256:612842ba5ccf62b4e3983fe6dc453cf66883c74bc168aa62da7acaed1e2fdc93 + image: gcr.io/repo-automation-bots/owlbot-python:latest + diff --git a/packages/google-cloud-bigquery-connection/.github/.OwlBot.yaml b/packages/google-cloud-bigquery-connection/.github/.OwlBot.yaml new file mode 100644 index 000000000000..fe092d45882a --- /dev/null +++ b/packages/google-cloud-bigquery-connection/.github/.OwlBot.yaml @@ -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 + diff --git a/packages/google-cloud-bigquery-connection/noxfile.py b/packages/google-cloud-bigquery-connection/noxfile.py index ae8392be56e2..af50a606196c 100644 --- a/packages/google-cloud-bigquery-connection/noxfile.py +++ b/packages/google-cloud-bigquery-connection/noxfile.py @@ -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( diff --git a/packages/google-cloud-bigquery-connection/synth.py b/packages/google-cloud-bigquery-connection/owlbot.py similarity index 71% rename from packages/google-cloud-bigquery-connection/synth.py rename to packages/google-cloud-bigquery-connection/owlbot.py index 5c0d2065a7dc..532c73a71a1a 100644 --- a/packages/google-cloud-bigquery-connection/synth.py +++ b/packages/google-cloud-bigquery-connection/owlbot.py @@ -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 diff --git a/packages/google-cloud-bigquery-connection/synth.metadata b/packages/google-cloud-bigquery-connection/synth.metadata deleted file mode 100644 index 8e2df323b546..000000000000 --- a/packages/google-cloud-bigquery-connection/synth.metadata +++ /dev/null @@ -1,140 +0,0 @@ -{ - "sources": [ - { - "git": { - "name": ".", - "remote": "https://github.com/googleapis/python-bigquery-connection.git", - "sha": "c74e78478fc4f0a3f98a291d92bba455ac87fbc4" - } - }, - { - "git": { - "name": "googleapis", - "remote": "https://github.com/googleapis/googleapis.git", - "sha": "149a3a84c29c9b8189576c7442ccb6dcf6a8f95b", - "internalRef": "364411656" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "86ed43d4f56e6404d068e62e497029018879c771" - } - }, - { - "git": { - "name": "synthtool", - "remote": "https://github.com/googleapis/synthtool.git", - "sha": "86ed43d4f56e6404d068e62e497029018879c771" - } - } - ], - "destinations": [ - { - "client": { - "source": "googleapis", - "apiName": "bigquery/connection", - "apiVersion": "v1", - "language": "python", - "generator": "bazel" - } - } - ], - "generatedFiles": [ - ".coveragerc", - ".flake8", - ".github/CONTRIBUTING.md", - ".github/ISSUE_TEMPLATE/bug_report.md", - ".github/ISSUE_TEMPLATE/feature_request.md", - ".github/ISSUE_TEMPLATE/support_request.md", - ".github/PULL_REQUEST_TEMPLATE.md", - ".github/header-checker-lint.yml", - ".github/release-please.yml", - ".github/snippet-bot.yml", - ".gitignore", - ".kokoro/build.sh", - ".kokoro/continuous/common.cfg", - ".kokoro/continuous/continuous.cfg", - ".kokoro/docker/docs/Dockerfile", - ".kokoro/docker/docs/fetch_gpg_keys.sh", - ".kokoro/docs/common.cfg", - ".kokoro/docs/docs-presubmit.cfg", - ".kokoro/docs/docs.cfg", - ".kokoro/populate-secrets.sh", - ".kokoro/presubmit/common.cfg", - ".kokoro/presubmit/presubmit.cfg", - ".kokoro/publish-docs.sh", - ".kokoro/release.sh", - ".kokoro/release/common.cfg", - ".kokoro/release/release.cfg", - ".kokoro/samples/lint/common.cfg", - ".kokoro/samples/lint/continuous.cfg", - ".kokoro/samples/lint/periodic.cfg", - ".kokoro/samples/lint/presubmit.cfg", - ".kokoro/samples/python3.6/common.cfg", - ".kokoro/samples/python3.6/continuous.cfg", - ".kokoro/samples/python3.6/periodic-head.cfg", - ".kokoro/samples/python3.6/periodic.cfg", - ".kokoro/samples/python3.6/presubmit.cfg", - ".kokoro/samples/python3.7/common.cfg", - ".kokoro/samples/python3.7/continuous.cfg", - ".kokoro/samples/python3.7/periodic-head.cfg", - ".kokoro/samples/python3.7/periodic.cfg", - ".kokoro/samples/python3.7/presubmit.cfg", - ".kokoro/samples/python3.8/common.cfg", - ".kokoro/samples/python3.8/continuous.cfg", - ".kokoro/samples/python3.8/periodic-head.cfg", - ".kokoro/samples/python3.8/periodic.cfg", - ".kokoro/samples/python3.8/presubmit.cfg", - ".kokoro/test-samples-against-head.sh", - ".kokoro/test-samples-impl.sh", - ".kokoro/test-samples.sh", - ".kokoro/trampoline.sh", - ".kokoro/trampoline_v2.sh", - ".pre-commit-config.yaml", - ".trampolinerc", - "CODE_OF_CONDUCT.md", - "CONTRIBUTING.rst", - "LICENSE", - "MANIFEST.in", - "bigquery-connection-v1-py.tar.gz", - "docs/_static/custom.css", - "docs/_templates/layout.html", - "docs/bigquery_connection_v1/connection_service.rst", - "docs/bigquery_connection_v1/services.rst", - "docs/bigquery_connection_v1/types.rst", - "docs/conf.py", - "docs/multiprocessing.rst", - "google/cloud/bigquery_connection/__init__.py", - "google/cloud/bigquery_connection/py.typed", - "google/cloud/bigquery_connection_v1/__init__.py", - "google/cloud/bigquery_connection_v1/py.typed", - "google/cloud/bigquery_connection_v1/services/__init__.py", - "google/cloud/bigquery_connection_v1/services/connection_service/__init__.py", - "google/cloud/bigquery_connection_v1/services/connection_service/async_client.py", - "google/cloud/bigquery_connection_v1/services/connection_service/client.py", - "google/cloud/bigquery_connection_v1/services/connection_service/pagers.py", - "google/cloud/bigquery_connection_v1/services/connection_service/transports/__init__.py", - "google/cloud/bigquery_connection_v1/services/connection_service/transports/base.py", - "google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc.py", - "google/cloud/bigquery_connection_v1/services/connection_service/transports/grpc_asyncio.py", - "google/cloud/bigquery_connection_v1/types/__init__.py", - "google/cloud/bigquery_connection_v1/types/connection.py", - "mypy.ini", - "noxfile.py", - "renovate.json", - "scripts/decrypt-secrets.sh", - "scripts/fixup_bigquery_connection_v1_keywords.py", - "scripts/readme-gen/readme_gen.py", - "scripts/readme-gen/templates/README.tmpl.rst", - "scripts/readme-gen/templates/auth.tmpl.rst", - "scripts/readme-gen/templates/auth_api_key.tmpl.rst", - "scripts/readme-gen/templates/install_deps.tmpl.rst", - "scripts/readme-gen/templates/install_portaudio.tmpl.rst", - "setup.cfg", - "testing/.gitignore", - "tests/unit/gapic/bigquery_connection_v1/__init__.py", - "tests/unit/gapic/bigquery_connection_v1/test_connection_service.py" - ] -} \ No newline at end of file