# Copyright 2010-2025 Google LLC # 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("@pip_deps//:requirements.bzl", "requirement") load("@rules_python//python:py_library.bzl", "py_library") load("@rules_python//python:py_test.bzl", "py_test") package(default_visibility = ["//ortools/math_opt:__subpackages__"]) py_library( name = "compare_proto", testonly = 1, srcs = ["compare_proto.py"], deps = [ requirement("absl-py"), "//ortools/math_opt/python:normalize", "@protobuf//:protobuf_python", ], ) py_test( name = "compare_proto_test", srcs = ["compare_proto_test.py"], deps = [ ":compare_proto", requirement("absl-py"), "//ortools/math_opt:model_py_pb2", "//ortools/math_opt/python:normalize", ], ) py_library( name = "proto_matcher", testonly = 1, srcs = ["proto_matcher.py"], deps = [ "//ortools/math_opt/python:normalize", "@protobuf//:protobuf_python", ], ) py_test( name = "proto_matcher_test", srcs = ["proto_matcher_test.py"], deps = [ ":proto_matcher", requirement("absl-py"), "//ortools/math_opt:model_update_py_pb2", "//ortools/math_opt:sparse_containers_py_pb2", ], )