mirror of
https://github.com/resf/distro-tools.git
synced 2024-11-22 05:01:26 +00:00
38 lines
891 B
Python
38 lines
891 B
Python
load("@aspect_rules_py//py:defs.bzl", "py_library")
|
|
load("//build/macros:pyimage.bzl", "py_binary")
|
|
|
|
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",
|
|
],
|
|
)
|
|
|
|
py_binary(
|
|
name = "rpmworker",
|
|
srcs = ["__main__.py"],
|
|
image_name = "apollo-rpmworker",
|
|
imports = ["../.."],
|
|
main = "__main__.py",
|
|
visibility = ["//:__subpackages__"],
|
|
deps = [
|
|
":rpmworker_lib",
|
|
"//common:common_lib",
|
|
"@pypi_click//:pkg",
|
|
"@pypi_temporalio//:pkg",
|
|
],
|
|
)
|