| load("@subpar//:subpar.bzl", "par_binary") |
| |
| py_library( |
| name = "frontend_lib", |
| srcs = [ |
| "frontend.py", |
| "channel.py", |
| ], |
| data = glob([ |
| "templates/**", |
| ]), |
| deps = [ |
| "@pip36//arrow", |
| "@pip36//flask", |
| "@pip36//grpcio", |
| "//bgpwtf/cccampix/proto:ix_py_proto", |
| ], |
| ) |
| |
| py_binary( |
| name = "frontend_dev", |
| srcs = [ |
| "dev.py", |
| ], |
| main = "dev.py", |
| deps = [ |
| ":frontend_lib", |
| ], |
| ) |
| |
| par_binary( |
| name = "frontend", |
| main = "server.py", |
| srcs = [ |
| "server.py", |
| ], |
| deps = [ |
| ":frontend_lib", |
| "@pip36//gevent", |
| "@pip36//gunicorn", |
| ], |
| visibility = [ |
| "//bgpwtf/cccampix:__pkg__", |
| ], |
| legacy_create_init = False, |
| zip_safe = False, |
| no_remove = True, |
| ) |