|
import synthtool as s |
|
from synthtool import gcp |
|
|
|
common = gcp.CommonTemplates() |
|
|
|
|
|
|
|
|
|
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" |
|
]) |
|
|
|
|
|
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) |
|
|