Skip to content

Commit ea41e4c

Browse files
authored
Remove autosynth / tweaks for 'README.rst' / 'setup.py'. (#5957)
1 parent f5774cf commit ea41e4c

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

tasks/synth.py

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,19 @@
2222

2323
gapic = gcp.GAPICGenerator()
2424
common = gcp.CommonTemplates()
25+
excludes = [
26+
'README.rst',
27+
'setup.py',
28+
'docs/conf.py',
29+
'docs/index.rst',
30+
]
2531

2632
for version in ['v2beta2', 'v2beta3']:
2733
library = gapic.py_library(
2834
'tasks', version,
2935
config_path=f'artman_cloudtasks_{version}.yaml')
3036

31-
s.copy(library, excludes=['docs/conf.py', 'docs/index.rst'])
37+
s.copy(library, excludes=excludes)
3238

3339
# Fix unindentation of bullet list second line
3440
s.replace(
@@ -58,21 +64,3 @@
5864
f"google/cloud/tasks_v2beta2/proto/queue_pb2.py",
5965
'(uests in queue.yaml/xml) <\n\s+',
6066
'\g<1>\n <')
61-
62-
# Set Release Status
63-
release_status = 'Development Status :: 3 - Alpha'
64-
s.replace('setup.py',
65-
'(release_status = )(.*)$',
66-
f"\\1'{release_status}'")
67-
68-
# Add Dependencies
69-
s.replace('setup.py',
70-
'dependencies = \[\n*(^.*,\n)+',
71-
"\\g<0> 'grpc-google-iam-v1<0.12dev,>=0.11.4',\n")
72-
73-
# Fix the enable API link
74-
s.replace(
75-
'README.rst',
76-
r'.. _Enable the Cloud Tasks API.: https://cloud.google.com/tasks',
77-
'.. _Enable the Cloud Tasks API.: https://console.cloud.google.com/apis/'
78-
'library/cloudtasks.googleapis.com')

0 commit comments

Comments
 (0)