diff options
Diffstat (limited to 'tools/private/update_deps/BUILD.bazel')
-rw-r--r-- | tools/private/update_deps/BUILD.bazel | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tools/private/update_deps/BUILD.bazel b/tools/private/update_deps/BUILD.bazel new file mode 100644 index 0000000..2ab7cc7 --- /dev/null +++ b/tools/private/update_deps/BUILD.bazel @@ -0,0 +1,76 @@ +# Copyright 2017 The Bazel Authors. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +load("//python:py_binary.bzl", "py_binary") +load("//python:py_library.bzl", "py_library") +load("//python:py_test.bzl", "py_test") + +licenses(["notice"]) + +py_library( + name = "args", + srcs = ["args.py"], + imports = ["../../.."], + deps = ["//python/runfiles"], +) + +py_library( + name = "update_file", + srcs = ["update_file.py"], + imports = ["../../.."], +) + +py_binary( + name = "update_coverage_deps", + srcs = ["update_coverage_deps.py"], + data = [ + "//python/private:coverage_deps", + ], + env = { + "UPDATE_FILE": "$(rlocationpath //python/private:coverage_deps)", + }, + imports = ["../../.."], + deps = [ + ":args", + ":update_file", + ], +) + +py_binary( + name = "update_pip_deps", + srcs = ["update_pip_deps.py"], + data = [ + "//:MODULE.bazel", + "//python/pip_install:repositories", + "//python/pip_install:requirements_txt", + ], + env = { + "MODULE_BAZEL": "$(rlocationpath //:MODULE.bazel)", + "REPOSITORIES_BZL": "$(rlocationpath //python/pip_install:repositories)", + "REQUIREMENTS_TXT": "$(rlocationpath //python/pip_install:requirements_txt)", + }, + imports = ["../../.."], + deps = [ + ":args", + ":update_file", + ], +) + +py_test( + name = "update_file_test", + srcs = ["update_file_test.py"], + imports = ["../../.."], + deps = [ + ":update_file", + ], +) |