protobuf/third_party/six.BUILD

20 lines
544 B
Plaintext
Raw Normal View History

load("@rules_python//python:defs.bzl", "py_library")
2019-10-25 12:12:36 +00:00
# Consume `six.py` as `__init__.py` for compatibility
# with `--incompatible_default_to_explicit_init_py`.
# https://github.com/protocolbuffers/protobuf/pull/6795#issuecomment-546060749
# https://github.com/bazelbuild/bazel/issues/10076
genrule(
2019-10-25 12:13:41 +00:00
name = "copy_six",
srcs = ["six-1.12.0/six.py"],
outs = ["__init__.py"],
cmd = "cp $< $(@)",
2019-10-25 12:12:36 +00:00
)
2015-10-22 20:38:17 +00:00
py_library(
2019-10-25 12:13:41 +00:00
name = "six",
srcs = ["__init__.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"],
2015-10-22 20:38:17 +00:00
)