Commit 29799238 authored by Geoffrey Irving's avatar Geoffrey Irving

Add srcs_version = "PY2AND3" in BUILD files

The sources themselves appear to already be Python 3 clean.
parent dbc91e97
...@@ -512,6 +512,7 @@ internal_copied_filegroup( ...@@ -512,6 +512,7 @@ internal_copied_filegroup(
py_proto_library( py_proto_library(
name = "protobuf_python", name = "protobuf_python",
srcs = WELL_KNOWN_PROTOS, srcs = WELL_KNOWN_PROTOS,
srcs_version = "PY2AND3",
include = "src", include = "src",
protoc = ":protoc", protoc = ":protoc",
py_extra_srcs = [":python_srcs"], py_extra_srcs = [":python_srcs"],
...@@ -555,6 +556,7 @@ py_proto_library( ...@@ -555,6 +556,7 @@ py_proto_library(
py_library( py_library(
name = "python_tests", name = "python_tests",
srcs = [":python_test_srcs"], srcs = [":python_test_srcs"],
srcs_version = "PY2AND3",
deps = [ deps = [
":protobuf_python", ":protobuf_python",
":python_common_test_protos", ":python_common_test_protos",
......
...@@ -8,5 +8,6 @@ genrule( ...@@ -8,5 +8,6 @@ genrule(
py_library( py_library(
name = "six", name = "six",
srcs = ["six.py"], srcs = ["six.py"],
srcs_version = "PY2AND3",
visibility = ["//visibility:public"], visibility = ["//visibility:public"],
) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment