Skip to content

Commit d31b082

Browse files
committed
WIP
1 parent 479e994 commit d31b082

File tree

8 files changed

+31
-6
lines changed

8 files changed

+31
-6
lines changed

docs/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ stardoc_with_diff_test(
4242
)
4343

4444
stardoc_with_diff_test(
45-
name = "pip",
46-
bzl_library_target = "//pip/private:extension",
45+
name = "uv",
46+
bzl_library_target = "//uv/private:extension",
4747
)
4848

4949
update_docs(name = "update")

docs/unstable.md

Whitespace-only changes.

py/private/py_binary.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ _attrs = dict({
147147
"venv": attr.string(
148148
doc = """The name of the Python virtual environment within which deps should be resolved.
149149
150-
Part of the aspect_rules_py//pip system, has no effect in rules_python's pip.
150+
Part of the aspect_rules_py//uv system, has no effect in rules_python's pip.
151151
""",
152152
),
153153
"python_version": attr.string(

py/private/toolchain/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ bzl_library(
4949
name = "types",
5050
srcs = ["types.bzl"],
5151
visibility = [
52-
"//pip:__subpackages__",
52+
"//uv:__subpackages__",
5353
"//py:__subpackages__",
5454
],
5555
deps = [],

tools/BUILD.bazel

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2+
3+
package(default_visibility = ["//py:__subpackages__", "//uv:__subpackages__"])
4+
5+
bzl_library(
6+
name = "tools",
7+
srcs = ["tools.bzl"],
8+
)
9+
10+
bzl_library(
11+
name = "version",
12+
srcs = ["version.bzl"],
13+
)
14+
15+
bzl_library(
16+
name = "integrity",
17+
srcs = ["integrity.bzl"],
18+
)

uv/private/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ bzl_library(
1515
":sha1",
1616
"//uv/private/constraints:repository",
1717
"//uv/private/constraints/platform:defs",
18-
"//uv/private/pip_hub:repository",
18+
"//uv/private/hub:repository",
1919
"//uv/private/sdist_build:repository",
2020
"//uv/private/tomltool:toml",
2121
"//uv/private/venv_hub:repository",

uv/private/constraints/abi/macro.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def generate():
2424
],
2525
)
2626

27+
# TODO: Replace all this with the rules_python feature flags
2728
native.constraint_setting(
2829
name = "feature_pydebug",
2930
default_constraint_value = ":pydebug_disabled",

uv/private/host/repository.bzl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,13 @@ def _platform(rctx):
4444
def _host_platform_repo_impl(rctx):
4545
rctx.file("BUILD.bazel", """
4646
# DO NOT EDIT: automatically generated BUILD file
47-
exports_files(["defs.bzl"])
47+
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
48+
49+
bzl_library(
50+
name = "defs",
51+
srcs = ["defs.bzl"],
52+
visibility = ["//visibility:public"],
53+
)
4854
""")
4955

5056
platform = _platform(rctx)

0 commit comments

Comments
 (0)