File tree 9 files changed +19
-2
lines changed
9 files changed +19
-2
lines changed Original file line number Diff line number Diff line change
1
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_test" )
2
+
1
3
licenses (["notice" ]) # 3-clause BSD
2
4
3
5
package (
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ config_setting(
21
21
22
22
load (":protobuf.bzl" , "py_proto_library" )
23
23
load (":compiler_config_setting.bzl" , "create_compiler_config_setting" )
24
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_library" )
24
25
25
26
filegroup (
26
27
name = "srcs" ,
Original file line number Diff line number Diff line change
1
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_library" , "py_test" )
2
+
1
3
def _GetPath (ctx , path ):
2
4
if ctx .label .workspace_root :
3
5
return ctx .label .workspace_root + "/" + path
@@ -383,7 +385,7 @@ def py_proto_library(
383
385
if default_runtime and not default_runtime in py_libs + deps :
384
386
py_libs = py_libs + [default_runtime ]
385
387
386
- native . py_library (
388
+ py_library (
387
389
name = name ,
388
390
srcs = outs + py_extra_srcs ,
389
391
deps = py_libs + deps ,
@@ -406,7 +408,7 @@ def internal_protobuf_py_tests(
406
408
"""
407
409
for m in modules :
408
410
s = "python/google/protobuf/internal/%s.py" % m
409
- native . py_test (
411
+ py_test (
410
412
name = "py_%s" % m ,
411
413
srcs = [s ],
412
414
main = s ,
Original file line number Diff line number Diff line change
1
+ load("@io_bazel//tools/python:private/defs.bzl", "py_library")
2
+
1
3
genrule(
2
4
name = "copy_six",
3
5
srcs = ["six-1.10.0/six.py"],
Original file line number Diff line number Diff line change
1
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_library" )
2
+
1
3
licenses (["notice" ])
2
4
3
5
filegroup (
Original file line number Diff line number Diff line change
1
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_library" )
2
+
1
3
licenses (["notice" ])
2
4
3
5
filegroup (
Original file line number Diff line number Diff line change
1
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_library" )
2
+
1
3
licenses (["notice" ])
2
4
3
5
filegroup (
Original file line number Diff line number Diff line change
1
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_library" )
2
+
1
3
licenses (["notice" ])
2
4
3
5
filegroup (
Original file line number Diff line number Diff line change
1
+ load ("@io_bazel//tools/python:private/defs.bzl" , "py_library" )
2
+
1
3
licenses (["notice" ])
2
4
3
5
filegroup (
You can’t perform that action at this time.
0 commit comments