distro-tools/apollo/server/BUILD.bazel

58 lines
1.5 KiB
Text
Raw Normal View History

2023-02-01 21:37:16 +00:00
load("@aspect_rules_py//py:defs.bzl", "py_library")
load("//build/macros:fastapi.bzl", "fastapi_binary")
py_library(
name = "server_lib",
srcs = [
"roles.py",
"routes/admin_index.py",
"routes/admin_users.py",
2023-02-01 21:37:16 +00:00
"routes/advisories.py",
"routes/api_advisories.py",
"routes/api_compat.py",
2023-02-04 23:24:31 +00:00
"routes/api_osv.py",
2023-02-01 21:37:16 +00:00
"routes/api_red_hat.py",
2023-02-02 23:27:32 +00:00
"routes/api_updateinfo.py",
2023-02-01 21:37:16 +00:00
"routes/login.py",
"routes/logout.py",
"routes/profile.py",
2023-02-01 21:37:16 +00:00
"routes/red_hat_advisories.py",
"routes/statistics.py",
"server.py",
"settings.py",
"utils.py",
],
data = [
":assets",
":templates",
"//apollo/server/static",
],
imports = ["../.."],
visibility = ["//:__subpackages__"],
deps = [
"//apollo/db:db_lib",
"//apollo/db/serialize:serialize_lib",
2023-02-02 23:27:32 +00:00
"//apollo/rpmworker:rpmworker_lib",
2023-02-01 21:37:16 +00:00
"//common:common_lib",
"@pypi_fastapi//:pkg",
"@pypi_fastapi_pagination//:pkg",
"@pypi_itsdangerous//:pkg",
"@pypi_jinja2//:pkg",
"@pypi_passlib//:pkg",
2023-02-02 23:27:32 +00:00
"@pypi_pydantic//:pkg",
2023-02-01 21:37:16 +00:00
"@pypi_python_multipart//:pkg",
2023-02-02 23:27:32 +00:00
"@pypi_python_slugify//:pkg",
2023-02-02 13:53:35 +00:00
"@pypi_rssgen//:pkg",
2023-02-01 21:37:16 +00:00
"@pypi_starlette//:pkg",
"@pypi_tortoise_orm//:pkg",
],
)
fastapi_binary(
name = "server",
image_name = "apollo-server",
2023-02-01 21:37:16 +00:00
imports = ["../.."],
path = "apollo.server.server",
port = "9999",
)