blob: 5544f07a8460442c63966c77c36825c204a9e9b5 [file] [log] [blame]
rosica0ec99e72019-01-03 01:06:47 -08001# Copyright 2018 The Bazel Authors. All rights reserved.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7# http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14
15package(default_visibility = ["//visibility:public"])
16
17licenses(["notice"]) # Apache 2.0
18
19filegroup(
20 name = "srcs",
21 srcs = glob(["**"]),
22)
23
leba35757972019-02-08 02:03:12 -080024py_library(
25 name = "aquery_differ_resolvers",
26 srcs = glob(
27 ["resolvers/*.py"],
28 ),
29)
30
rosica0ec99e72019-01-03 01:06:47 -080031py_binary(
leba35757972019-02-08 02:03:12 -080032 name = "aquery_differ",
33 srcs = ["aquery_differ.py"],
Googlerd7de46b2019-04-24 05:59:10 -070034 python_version = "PY2",
Googlerbd5e9ed2019-02-25 09:03:35 -080035 deps = [":aquery_differ_main_lib"],
36)
37
38py_library(
39 name = "aquery_differ_main_lib",
40 srcs = ["aquery_differ.py"],
rosica0ec99e72019-01-03 01:06:47 -080041 deps = [
leba35757972019-02-08 02:03:12 -080042 ":aquery_differ_resolvers",
rosica0ec99e72019-01-03 01:06:47 -080043 "//src/main/protobuf:analysis_py_proto",
44 "//third_party/py/abseil",
45 ],
46)
47
48py_test(
leba35757972019-02-08 02:03:12 -080049 name = "aquery_differ_test",
50 srcs = ["aquery_differ_test.py"],
Googlerd7de46b2019-04-24 05:59:10 -070051 python_version = "PY2",
rosica0ec99e72019-01-03 01:06:47 -080052 deps = [
Googlerbd5e9ed2019-02-25 09:03:35 -080053 ":aquery_differ_main_lib",
rosica0ec99e72019-01-03 01:06:47 -080054 "//src/main/protobuf:analysis_py_proto",
55 "//third_party/py/mock",
56 ],
57)