Skip to content

Commit

Permalink
Move py_import into the private python area
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Nov 11, 2019
1 parent 23a7d77 commit 9591dd3
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 14 deletions.
15 changes: 3 additions & 12 deletions py/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ copy_file(
)

py_library(
name = "main",
name = "selenium",
srcs = glob(["selenium/**/*.py"]),
data = [
":firefox-driver-prefs",
Expand Down Expand Up @@ -77,7 +77,7 @@ pytest_test(
]),
deps = [
":init-tree",
":main",
":selenium",
"//third_party/py:pytest",
],
)
Expand Down Expand Up @@ -110,17 +110,8 @@ pytest_test(
],
deps = [
":init-tree",
":main",
":selenium",
":webserver",
"//third_party/py:pytest",
]
)

py_binary(
name = "untar",
visibility = ["//visibility:public"],
srcs = [
"untar.py",
],
legacy_create_init = False,
)
2 changes: 1 addition & 1 deletion py/defs.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
load("//py:import.bzl", _py_import = "py_import")
load("//py/private:import.bzl", _py_import = "py_import")
load("//py/private:pytest.bzl", _pytest_test = "pytest_test")

py_import = _py_import
Expand Down
8 changes: 8 additions & 0 deletions py/private/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
py_binary(
name = "untar",
visibility = ["//visibility:public"],
srcs = [
"untar.py",
],
legacy_create_init = False,
)
2 changes: 1 addition & 1 deletion py/import.bzl → py/private/import.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ py_import = rule(
),
"_untar": attr.label(
cfg = "exec",
default = "//py:untar",
default = "//py/private:untar",
executable = True,
),
},
Expand Down
File renamed without changes.

0 comments on commit 9591dd3

Please sign in to comment.