Skip to content

Commit

Permalink
Update cli BUILD to separate out py_library for easier reuse
Browse files Browse the repository at this point in the history
  • Loading branch information
wwwillchen committed Dec 21, 2023
1 parent 253dd31 commit f37032d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion mesop/cli/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ COMMON_DEPS = [
"//mesop/utils",
] + THIRD_PARTY_PY_ABSL_PY

exports_files(["cli.py"])

py_library(
name = "cli_lib",
srcs = ["cli.py"],
deps = COMMON_DEPS,
)

# Prod CLI
py_binary(
name = "cli",
Expand All @@ -28,7 +36,7 @@ py_binary(
# This tag instructs ibazel to pipe into stdin a event describing actions.
"ibazel_notify_changes",
],
deps = COMMON_DEPS,
deps = [":cli_lib"],
)

# Dev CLI
Expand Down

0 comments on commit f37032d

Please sign in to comment.