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 15"""Version and integrity information for downloaded artifacts""" 16 17UV_PLATFORMS = { 18 "aarch64-apple-darwin": struct( 19 default_repo_name = "uv_darwin_aarch64", 20 compatible_with = [ 21 "@platforms//os:macos", 22 "@platforms//cpu:aarch64", 23 ], 24 ), 25 "aarch64-unknown-linux-gnu": struct( 26 default_repo_name = "uv_linux_aarch64", 27 compatible_with = [ 28 "@platforms//os:linux", 29 "@platforms//cpu:aarch64", 30 ], 31 ), 32 "powerpc64le-unknown-linux-gnu": struct( 33 default_repo_name = "uv_linux_ppc", 34 compatible_with = [ 35 "@platforms//os:linux", 36 "@platforms//cpu:ppc", 37 ], 38 ), 39 "s390x-unknown-linux-gnu": struct( 40 default_repo_name = "uv_linux_s390x", 41 compatible_with = [ 42 "@platforms//os:linux", 43 "@platforms//cpu:s390x", 44 ], 45 ), 46 "x86_64-apple-darwin": struct( 47 default_repo_name = "uv_darwin_x86_64", 48 compatible_with = [ 49 "@platforms//os:macos", 50 "@platforms//cpu:x86_64", 51 ], 52 ), 53 "x86_64-pc-windows-msvc": struct( 54 default_repo_name = "uv_windows_x86_64", 55 compatible_with = [ 56 "@platforms//os:windows", 57 "@platforms//cpu:x86_64", 58 ], 59 ), 60 "x86_64-unknown-linux-gnu": struct( 61 default_repo_name = "uv_linux_x86_64", 62 compatible_with = [ 63 "@platforms//os:linux", 64 "@platforms//cpu:x86_64", 65 ], 66 ), 67} 68 69# From: https://github.com/astral-sh/uv/releases 70UV_TOOL_VERSIONS = { 71 "0.2.23": { 72 "aarch64-apple-darwin": struct( 73 sha256 = "1d41beb151ace9621a0e729d661cfb04d6375bffdaaf0e366d1653576ce3a687", 74 ), 75 "aarch64-unknown-linux-gnu": struct( 76 sha256 = "c35042255239b75d29b9fd4b0845894b91284ed3ff90c2595d0518b4c8902329", 77 ), 78 "powerpc64le-unknown-linux-gnu": struct( 79 sha256 = "ca16c9456d297e623164e3089d76259c6d70ac40c037dd2068accc3bb1b09d5e", 80 ), 81 "s390x-unknown-linux-gnu": struct( 82 sha256 = "55f8c2aa089f382645fce9eed3ee002f2cd48de4696568e7fd63105a02da568c", 83 ), 84 "x86_64-apple-darwin": struct( 85 sha256 = "960d2ae6ec31bcf5da3f66083dedc527712115b97ee43eae903d74a43874fa72", 86 ), 87 "x86_64-pc-windows-msvc": struct( 88 sha256 = "66f80537301c686a801b91468a43dbeb0881bd6d51857078c24f29e5dca8ecf1", 89 ), 90 "x86_64-unknown-linux-gnu": struct( 91 sha256 = "4384db514959beb4de1dcdf7f1f2d5faf664f7180820b0e7a521ef2147e33d1d", 92 ), 93 }, 94} 95