blob: 2ab7cc73a677a4ebf1370d966a959799dee8d39c [file] [log] [blame]
# 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",
],
)