distro-tools/apollo/rhworker/BUILD.bazel

38 lines
917 B
Python
Raw Normal View History

load("@aspect_rules_py//py:defs.bzl", "py_library")
load("//build/macros:pyimage.bzl", "pyimage")
2023-02-01 21:37:16 +00:00
pyimage(
2023-02-01 21:37:16 +00:00
name = "rhworker",
srcs = ["__main__.py"],
image_name = "apollo-rhworker",
2023-02-01 21:37:16 +00:00
imports = ["../.."],
main = "__main__.py",
visibility = ["//:__subpackages__"],
deps = [
":rhworker_lib",
"//common:common_lib",
"@pypi_click//:pkg",
"@pypi_temporalio//:pkg",
],
)
py_library(
name = "rhworker_lib",
srcs = [
"poll_rh_activities.py",
"poll_rh_workflow.py",
"temporal.py",
],
imports = ["../.."],
visibility = ["//:__subpackages__"],
deps = [
"//apollo/db:db_lib",
"//apollo/rherrata:rherrata_lib",
"//apollo/rhwebscraper:rhwebscraper_lib",
"//common:common_lib",
"@pypi_aiohttp//:pkg",
"@pypi_temporalio//:pkg",
"@pypi_tortoise_orm//:pkg",
],
)