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