# Copyright 2023 The OpenXLA Authors.
#
# 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.

# Jax library for IFRT proxy.
load("//xla:pytype.default.bzl", "pytype_strict_library")

package(
    # copybara:uncomment default_applicable_licenses = ["//tensorflow:license"],
    default_visibility = ["//visibility:public"],
)

pytype_strict_library(
    name = "ifrt_proxy_internal",
    srcs = ["ifrt_proxy_internal.py"],
    # copybara:uncomment_begin
    # visibility = [
    # "//xla/python/ifrt_proxy/common/google:friends",
    # "//xla/python/ifrt_proxy/common/google:jax_users",
    # ],
    # copybara:uncomment_end
    deps = [
        "//xla/python:xla_client",
    ],
)

# copybara:uncomment_begin(ifrt_proxy.py is not exported to github)
# pytype_strict_library(
#     name = "ifrt_proxy",
#     srcs = ["ifrt_proxy.py"],
#     visibility = [
#         "//xla/python/ifrt_proxy/common/google:friends",
#         "//xla/python/ifrt_proxy/common/google:jax_users",
#     ],
#     deps = [
#         ":ifrt_proxy_internal",
#         "//third_party/py/jax",
#     ],
# )
# copybara:uncomment_end
