distro-tools/apollo/rpmworker/BUILD.bazel

38 lines
891 B
Python
Raw Permalink Normal View History

load("@aspect_rules_py//py:defs.bzl", "py_library")
2023-02-02 13:53:35 +00:00
load("//build/macros:pyimage.bzl", "py_binary")
2023-02-01 21:37:16 +00:00
py_library(
name = "rpmworker_lib",
srcs = [
"repomd.py",
"rh_matcher_activities.py",
"rh_matcher_workflows.py",
"temporal.py",
],
imports = ["../.."],
visibility = ["//:__subpackages__"],
deps = [
"//apollo/db:db_lib",
"//common:common_lib",
"@pypi_aiohttp//:pkg",
"@pypi_pyyaml//:pkg",
"@pypi_temporalio//:pkg",
"@pypi_tortoise_orm//:pkg",
],
)
2023-02-02 13:53:35 +00:00
py_binary(
2023-02-01 21:37:16 +00:00
name = "rpmworker",
srcs = ["__main__.py"],
2023-02-02 13:53:35 +00:00
image_name = "apollo-rpmworker",
2023-02-01 21:37:16 +00:00
imports = ["../.."],
main = "__main__.py",
visibility = ["//:__subpackages__"],
deps = [
":rpmworker_lib",
"//common:common_lib",
"@pypi_click//:pkg",
"@pypi_temporalio//:pkg",
],
)