Skip to content

Commit abc3c9f

Browse files
authored
feat: create toolchain type for py_proto_library (bazel-contrib#1416)
This is to eventually allow py_proto_library to use toolchain resolution for getting the Python-specific protobuf information necessary to create protos. Design doc: https://docs.google.com/document/d/1CE6wJHNfKbUPBr7-mmk_0Yo3a4TaqcTPE0OWNuQkhPs/edit#heading=h.5mcn15i0e1ch
1 parent 67da3e5 commit abc3c9f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

python/proto/BUILD.bazel

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2023 The Bazel Authors. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
package(default_visibility = ["//visibility:public"])
16+
17+
# Toolchain type provided by proto_lang_toolchain rule and used by py_proto_library
18+
toolchain_type(name = "toolchain_type")

0 commit comments

Comments
 (0)