forked from googleapis/google-resumable-media-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathowlbot.py
26 lines (22 loc) · 773 Bytes
/
owlbot.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import synthtool as s
from synthtool import gcp
common = gcp.CommonTemplates()
# ----------------------------------------------------------------------------
# Add templated .kokoro files
# ----------------------------------------------------------------------------
templated_files = common.py_library()
s.move(templated_files / ".kokoro")
s.move(templated_files / ".trampolinerc")
s.move(templated_files / ".github")
s.move(templated_files / "renovate.json")
s.move(templated_files / "docs", excludes=[
"multiprocessing.rst",
"conf.py"
])
# Block pushing non-cloud libraries to Cloud RAD
s.replace(
".kokoro/docs/common.cfg",
r'value: "docs-staging-v2"',
r'value: "docs-staging-v2-staging"'
)
s.shell.run(["nox", "-s", "blacken"], hide_output=False)