From fbc51b70181d80bc1dc45230495ca896d54f5193 Mon Sep 17 00:00:00 2001 From: Jisi Liu Date: Thu, 22 Oct 2015 13:38:17 -0700 Subject: Add six as an external dep. --- BUILD | 1 + WORKSPACE | 13 +++++++++++++ six.BUILD | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 six.BUILD diff --git a/BUILD b/BUILD index c08824d8..0401e2c4 100644 --- a/BUILD +++ b/BUILD @@ -510,6 +510,7 @@ py_proto_library( include = "src", protoc = ":protoc", py_extra_srcs = [":python_srcs"], + py_libs = ["//external:six"], visibility = ["//visibility:public"], ) diff --git a/WORKSPACE b/WORKSPACE index f72f239a..42d9328a 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -5,6 +5,14 @@ new_http_archive( build_file = "gmock.BUILD", ) +new_http_archive( + name = "six_archive", + url = "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz#md5=34eed507548117b2ab523ab14b2f8b55", + sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", + build_file = "six.BUILD", + strip_prefix = "six-1.10.0", +) + bind( name = "gtest", actual = "@gmock_archive//:gtest", @@ -14,3 +22,8 @@ bind( name = "gtest_main", actual = "@gmock_archive//:gtest_main", ) + +bind( + name = "six", + actual = "@six_archive//:six", +) diff --git a/six.BUILD b/six.BUILD new file mode 100644 index 00000000..a259232d --- /dev/null +++ b/six.BUILD @@ -0,0 +1,5 @@ +py_library( + name = "six", + srcs = ["six-1.10.0/six.py"], + visibility = ["//visibility:public"], +) -- cgit v1.2.3