[Bazel] Enable grpcio-reflection to be used via Bazel (#31013)
The current `py_grpc_library` results in the wrong grpc proto python code path when grpc is a third-party source code in a Bazel project. This PR should fix it. fixes #31011 <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. --> --------- Co-authored-by: Richard Belleville <rbellevi@google.com>pull/34082/head
parent
361769c905
commit
c8f467aea9
3 changed files with 34 additions and 2 deletions
@ -0,0 +1,17 @@ |
||||
# Copyright 2022 the gRPC authors. |
||||
# |
||||
# Licensed under the Apache License, Version 2.0 (the "License"); |
||||
# you may not use this file except in compliance with the License. |
||||
# You may obtain a copy of the License at |
||||
# |
||||
# http://www.apache.org/licenses/LICENSE-2.0 |
||||
# |
||||
# Unless required by applicable law or agreed to in writing, software |
||||
# distributed under the License is distributed on an "AS IS" BASIS, |
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
# See the License for the specific language governing permissions and |
||||
# limitations under the License. |
||||
"""A trivial executable that imports grpc_reflection. |
||||
""" |
||||
|
||||
from grpc_reflection.v1alpha import reflection |
Loading…
Reference in new issue