rosica | 0ec99e7 | 2019-01-03 01:06:47 -0800 | [diff] [blame] | 1 | # 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 | |
| 15 | package(default_visibility = ["//visibility:public"]) |
| 16 | |
| 17 | licenses(["notice"]) # Apache 2.0 |
| 18 | |
| 19 | filegroup( |
| 20 | name = "srcs", |
| 21 | srcs = glob(["**"]), |
| 22 | ) |
| 23 | |
leba | 3575797 | 2019-02-08 02:03:12 -0800 | [diff] [blame] | 24 | py_library( |
| 25 | name = "aquery_differ_resolvers", |
| 26 | srcs = glob( |
| 27 | ["resolvers/*.py"], |
| 28 | ), |
| 29 | ) |
| 30 | |
rosica | 0ec99e7 | 2019-01-03 01:06:47 -0800 | [diff] [blame] | 31 | py_binary( |
leba | 3575797 | 2019-02-08 02:03:12 -0800 | [diff] [blame] | 32 | name = "aquery_differ", |
| 33 | srcs = ["aquery_differ.py"], |
Googler | d7de46b | 2019-04-24 05:59:10 -0700 | [diff] [blame] | 34 | python_version = "PY2", |
Googler | bd5e9ed | 2019-02-25 09:03:35 -0800 | [diff] [blame] | 35 | deps = [":aquery_differ_main_lib"], |
| 36 | ) |
| 37 | |
| 38 | py_library( |
| 39 | name = "aquery_differ_main_lib", |
| 40 | srcs = ["aquery_differ.py"], |
rosica | 0ec99e7 | 2019-01-03 01:06:47 -0800 | [diff] [blame] | 41 | deps = [ |
leba | 3575797 | 2019-02-08 02:03:12 -0800 | [diff] [blame] | 42 | ":aquery_differ_resolvers", |
rosica | 0ec99e7 | 2019-01-03 01:06:47 -0800 | [diff] [blame] | 43 | "//src/main/protobuf:analysis_py_proto", |
| 44 | "//third_party/py/abseil", |
| 45 | ], |
| 46 | ) |
| 47 | |
| 48 | py_test( |
leba | 3575797 | 2019-02-08 02:03:12 -0800 | [diff] [blame] | 49 | name = "aquery_differ_test", |
| 50 | srcs = ["aquery_differ_test.py"], |
Googler | d7de46b | 2019-04-24 05:59:10 -0700 | [diff] [blame] | 51 | python_version = "PY2", |
rosica | 0ec99e7 | 2019-01-03 01:06:47 -0800 | [diff] [blame] | 52 | deps = [ |
Googler | bd5e9ed | 2019-02-25 09:03:35 -0800 | [diff] [blame] | 53 | ":aquery_differ_main_lib", |
rosica | 0ec99e7 | 2019-01-03 01:06:47 -0800 | [diff] [blame] | 54 | "//src/main/protobuf:analysis_py_proto", |
| 55 | "//third_party/py/mock", |
| 56 | ], |
| 57 | ) |