Skip to content

Commit 54b49b1

Browse files
authored
chore: Migrate to owl bot (#10)
1 parent 69d76e3 commit 54b49b1

File tree

6 files changed

+34
-180
lines changed

6 files changed

+34
-180
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
docker:
2+
digest: sha256:612842ba5ccf62b4e3983fe6dc453cf66883c74bc168aa62da7acaed1e2fdc93
3+
image: gcr.io/repo-automation-bots/owlbot-python:latest
4+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2021 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
docker:
16+
image: gcr.io/repo-automation-bots/owlbot-python:latest
17+
18+
deep-remove-regex:
19+
- /owl-bot-staging
20+
21+
deep-copy-regex:
22+
- source: /google/cloud/gkehub/(v.*)/.*-py/(.*)
23+
dest: /owl-bot-staging/$1/$2
24+
25+
begin-after-commit-hash: 6a5da3f1274b088752f074da5bc9e30bd1beb27e
26+

packages/google-cloud-gke-hub/.pre-commit-config.yaml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Copyright 2021 Google LLC
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
#
151
# See https://pre-commit.com for more information
162
# See https://pre-commit.com/hooks.html for more hooks
173
repos:

packages/google-cloud-gke-hub/docs/conf.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
# Copyright 2021 Google LLC
3-
#
4-
# Licensed under the Apache License, Version 2.0 (the "License");
5-
# you may not use this file except in compliance with the License.
6-
# You may obtain a copy of the License at
7-
#
8-
# http://www.apache.org/licenses/LICENSE-2.0
9-
#
10-
# Unless required by applicable law or agreed to in writing, software
11-
# distributed under the License is distributed on an "AS IS" BASIS,
12-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13-
# See the License for the specific language governing permissions and
14-
# limitations under the License.
152
#
163
# google-cloud-gke-hub documentation build configuration file
174
#

packages/google-cloud-gke-hub/synth.py renamed to packages/google-cloud-gke-hub/owlbot.py

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,15 @@
2020
import synthtool.gcp as gcp
2121
from synthtool.languages import python
2222

23-
gapic = gcp.GAPICBazel()
2423
common = gcp.CommonTemplates()
2524

26-
versions = ["v1beta1",
27-
28-
] # add new versions at the end of the list
29-
30-
# ----------------------------------------------------------------------------
31-
# Generate gkehub GAPIC layer
32-
# ----------------------------------------------------------------------------
33-
for version in versions:
34-
library = gapic.py_library(
35-
service="gkehub",
36-
version=version,
37-
bazel_target=f"//google/cloud/gkehub/{version}:gkehub-{version}-py",
38-
)
25+
default_version = "v1beta1"
3926

27+
for library in s.get_staging_dirs(default_version):
4028
s.move(library, excludes=["setup.py", "README.rst", "docs/index.rst"])
4129

30+
s.remove_staging_dirs()
31+
4232
# ----------------------------------------------------------------------------
4333
# Add templated files
4434
# ----------------------------------------------------------------------------

packages/google-cloud-gke-hub/synth.metadata

Lines changed: 0 additions & 139 deletions
This file was deleted.

0 commit comments

Comments
 (0)