Skip to content

Commit

Permalink
chore(python): Update build rules for google/shopping/merchant/review…
Browse files Browse the repository at this point in the history
…s/v1beta to prepare for release

PiperOrigin-RevId: 705456988
  • Loading branch information
Google APIs authored and copybara-github committed Dec 12, 2024
1 parent d169538 commit f17e0aa
Showing 1 changed file with 47 additions and 32 deletions.
79 changes: 47 additions & 32 deletions google/shopping/merchant/reviews/v1beta/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -165,44 +165,59 @@ go_gapic_assembly_pkg(
],
)

##############################################################################
#############################################################################
# Python
##############################################################################
#############################################################################
# buildifier: disable=same-origin-load
#load(
# "@com_google_googleapis_imports//:imports.bzl",
# "py_gapic_assembly_pkg",
# "py_gapic_library",
# "py_test",
#)
load(
"@com_google_googleapis_imports//:imports.bzl",
"py_gapic_assembly_pkg",
"py_gapic_library",
"py_import",
"py_test",
)

#py_gapic_library(
# name = "reviews_py_gapic",
# srcs = [":reviews_proto"],
# grpc_service_config = "reviews_grpc_service_config.json",
# rest_numeric_enums = True,
# service_yaml = "merchantapi_v1beta.yaml",
# transport = "grpc+rest",
# deps = [],
#)
py_import(
name = "shopping_type",
srcs = [
"//google/shopping/type:type_py_gapic",
],
)

#py_test(
# name = "reviews_py_gapic_test",
# srcs = [
# "reviews_py_gapic_pytest.py",
# "reviews_py_gapic_test.py",
# ],
# legacy_create_init = False,
# deps = [":reviews_py_gapic"],
#)
py_gapic_library(
name = "reviews_py_gapic",
srcs = [":reviews_proto"],
grpc_service_config = "reviews_grpc_service_config.json",
opt_args = [
"proto-plus-deps=google.shopping.type",
"python-gapic-name=merchant_reviews",
"python-gapic-namespace=google.shopping",
],
rest_numeric_enums = True,
service_yaml = "merchantapi_v1beta.yaml",
transport = "grpc+rest",
deps = [
":shopping_type", # Added manually
],
)

py_test(
name = "reviews_py_gapic_test",
srcs = [
"reviews_py_gapic_pytest.py",
"reviews_py_gapic_test.py",
],
legacy_create_init = False,
deps = [":reviews_py_gapic"],
)

# Open Source Packages
#py_gapic_assembly_pkg(
# name = "merchant-reviews-v1beta-py",
# deps = [
# ":reviews_py_gapic",
# ],
#)
py_gapic_assembly_pkg(
name = "merchant-reviews-v1beta-py",
deps = [
":reviews_py_gapic",
],
)

##############################################################################
# PHP
Expand Down

0 comments on commit f17e0aa

Please sign in to comment.