blob: 0d995c19fea180ff8ebcc46e836b786e0589fae9 [file] [log] [blame]
Bu Sun Kimf706cfd2020-04-20 14:05:05 -07001# Copyright 2020 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
15import synthtool as s
16from synthtool import gcp
Anthonios Partheniouaf918e82020-11-25 19:58:04 -050017
release-please[bot]fd2965c2021-08-11 17:00:21 +000018from synthtool.languages import python
Bu Sun Kimf706cfd2020-04-20 14:05:05 -070019
20common = gcp.CommonTemplates()
21
22# ----------------------------------------------------------------------------
23# Add templated files
24# ----------------------------------------------------------------------------
25templated_files = common.py_library()
26
27# Copy kokoro configs.
28# Docs are excluded as repo docs cannot currently be generated using sphinx.
29s.move(templated_files / '.kokoro', excludes=['**/docs/*', 'publish-docs.sh'])
gcf-owl-bot[bot]fc365b82021-10-07 10:14:10 +000030s.move(templated_files / '.trampolinerc') # config file for trampoline_v2
Bu Sun Kimf706cfd2020-04-20 14:05:05 -070031
32# Also move issue templates
Anthonios Partheniou5844ca22021-11-11 11:25:54 -050033s.move(templated_files / '.github', excludes=['CODEOWNERS'])
release-please[bot]fd2965c2021-08-11 17:00:21 +000034
35# Move scripts folder needed for samples CI
36s.move(templated_files / 'scripts')
37
38# ----------------------------------------------------------------------------
39# Samples templates
40# ----------------------------------------------------------------------------
41
42python.py_samples(skip_readmes=True)