view schwab_trader/BUILD @ 270:358dd5950985

sync production config on every deploy Always install the ignored repository .config into /etc/mrjunejune before promoting the new bundle. Co-authored-by: Copilot <[email protected]>
author MrJuneJune <me@mrjunejune.com>
date Fri, 07 Aug 2026 13:16:47 -0700
parents eb8b4230fdb9
children
line wrap: on
line source

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",
    ],
)