mirror of
https://github.com/resf/distro-tools.git
synced 2024-12-18 17:28:28 +00:00
37 lines
871 B
Python
37 lines
871 B
Python
load("@aspect_rules_py//py:defs.bzl", "py_library")
|
|
load("//build/macros:pyimage.bzl", "py_binary")
|
|
|
|
py_binary(
|
|
name = "rhworker",
|
|
srcs = ["__main__.py"],
|
|
image_name = "apollo-rhworker",
|
|
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",
|
|
"//common:common_lib",
|
|
"@pypi_aiohttp//:pkg",
|
|
"@pypi_temporalio//:pkg",
|
|
"@pypi_tortoise_orm//:pkg",
|
|
],
|
|
)
|