mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-16 18:21:28 +00:00
58 lines
1.5 KiB
Python
58 lines
1.5 KiB
Python
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",
|
|
"routes/advisories.py",
|
|
"routes/api_advisories.py",
|
|
"routes/api_compat.py",
|
|
"routes/api_osv.py",
|
|
"routes/api_red_hat.py",
|
|
"routes/api_updateinfo.py",
|
|
"routes/login.py",
|
|
"routes/logout.py",
|
|
"routes/profile.py",
|
|
"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",
|
|
"//apollo/rpmworker:rpmworker_lib",
|
|
"//common:common_lib",
|
|
"@pypi_fastapi//:pkg",
|
|
"@pypi_fastapi_pagination//:pkg",
|
|
"@pypi_itsdangerous//:pkg",
|
|
"@pypi_jinja2//:pkg",
|
|
"@pypi_passlib//:pkg",
|
|
"@pypi_pydantic//:pkg",
|
|
"@pypi_python_multipart//:pkg",
|
|
"@pypi_python_slugify//:pkg",
|
|
"@pypi_rssgen//:pkg",
|
|
"@pypi_starlette//:pkg",
|
|
"@pypi_tortoise_orm//:pkg",
|
|
],
|
|
)
|
|
|
|
fastapi_binary(
|
|
name = "server",
|
|
image_name = "apollo-server",
|
|
imports = ["../.."],
|
|
path = "apollo.server.server",
|
|
port = "9999",
|
|
)
|