| # 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 = [ |
| "//python/private/pypi:deps.bzl", |
| "//python/private/pypi:requirements_txt", |
| ], |
| env = { |
| "DEPS_BZL": "$(rlocationpath //python/private/pypi:deps.bzl)", |
| "REQUIREMENTS_TXT": "$(rlocationpath //python/private/pypi:requirements_txt)", |
| }, |
| imports = ["../../.."], |
| visibility = ["//private:__pkg__"], |
| deps = [ |
| ":args", |
| ":update_file", |
| ], |
| ) |
| |
| py_test( |
| name = "update_file_test", |
| srcs = ["update_file_test.py"], |
| imports = ["../../.."], |
| deps = [ |
| ":update_file", |
| ], |
| ) |