Skip to content

Commit 5bc1416

Browse files
committed
cleanup uv setup
1 parent 5d9f9cb commit 5bc1416

File tree

2 files changed

+7
-83
lines changed

2 files changed

+7
-83
lines changed

tests/integration/local_toolchains/MODULE.bazel

Lines changed: 1 addition & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -117,91 +117,11 @@ pip.parse(
117117
)
118118
use_repo(pip, "pypi")
119119

120-
### UV SETUP
121-
## todo: this is a lot of setup. Why did I have to copy/paste all this?
122-
123-
uv = use_extension("@rules_python//python/uv:uv.bzl", "uv")
124-
125-
# Here is how we can define platforms for the `uv` binaries - this will affect
126-
# all of the downstream callers because we are using the extension without
127-
# `dev_dependency = True`.
128-
uv.default(
129-
base_url = "https://github.com/astral-sh/uv/releases/download",
130-
manifest_filename = "dist-manifest.json",
131-
version = "0.6.3",
132-
)
133-
uv.default(
134-
compatible_with = [
135-
"@platforms//os:macos",
136-
"@platforms//cpu:aarch64",
137-
],
138-
platform = "aarch64-apple-darwin",
139-
)
140-
uv.default(
141-
compatible_with = [
142-
"@platforms//os:linux",
143-
"@platforms//cpu:aarch64",
144-
],
145-
platform = "aarch64-unknown-linux-gnu",
146-
)
147-
uv.default(
148-
compatible_with = [
149-
"@platforms//os:linux",
150-
"@platforms//cpu:ppc",
151-
],
152-
platform = "powerpc64-unknown-linux-gnu",
153-
)
154-
uv.default(
155-
compatible_with = [
156-
"@platforms//os:linux",
157-
"@platforms//cpu:ppc64le",
158-
],
159-
platform = "powerpc64le-unknown-linux-gnu",
160-
)
161-
uv.default(
162-
compatible_with = [
163-
"@platforms//os:linux",
164-
"@platforms//cpu:s390x",
165-
],
166-
platform = "s390x-unknown-linux-gnu",
167-
)
168-
uv.default(
169-
compatible_with = [
170-
"@platforms//os:linux",
171-
"@platforms//cpu:riscv64",
172-
],
173-
platform = "riscv64-unknown-linux-gnu",
174-
)
175-
uv.default(
176-
compatible_with = [
177-
"@platforms//os:macos",
178-
"@platforms//cpu:x86_64",
179-
],
180-
platform = "x86_64-apple-darwin",
181-
)
182-
uv.default(
183-
compatible_with = [
184-
"@platforms//os:windows",
185-
"@platforms//cpu:x86_64",
186-
],
187-
platform = "x86_64-pc-windows-msvc",
188-
)
189-
uv.default(
190-
compatible_with = [
191-
"@platforms//os:linux",
192-
"@platforms//cpu:x86_64",
193-
],
194-
platform = "x86_64-unknown-linux-gnu",
195-
)
196-
use_repo(uv, "uv")
197-
198-
register_toolchains("@uv//:all")
199-
200120
uv_dev = use_extension(
201121
"@rules_python//python/uv:uv.bzl",
202122
"uv",
203123
dev_dependency = True,
204124
)
205125
uv_dev.configure(
206-
version = "0.6.2",
126+
version = "0.8.22",
207127
)
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
# This file was autogenerated by uv via the following command:
2-
# uv pip compile pyproject.toml -o requirements/requirements-local.txt
3-
more-itertools==10.8.0
2+
# bazel run //requirements:requirements.update
3+
--index-url https://pypi.org/simple
4+
5+
more-itertools==10.8.0 \
6+
--hash=sha256:52d4362373dcf7c52546bc4af9a86ee7c4579df9a8dc268be0a2f949d376cc9b \
7+
--hash=sha256:f638ddf8a1a0d134181275fb5d58b086ead7c6a72429ad725c67503f13ba30bd
48
# via local-toolchains (pyproject.toml)

0 commit comments

Comments
 (0)