Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 9987c07

Browse files
authored
chore: add generation of pb2 files via owlbot/bazel (#268)
* chore: remove pb2 file generation during post processing * fix: remove obsolete proto files
1 parent 94ee68b commit 9987c07

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/.OwlBot.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,29 @@
1414

1515
docker:
1616
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
17+
deep-remove-regex:
18+
- /owl-bot-staging
19+
20+
deep-copy-regex:
21+
- source: /gapic/metadata/(metadata-py)/(gapic_metadata.*)
22+
dest: /owl-bot-staging/$1/google/gapic/metadata/$2
23+
- source: /google/api/(api-py)/(.*)
24+
dest: /owl-bot-staging/$1/google/api/$2
25+
- source: /google/cloud/(extended-operations-py)/(extended_operations.*)
26+
dest: /owl-bot-staging/$1/google/cloud/$2
27+
- source: /google/cloud/location/(location-py)/(locations.*)
28+
dest: /owl-bot-staging/$1/google/cloud/location/$2
29+
- source: /google/logging/type/(logging-type-py)/(http_request.*)
30+
dest: /owl-bot-staging/$1/google/logging/type/$2
31+
- source: /google/logging/type/(logging-type-py)/(log_severity.*)
32+
dest: /owl-bot-staging/$1/google/logging/type/$2
33+
- source: /google/longrunning/(operations-py)/(operations)(.*pb2.*)
34+
dest: /owl-bot-staging/$1/google/longrunning/$2_proto$3
35+
- source: /google/rpc/(rpc-py)/(.*)
36+
dest: /owl-bot-staging/$1/google/rpc/$2
37+
- source: /google/rpc/context/(rpc-context-py)/(.*)
38+
dest: /owl-bot-staging/$1/google/rpc/context/$2
39+
- source: /google/type/(type-py)/(.*)
40+
dest: /owl-bot-staging/$1/google/type/$2
1741

1842
begin-after-commit-hash: 6acf4a0a797f1082027985c55c4b14b60f673dd7

owlbot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
import synthtool.gcp as gcp
1616
from synthtool.languages import python
1717

18+
19+
for library in s.get_staging_dirs():
20+
s.move([library / "**/*.py*"])
21+
s.remove_staging_dirs()
22+
1823
# ----------------------------------------------------------------------------
1924
# Add templated files
2025
# ----------------------------------------------------------------------------

0 commit comments

Comments
 (0)