Skip to content

Commit 006cf31

Browse files
committed
Move Python runfiles library out of Bazel
1 parent b7b21b2 commit 006cf31

File tree

5 files changed

+12
-718
lines changed

5 files changed

+12
-718
lines changed

tools/python/gen_runfiles_constants.bzl

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

tools/python/runfiles/BUILD

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
load("@rules_python//python:defs.bzl", "py_library", "py_test")
2-
load("//tools/python:gen_runfiles_constants.bzl", "gen_runfiles_constants")
3-
41
package(default_visibility = ["//visibility:private"])
52

63
filegroup(
@@ -17,23 +14,3 @@ filegroup(
1714
],
1815
visibility = ["//tools/python:__pkg__"],
1916
)
20-
21-
py_library(
22-
name = "runfiles",
23-
testonly = 1,
24-
srcs = [
25-
"runfiles.py",
26-
":_runfiles_constants",
27-
],
28-
)
29-
30-
gen_runfiles_constants(
31-
name = "_runfiles_constants",
32-
)
33-
34-
py_test(
35-
name = "runfiles_test",
36-
srcs = ["runfiles_test.py"],
37-
visibility = ["//visibility:public"],
38-
deps = [":runfiles"],
39-
)

tools/python/runfiles/BUILD.tools

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
load("//tools/python:gen_runfiles_constants.bzl", "gen_runfiles_constants")
21
load("@rules_python//python:defs.bzl", "py_library")
32

43
py_library(
54
name = "runfiles",
65
srcs = [
76
"runfiles.py",
8-
":_runfiles_constants",
7+
],
8+
deps = [
9+
"@rules_python//python/runfiles",
910
],
1011
visibility = ["//visibility:public"],
1112
)
12-
13-
gen_runfiles_constants(
14-
name = "_runfiles_constants",
15-
)

0 commit comments

Comments
 (0)