diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..65e8edc --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/bazel-* \ No newline at end of file diff --git a/WORKSPACE b/WORKSPACE index e69de29..c34258b 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -0,0 +1,31 @@ +load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") + +http_archive( + name = "six_archive", + urls = [ + "http://mirror.bazel.build/pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz", + "https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz", + ], + sha256 = "105f8d68616f8248e24bf0e9372ef04d3cc10104f1980f54d57b2ce73a5ad56a", + strip_prefix = "six-1.10.0", + build_file = "@//third_party:six.BUILD", +) + +bind( + name = "six", + actual = "@six_archive//:six", +) + +http_archive( + name = "com_google_protobuf", + sha256 = "d6618d117698132dadf0f830b762315807dc424ba36ab9183f1f436008a2fdb6", + strip_prefix = "protobuf-3.6.1.2", + urls = ["https://github.com/google/protobuf/archive/v3.6.1.2.zip"], +) + +http_archive( + name = "io_abseil_py", + sha256 = "74a2203a9b4681851f4f1dfc17f2832e0a16bae0369b288b18b431cea63f0ee9", + strip_prefix = "abseil-py-pypi-v0.6.1", + urls = ["https://github.com/abseil/abseil-py/archive/pypi-v0.6.1.zip"], +) diff --git a/third_party/com/github/bazelbuild/bazel/src/main/protobuf/BUILD b/third_party/com/github/bazelbuild/bazel/src/main/protobuf/BUILD new file mode 100644 index 0000000..6fafeb8 --- /dev/null +++ b/third_party/com/github/bazelbuild/bazel/src/main/protobuf/BUILD @@ -0,0 +1,11 @@ +licenses(["notice"]) # Apache 2.0 + +load("@com_google_protobuf//:protobuf.bzl", "py_proto_library") + +py_proto_library( + name = "crosstool_config_py_pb2", + srcs = ["crosstool_config.proto"], + visibility = [ + "//tools/migration:__pkg__", + ], +) diff --git a/third_party/six.BUILD b/third_party/six.BUILD new file mode 100644 index 0000000..a1b2f7b --- /dev/null +++ b/third_party/six.BUILD @@ -0,0 +1,14 @@ +# Description: +# Six provides simple utilities for wrapping over differences between Python 2 +# and Python 3. + +licenses(["notice"]) # MIT + +exports_files(["LICENSE"]) + +py_library( + name = "six", + srcs = ["six.py"], + srcs_version = "PY2AND3", + visibility = ["//visibility:public"], +)