blob: f9bbd90b4ef8b2dd5545f278c9d4078d9df8abcf [file] [log] [blame]
load("@subpar//:subpar.bzl", "par_binary")
load("@pydeps//:requirements.bzl", "requirement")
py_library(
name = "frontend_lib",
srcs = [
"frontend.py",
"channel.py",
],
data = glob([
"templates/**",
]),
deps = [
requirement("arrow"),
requirement("flask"),
requirement("werkzeug"),
requirement("itsdangerous"),
"//bgpwtf/cccampix/proto:ix_py_proto",
"//bgpwtf/cccampix/proto:ix_grpc_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",
requirement("gevent"),
requirement("gunicorn"),
requirement("greenlet"),
],
visibility = [
"//bgpwtf/cccampix:__pkg__",
],
legacy_create_init = False,
zip_safe = False,
#no_remove = True,
)