1*60517a1eSAndroid Build Coastguard Worker# Copyright 2024 The Bazel Authors. All rights reserved. 2*60517a1eSAndroid Build Coastguard Worker# 3*60517a1eSAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License"); 4*60517a1eSAndroid Build Coastguard Worker# you may not use this file except in compliance with the License. 5*60517a1eSAndroid Build Coastguard Worker# You may obtain a copy of the License at 6*60517a1eSAndroid Build Coastguard Worker# 7*60517a1eSAndroid Build Coastguard Worker# http://www.apache.org/licenses/LICENSE-2.0 8*60517a1eSAndroid Build Coastguard Worker# 9*60517a1eSAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software 10*60517a1eSAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS, 11*60517a1eSAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*60517a1eSAndroid Build Coastguard Worker# See the License for the specific language governing permissions and 13*60517a1eSAndroid Build Coastguard Worker# limitations under the License. 14*60517a1eSAndroid Build Coastguard Worker 15*60517a1eSAndroid Build Coastguard Worker# EXPERIMENTAL: This is experimental and may be removed without notice 16*60517a1eSAndroid Build Coastguard Worker 17*60517a1eSAndroid Build Coastguard Workerload("@bazel_skylib//:bzl_library.bzl", "bzl_library") 18*60517a1eSAndroid Build Coastguard Workerload("//python/uv/private:current_toolchain.bzl", "current_toolchain") 19*60517a1eSAndroid Build Coastguard Worker 20*60517a1eSAndroid Build Coastguard Workerpackage(default_visibility = ["//:__subpackages__"]) 21*60517a1eSAndroid Build Coastguard Worker 22*60517a1eSAndroid Build Coastguard Workerfilegroup( 23*60517a1eSAndroid Build Coastguard Worker name = "distribution", 24*60517a1eSAndroid Build Coastguard Worker srcs = glob(["**"]) + [ 25*60517a1eSAndroid Build Coastguard Worker "//python/uv/private:distribution", 26*60517a1eSAndroid Build Coastguard Worker ], 27*60517a1eSAndroid Build Coastguard Worker visibility = ["//:__subpackages__"], 28*60517a1eSAndroid Build Coastguard Worker) 29*60517a1eSAndroid Build Coastguard Worker 30*60517a1eSAndroid Build Coastguard Worker# For stardoc to reference the files 31*60517a1eSAndroid Build Coastguard Workerexports_files(["defs.bzl"]) 32*60517a1eSAndroid Build Coastguard Worker 33*60517a1eSAndroid Build Coastguard Workertoolchain_type( 34*60517a1eSAndroid Build Coastguard Worker name = "uv_toolchain_type", 35*60517a1eSAndroid Build Coastguard Worker visibility = ["//visibility:public"], 36*60517a1eSAndroid Build Coastguard Worker) 37*60517a1eSAndroid Build Coastguard Worker 38*60517a1eSAndroid Build Coastguard Workercurrent_toolchain( 39*60517a1eSAndroid Build Coastguard Worker name = "current_toolchain", 40*60517a1eSAndroid Build Coastguard Worker # Marked manual so that `bazel test //...` passes 41*60517a1eSAndroid Build Coastguard Worker # even if no toolchain is registered. 42*60517a1eSAndroid Build Coastguard Worker tags = ["manual"], 43*60517a1eSAndroid Build Coastguard Worker # EXPERIMENTAL: Visibility is restricted to allow for changes. 44*60517a1eSAndroid Build Coastguard Worker visibility = [ 45*60517a1eSAndroid Build Coastguard Worker "//:__subpackages__", 46*60517a1eSAndroid Build Coastguard Worker "@rules_python//examples:__subpackages__", 47*60517a1eSAndroid Build Coastguard Worker ], 48*60517a1eSAndroid Build Coastguard Worker) 49*60517a1eSAndroid Build Coastguard Worker 50*60517a1eSAndroid Build Coastguard Workerbzl_library( 51*60517a1eSAndroid Build Coastguard Worker name = "defs", 52*60517a1eSAndroid Build Coastguard Worker srcs = ["defs.bzl"], 53*60517a1eSAndroid Build Coastguard Worker # EXPERIMENTAL: Visibility is restricted to allow for changes. 54*60517a1eSAndroid Build Coastguard Worker visibility = ["//:__subpackages__"], 55*60517a1eSAndroid Build Coastguard Worker) 56*60517a1eSAndroid Build Coastguard Worker 57*60517a1eSAndroid Build Coastguard Workerbzl_library( 58*60517a1eSAndroid Build Coastguard Worker name = "extensions", 59*60517a1eSAndroid Build Coastguard Worker srcs = ["extensions.bzl"], 60*60517a1eSAndroid Build Coastguard Worker # EXPERIMENTAL: Visibility is restricted to allow for changes. 61*60517a1eSAndroid Build Coastguard Worker visibility = ["//:__subpackages__"], 62*60517a1eSAndroid Build Coastguard Worker deps = [":repositories"], 63*60517a1eSAndroid Build Coastguard Worker) 64*60517a1eSAndroid Build Coastguard Worker 65*60517a1eSAndroid Build Coastguard Workerbzl_library( 66*60517a1eSAndroid Build Coastguard Worker name = "repositories", 67*60517a1eSAndroid Build Coastguard Worker srcs = ["repositories.bzl"], 68*60517a1eSAndroid Build Coastguard Worker # EXPERIMENTAL: Visibility is restricted to allow for changes. 69*60517a1eSAndroid Build Coastguard Worker visibility = ["//:__subpackages__"], 70*60517a1eSAndroid Build Coastguard Worker deps = [ 71*60517a1eSAndroid Build Coastguard Worker "//python/uv/private:toolchains_repo", 72*60517a1eSAndroid Build Coastguard Worker "//python/uv/private:versions", 73*60517a1eSAndroid Build Coastguard Worker ], 74*60517a1eSAndroid Build Coastguard Worker) 75*60517a1eSAndroid Build Coastguard Worker 76*60517a1eSAndroid Build Coastguard Workerbzl_library( 77*60517a1eSAndroid Build Coastguard Worker name = "toolchain", 78*60517a1eSAndroid Build Coastguard Worker srcs = ["toolchain.bzl"], 79*60517a1eSAndroid Build Coastguard Worker # EXPERIMENTAL: Visibility is restricted to allow for changes. 80*60517a1eSAndroid Build Coastguard Worker visibility = ["//:__subpackages__"], 81*60517a1eSAndroid Build Coastguard Worker) 82