1# Copyright 2023 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") 16 17package( 18 default_visibility = ["//:__subpackages__"], 19) 20 21bzl_library( 22 name = "pip_repository_bzl", 23 srcs = ["pip_repository.bzl"], 24 deps = [ 25 "//python/private/pypi:group_library_bzl", 26 "//python/private/pypi:package_annotation_bzl", 27 "//python/private/pypi:pip_repository_bzl", 28 "//python/private/pypi:whl_library_bzl", 29 ], 30) 31 32bzl_library( 33 name = "requirements_bzl", 34 srcs = ["requirements.bzl"], 35 deps = ["//python/private/pypi:pip_compile_bzl"], 36) 37 38bzl_library( 39 name = "repositories_bzl", 40 srcs = ["repositories.bzl"], 41 deps = [ 42 "//python/private/pypi:deps_bzl", 43 ], 44) 45 46filegroup( 47 name = "distribution", 48 srcs = glob(["**"]), 49 visibility = ["//python:__pkg__"], 50) 51 52filegroup( 53 name = "bzl", 54 srcs = glob(["*.bzl"]), 55 visibility = ["//:__subpackages__"], 56) 57 58exports_files( 59 glob(["*.bzl"]), 60 visibility = ["//docs:__pkg__"], 61) 62