Skip to content

Commit

Permalink
chore: migrate to owl bot (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea authored Apr 8, 2021
1 parent 0444b91 commit 9b7d3eb
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 211 deletions.
4 changes: 4 additions & 0 deletions packages/google-cloud-texttospeech/.github/.OwlBot.lock.yaml
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

26 changes: 26 additions & 0 deletions packages/google-cloud-texttospeech/.github/.OwlBot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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-copy-regex:
- source: /google/cloud/texttospeech/(v.*)/.*-py/(.*)
dest: /owl-bot-staging/$1/$2

begin-after-commit-hash: f92897093108f24c013e9c15c3be2709417ba5d6

14 changes: 0 additions & 14 deletions packages/google-cloud-texttospeech/.pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
# 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.
#
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
Expand Down
13 changes: 0 additions & 13 deletions packages/google-cloud-texttospeech/docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,4 @@
# -*- coding: utf-8 -*-
# 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.
#
# google-cloud-texttospeech documentation build configuration file
#
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,28 +19,21 @@
from synthtool import gcp
from synthtool.languages import python

gapic = gcp.GAPICBazel()
common = gcp.CommonTemplates()
versions = ["v1beta1", "v1"]

# ----------------------------------------------------------------------------
# Generate texttospeech GAPIC layer
# ----------------------------------------------------------------------------
for version in versions:
library = gapic.py_library(
service="texttospeech",
version=version,
bazel_target=f"//google/cloud/texttospeech/{version}:texttospeech-{version}-py",
default_version = "v1"

for library in s.get_staging_dirs(default_version):
# Sphinx interprets `*` as emphasis
s.replace(
[library / "google/cloud/**/*client.py", library / "google/cloud/**/cloud_tts.py"],
"((en)|(no)|(nb)|(cmn)|(yue))-\*",
"\g<1>-\*",
)

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

# Sphinx interprets `*` as emphasis
s.replace(
["google/cloud/**/*client.py", "google/cloud/**/cloud_tts.py"],
"((en)|(no)|(nb)|(cmn)|(yue))-\*",
"\g<1>-\*",
)
s.remove_staging_dirs()

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

This file was deleted.

0 comments on commit 9b7d3eb

Please sign in to comment.