Skip to content

Commit 0ab10a3

Browse files
committed
address comments
add the upgrade flag back
1 parent 26d1a91 commit 0ab10a3

15 files changed

+480
-260
lines changed

docs/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,9 @@ lock(
177177
args = [
178178
"--emit-index-url",
179179
"--universal",
180-
#"--upgrade",
180+
"--upgrade",
181181
],
182-
visibility = ["//private:__pkg__"],
182+
visibility = ["//:__subpackages__"],
183183
)
184184

185185
# Temporary compatibility aliases for some other projects depending on the old

private/BUILD.bazel

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ load("@rules_multirun//:defs.bzl", "multirun")
44

55
multirun(
66
name = "requirements.update",
7-
testonly = True,
87
commands = [
98
"//tools/publish:{}.update".format(r)
109
for r in [

python/uv/private/BUILD.bazel

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ load("//python/private:bzlmod_enabled.bzl", "BZLMOD_ENABLED") # buildifier: dis
1717

1818
exports_files(
1919
srcs = [
20-
"copy.py",
21-
"pip_compile.py",
20+
"lock_copier.py",
2221
],
2322
# only because this is used from a macro to template
2423
visibility = ["//visibility:public"],
@@ -41,8 +40,11 @@ bzl_library(
4140
srcs = ["lock.bzl"],
4241
visibility = ["//python/uv:__subpackages__"],
4342
deps = [
44-
"//python:py_test_bzl",
43+
":toolchain_types_bzl",
44+
"//python:py_binary_bzl",
4545
"//python/private:bzlmod_enabled_bzl",
46+
"//python/private:toolchain_types_bzl",
47+
"@bazel_skylib//lib:shell",
4648
"@bazel_skylib//rules:expand_template",
4749
],
4850
)
@@ -93,10 +95,10 @@ bzl_library(
9395
)
9496

9597
filegroup(
96-
name = "pip_compile_template",
98+
name = "lock_template",
9799
srcs = select({
98-
"@platforms//os:windows": ["pip_compile.ps1"],
99-
"//conditions:default": ["pip_compile.sh"],
100+
"@platforms//os:windows": ["lock.bat"],
101+
"//conditions:default": ["lock.sh"],
100102
}),
101103
target_compatible_with = [] if BZLMOD_ENABLED else ["@platforms//:incompatible"],
102104
visibility = ["//visibility:public"],

python/uv/private/copy.py

Lines changed: 0 additions & 50 deletions
This file was deleted.

python/uv/private/lock.bat

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
if defined BUILD_WORKSPACE_DIRECTORY (
2+
set "out=%BUILD_WORKSPACE_DIRECTORY%\{{src_out}}"
3+
) else (
4+
exit /b 1
5+
)
6+
7+
"{{args}}" --output-file "%out%" %*

0 commit comments

Comments
 (0)