File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -62,3 +62,6 @@ system_tests/local_test_setup
62
62
# Make sure a generated file isn't accidentally committed.
63
63
pylintrc
64
64
pylintrc.test
65
+
66
+ # Docker files
67
+ get-docker.sh
Original file line number Diff line number Diff line change 14
14
15
15
"""This script is used to synthesize generated parts of this library."""
16
16
17
+ import json
18
+
17
19
import synthtool as s
18
20
from synthtool import gcp
19
21
from synthtool .languages import python
20
22
23
+ # ----------------------------------------------------------------------------
24
+ # Copy the generated client from the owl-bot staging directory
25
+ # ----------------------------------------------------------------------------
26
+
27
+ # Load the default version defined in .repo-metadata.json.
28
+ default_version = json .load (open (".repo-metadata.json" , "rt" )).get ("default_version" )
29
+
30
+ for library in s .get_staging_dirs (default_version ):
31
+ s .move (
32
+ [library ],
33
+ excludes = [
34
+ "**/gapic_version.py" ,
35
+ "docs/**/*" ,
36
+ "scripts/fixup*.py" ,
37
+ "setup.py" ,
38
+ "noxfile.py" ,
39
+ "README.rst" ,
40
+ ],
41
+ )
42
+ s .remove_staging_dirs ()
43
+
21
44
common = gcp .CommonTemplates ()
22
45
23
46
# ----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments