Skip to content

Commit

Permalink
Move Python runfiles library out of Bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 6, 2024
1 parent f536223 commit 46db68e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 718 deletions.
35 changes: 0 additions & 35 deletions tools/python/gen_runfiles_constants.bzl

This file was deleted.

23 changes: 0 additions & 23 deletions tools/python/runfiles/BUILD
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
load("@rules_python//python:defs.bzl", "py_library", "py_test")
load("//tools/python:gen_runfiles_constants.bzl", "gen_runfiles_constants")

package(default_visibility = ["//visibility:private"])

filegroup(
Expand All @@ -17,23 +14,3 @@ filegroup(
],
visibility = ["//tools/python:__pkg__"],
)

py_library(
name = "runfiles",
testonly = 1,
srcs = [
"runfiles.py",
":_runfiles_constants",
],
)

gen_runfiles_constants(
name = "_runfiles_constants",
)

py_test(
name = "runfiles_test",
srcs = ["runfiles_test.py"],
visibility = ["//visibility:public"],
deps = [":runfiles"],
)
9 changes: 3 additions & 6 deletions tools/python/runfiles/BUILD.tools
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
load("//tools/python:gen_runfiles_constants.bzl", "gen_runfiles_constants")
load("@rules_python//python:defs.bzl", "py_library")

py_library(
name = "runfiles",
srcs = [
"runfiles.py",
":_runfiles_constants",
],
deps = [
"@rules_python//python/runfiles",
],
visibility = ["//visibility:public"],
)

gen_runfiles_constants(
name = "_runfiles_constants",
)
Loading

0 comments on commit 46db68e

Please sign in to comment.