Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 565a550

Browse files
Google APIscopybara-github
authored andcommitted
fix: integrate gapic-generator-python-1.4.1 and enable more py_test targets
PiperOrigin-RevId: 473833416
1 parent 9d1fbd0 commit 565a550

File tree

7 files changed

+56
-61
lines changed

7 files changed

+56
-61
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ load("@rules_python//python:pip.bzl", "pip_install")
292292

293293
pip_install()
294294

295-
_gapic_generator_python_version = "1.4.0"
295+
_gapic_generator_python_version = "1.4.1"
296296

297297
http_archive(
298298
name = "gapic_generator_python",

google/cloud/bigquery/connection/v1beta1/BUILD.bazel

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -165,16 +165,15 @@ py_gapic_library(
165165
],
166166
)
167167

168-
# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1372 is fixed
169-
#py_test(
170-
# name = "connection_py_gapic_test",
171-
# srcs = [
172-
# "connection_py_gapic_pytest.py",
173-
# "connection_py_gapic_test.py",
174-
# ],
175-
# legacy_create_init = False,
176-
# deps = [":connection_py_gapic"],
177-
#)
168+
py_test(
169+
name = "connection_py_gapic_test",
170+
srcs = [
171+
"connection_py_gapic_pytest.py",
172+
"connection_py_gapic_test.py",
173+
],
174+
legacy_create_init = False,
175+
deps = [":connection_py_gapic"],
176+
)
178177

179178
# Open Source Packages
180179
py_gapic_assembly_pkg(

google/cloud/bigquery/v2/BUILD.bazel

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,15 @@ py_gapic_library(
160160
opt_args = ["autogen-snippets=False"],
161161
)
162162

163-
# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1372 is fixed
164-
#py_test(
165-
# name = "bigquery_py_gapic_test",
166-
# srcs = [
167-
# "bigquery_py_gapic_pytest.py",
168-
# "bigquery_py_gapic_test.py",
169-
# ],
170-
# legacy_create_init = False,
171-
# deps = [":bigquery_py_gapic"],
172-
#)
163+
py_test(
164+
name = "bigquery_py_gapic_test",
165+
srcs = [
166+
"bigquery_py_gapic_pytest.py",
167+
"bigquery_py_gapic_test.py",
168+
],
169+
legacy_create_init = False,
170+
deps = [":bigquery_py_gapic"],
171+
)
173172

174173
py_gapic_assembly_pkg(
175174
name = "bigquery-v2-py",

google/cloud/recommendationengine/v1beta1/BUILD.bazel

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,15 @@ py_gapic_library(
184184
opt_args = ["warehouse-package-name=google-cloud-recommendations-ai"],
185185
)
186186

187-
# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1370 is fixed
188-
#py_test(
189-
# name = "recommendationengine_py_gapic_test",
190-
# srcs = [
191-
# "recommendationengine_py_gapic_pytest.py",
192-
# "recommendationengine_py_gapic_test.py",
193-
# ],
194-
# legacy_create_init = False,
195-
# deps = [":recommendationengine_py_gapic"],
196-
#)
187+
py_test(
188+
name = "recommendationengine_py_gapic_test",
189+
srcs = [
190+
"recommendationengine_py_gapic_pytest.py",
191+
"recommendationengine_py_gapic_test.py",
192+
],
193+
legacy_create_init = False,
194+
deps = [":recommendationengine_py_gapic"],
195+
)
197196

198197
# Open Source Packages
199198
py_gapic_assembly_pkg(

google/cloud/run/v2/BUILD.bazel

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -192,21 +192,21 @@ py_gapic_library(
192192
srcs = [":run_proto"],
193193
grpc_service_config = "run_grpc_service_config.json",
194194
service_yaml = "run_v2.yaml",
195+
transport = "grpc+rest",
195196
deps = [
196197
"//google/iam/v1:iam_policy_py_proto",
197198
],
198199
)
199200

200-
# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1371 is fixed
201-
#py_test(
202-
# name = "run_py_gapic_test",
203-
# srcs = [
204-
# "run_py_gapic_pytest.py",
205-
# "run_py_gapic_test.py",
206-
# ],
207-
# legacy_create_init = False,
208-
# deps = [":run_py_gapic"],
209-
#)
201+
py_test(
202+
name = "run_py_gapic_test",
203+
srcs = [
204+
"run_py_gapic_pytest.py",
205+
"run_py_gapic_test.py",
206+
],
207+
legacy_create_init = False,
208+
deps = [":run_py_gapic"],
209+
)
210210

211211
# Open Source Packages
212212
py_gapic_assembly_pkg(

google/devtools/remoteworkers/v1test2/BUILD.bazel

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,15 @@ py_gapic_library(
171171
grpc_service_config = "remoteworkers_grpc_service_config.json",
172172
)
173173

174-
# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1370 is fixed
175-
#py_test(
176-
# name = "remoteworkers_py_gapic_test",
177-
# srcs = [
178-
# "remoteworkers_py_gapic_pytest.py",
179-
# "remoteworkers_py_gapic_test.py",
180-
# ],
181-
# legacy_create_init = False,
182-
# deps = [":remoteworkers_py_gapic"],
183-
#)
174+
py_test(
175+
name = "remoteworkers_py_gapic_test",
176+
srcs = [
177+
"remoteworkers_py_gapic_pytest.py",
178+
"remoteworkers_py_gapic_test.py",
179+
],
180+
legacy_create_init = False,
181+
deps = [":remoteworkers_py_gapic"],
182+
)
184183

185184
# Open Source Packages
186185
py_gapic_assembly_pkg(

google/home/graph/v1/BUILD.bazel

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,15 @@ py_gapic_library(
155155
grpc_service_config = "homegraph_grpc_service_config.json",
156156
)
157157

158-
# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1370 is fixed
159-
#py_test(
160-
# name = "graph_py_gapic_test",
161-
# srcs = [
162-
# "graph_py_gapic_pytest.py",
163-
# "graph_py_gapic_test.py",
164-
# ],
165-
# legacy_create_init = False,
166-
# deps = [":graph_py_gapic"],
167-
#)
158+
py_test(
159+
name = "graph_py_gapic_test",
160+
srcs = [
161+
"graph_py_gapic_pytest.py",
162+
"graph_py_gapic_test.py",
163+
],
164+
legacy_create_init = False,
165+
deps = [":graph_py_gapic"],
166+
)
168167

169168
# Open Source Packages
170169
py_gapic_assembly_pkg(

0 commit comments

Comments
 (0)