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 38filegroup( 39 name = "distribution", 40 srcs = glob(["**"]), 41 visibility = ["//python:__pkg__"], 42) 43 44filegroup( 45 name = "bzl", 46 srcs = glob(["*.bzl"]), 47 visibility = ["//:__subpackages__"], 48) 49 50exports_files( 51 glob(["*.bzl"]), 52 visibility = ["//docs:__pkg__"], 53) 54