diff schwab_trader/BUILD @ 220:eb8b4230fdb9

[schwab-trader] Add guarded trading experiment
author MrJuneJune <me@mrjunejune.com>
date Sun, 02 Aug 2026 08:52:13 -0700
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/schwab_trader/BUILD	Sun Aug 02 08:52:13 2026 -0700
@@ -0,0 +1,66 @@
+load("@rules_python//python:py_binary.bzl", "py_binary")
+load("@rules_python//python:py_library.bzl", "py_library")
+load("@rules_python//python:py_test.bzl", "py_test")
+
+py_library(
+    name = "schwab_client",
+    srcs = [
+        "__init__.py",
+        "schwab_client.py",
+    ],
+    visibility = ["//visibility:public"],
+)
+
+py_library(
+    name = "schwab_dashboard_lib",
+    srcs = [
+        "__init__.py",
+        "dashboard.py",
+    ],
+    deps = [":schwab_client"],
+)
+
+py_library(
+    name = "schwab_dashboard_server_lib",
+    srcs = [
+        "__init__.py",
+        "dashboard_server.py",
+    ],
+    deps = [
+        ":schwab_client",
+        ":schwab_dashboard_lib",
+    ],
+)
+
+py_binary(
+    name = "schwab_cli",
+    srcs = ["schwab_cli.py"],
+    main = "schwab_cli.py",
+    deps = [":schwab_client"],
+)
+
+py_binary(
+    name = "schwab_dashboard",
+    srcs = ["dashboard_server.py"],
+    main = "dashboard_server.py",
+    deps = [
+        ":schwab_client",
+        ":schwab_dashboard_lib",
+    ],
+)
+
+py_test(
+    name = "schwab_client_test",
+    srcs = ["schwab_client_test.py"],
+    deps = [":schwab_client"],
+)
+
+py_test(
+    name = "dashboard_test",
+    srcs = ["dashboard_test.py"],
+    deps = [
+        ":schwab_client",
+        ":schwab_dashboard_lib",
+        ":schwab_dashboard_server_lib",
+    ],
+)