From 7f8235f6dfbd309a879895701aeb5e73c6425483 Mon Sep 17 00:00:00 2001 From: Vadym Matsishevskyi <25311427+vam-google@users.noreply.github.com> Date: Mon, 4 Jan 2021 09:58:58 -0800 Subject: [PATCH] fix: fix missing .coveragerc and the broken bazel build (#723) --- BUILD.bazel | 2 +- WORKSPACE | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/BUILD.bazel b/BUILD.bazel index 4d6451aa92..0ec34987b0 100644 --- a/BUILD.bazel +++ b/BUILD.bazel @@ -52,7 +52,7 @@ toolchain( py_binary( name = "gapic_plugin", srcs = glob(["gapic/**/*.py"]), - data = [":pandoc_binary"] + glob(["gapic/**/*.j2"]), + data = [":pandoc_binary"] + glob(["gapic/**/*.j2", "gapic/**/.*.j2"]), main = "gapic/cli/generate_with_pandoc.py", python_version = "PY3", visibility = ["//visibility:public"], diff --git a/WORKSPACE b/WORKSPACE index 673c802f99..d6fa214f2b 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -9,14 +9,10 @@ http_archive( http_archive( name = "rules_python", - strip_prefix = "rules_python-0.1.0, + strip_prefix = "rules_python-0.1.0", url = "https://github.com/bazelbuild/rules_python/archive/0.1.0.tar.gz", ) -load("@rules_python//python:repositories.bzl", "py_repositories") - -py_repositories() - load("@rules_python//python:pip.bzl", "pip_repositories") pip_repositories() @@ -24,19 +20,16 @@ pip_repositories() # # Import gapic-generator-python specific dependencies # -load("//:repositories.bzl", +load( + "//:repositories.bzl", "gapic_generator_python", - "gapic_generator_register_toolchains" + "gapic_generator_register_toolchains", ) gapic_generator_python() gapic_generator_register_toolchains() -load("@gapic_generator_python_pip_deps//:requirements.bzl", "pip_install") - -pip_install() - load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") protobuf_deps()