1# Copyright 2024 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 15load("@bazel_skylib//:bzl_library.bzl", "bzl_library") 16load(":py_common_api.bzl", "py_common_api") 17 18package( 19 default_visibility = ["//:__subpackages__"], 20) 21 22filegroup( 23 name = "distribution", 24 srcs = glob(["**"]), 25) 26 27py_common_api( 28 name = "py_common_api", 29 # NOTE: Not actually public. Implicit dependency of public rules. 30 visibility = ["//visibility:public"], 31) 32 33bzl_library( 34 name = "api_bzl", 35 srcs = ["api.bzl"], 36 deps = [ 37 "//python/private:py_info_bzl", 38 ], 39) 40 41bzl_library( 42 name = "py_common_api_bzl", 43 srcs = ["py_common_api.bzl"], 44 deps = [ 45 ":api_bzl", 46 "//python/private:py_info_bzl", 47 ], 48) 49