|
55 | 55 | # ---------------------------------------------------------------------------- |
56 | 56 |
|
57 | 57 | templated_files = gcp.CommonTemplates().py_library(microgenerator=True) |
58 | | -python.py_samples(skip_readmes=True) |
59 | | -s.move(templated_files, excludes=[".coveragerc"]) # the microgenerator has a good coveragerc file |
60 | | -# Remove the replacements below once https://github.com/googleapis/synthtool/pull/1188 is merged |
61 | | - |
62 | | -# Update googleapis/repo-automation-bots repo to main in .kokoro/*.sh files |
63 | | -s.replace(".kokoro/*.sh", "repo-automation-bots/tree/master", "repo-automation-bots/tree/main") |
64 | | - |
65 | | -# Customize CONTRIBUTING.rst to replace master with main |
66 | | -s.replace( |
67 | | - "CONTRIBUTING.rst", |
68 | | - "fetch and merge changes from upstream into master", |
69 | | - "fetch and merge changes from upstream into main", |
70 | | -) |
71 | | - |
72 | | -s.replace( |
73 | | - "CONTRIBUTING.rst", |
74 | | - "git merge upstream/master", |
75 | | - "git merge upstream/main", |
76 | | -) |
77 | | - |
78 | | -s.replace( |
79 | | - "CONTRIBUTING.rst", |
80 | | - """export GOOGLE_CLOUD_TESTING_BRANCH=\"master\"""", |
81 | | - """export GOOGLE_CLOUD_TESTING_BRANCH=\"main\"""", |
82 | | -) |
83 | 58 |
|
84 | | -s.replace( |
85 | | - "CONTRIBUTING.rst", |
86 | | - "remote \(``master``\)", |
87 | | - "remote (``main``)", |
88 | | -) |
89 | | - |
90 | | -s.replace( |
91 | | - "CONTRIBUTING.rst", |
92 | | - "blob/master/CONTRIBUTING.rst", |
93 | | - "blob/main/CONTRIBUTING.rst", |
94 | | -) |
95 | | - |
96 | | -s.replace( |
97 | | - "CONTRIBUTING.rst", |
98 | | - "blob/master/noxfile.py", |
99 | | - "blob/main/noxfile.py", |
100 | | -) |
101 | | - |
102 | | -s.replace( |
103 | | - "docs/conf.py", |
104 | | - "master_doc", |
105 | | - "root_doc", |
106 | | -) |
| 59 | +s.move(templated_files, excludes=[".coveragerc"]) # the microgenerator has a good coveragerc file |
107 | 60 |
|
108 | | -s.replace( |
109 | | - "docs/conf.py", |
110 | | - "# The master toctree document.", |
111 | | - "# The root toctree document.", |
112 | | -) |
| 61 | +python.py_samples(skip_readmes=True) |
113 | 62 |
|
114 | 63 | # ---------------------------------------------------------------------------- |
115 | 64 | # Run blacken session |
|
0 commit comments