153153 if count < 1 :
154154 raise Exception ("Expected replacements for gRPC channel options not made." )
155155
156-
157156 count = s .replace (
158157 [
159158 library / "google/cloud/spanner_admin_instance_v1/services/*/transports/grpc*" ,
185184 )
186185 if count < 1 :
187186 raise Exception ("Expected replacements for gRPC channel options not made." )
188-
189187 s .move (
190188 library ,
191189 excludes = [
192190 "google/cloud/spanner/**" ,
193- "google/cloud/spanner_admin_instance/**"
194- "google/cloud/spanner_admin_database/**"
195191 "*.*" ,
196192 "noxfile.py" ,
197193 "docs/index.rst" ,
198194 "google/cloud/spanner_v1/__init__.py" ,
199- "**/gapic_version.py" ,
200195 "testing/constraints-3.7.txt" ,
196+ "google/cloud/spanner_admin_instance/**" ,
197+ "google/cloud/spanner_admin_database/**"
201198 ],
202199 )
203200
204-
205201s .remove_staging_dirs ()
206202
207203# ----------------------------------------------------------------------------
219215 templated_files ,
220216 excludes = [
221217 ".coveragerc" ,
222- ".github/workflows" , # exclude gh actions as credentials are needed for tests
218+ ".github/**" ,
219+ ".kokoro/**" ,
223220 "README.rst" ,
224- ".github/release-please.yml" ,
225- ".kokoro/test-samples-impl.sh" ,
226- ".kokoro/presubmit/presubmit.cfg" ,
227- ".kokoro/samples/python3.7/**" ,
228- ".kokoro/samples/python3.8/**" ,
229221 ],
230222)
231223
232- # Ensure CI runs on a new instance each time
233- s .replace (
234- ".kokoro/build.sh" ,
235- "# Setup project id." ,
236- """\
237- # Set up creating a new instance for each system test run
238- export GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE=true
239-
240- # Setup project id.""" ,
241- )
242-
243224# Update samples folder in CONTRIBUTING.rst
244225s .replace ("CONTRIBUTING.rst" , "samples/snippets" , "samples/samples" )
245226
262243
263244# Use a python runtime which is available in the owlbot post processor here
264245# https://github.com/googleapis/synthtool/blob/master/docker/owlbot/python/Dockerfile
265- s .shell .run (["nox" , "-s" , "blacken-3.14" ], hide_output = False )
246+ s .shell .run (["nox" , "-s" , "blacken-3.14" ], hide_output = False )
0 commit comments