2026-01-20 13:24:59 -08:00
|
|
|
load("@pip_third_party//:requirements.bzl", "requirement")
|
2026-01-20 21:05:08 -08:00
|
|
|
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
|
2026-01-20 13:24:59 -08:00
|
|
|
|
|
|
|
|
exports_files([
|
|
|
|
|
"mypy.ini",
|
|
|
|
|
"tanka_runner.sh",
|
2026-01-20 21:05:08 -08:00
|
|
|
"helm_pull.py", # Exported for repo rule usage
|
2026-01-20 13:24:59 -08:00
|
|
|
])
|
|
|
|
|
|
2026-01-20 21:05:08 -08:00
|
|
|
py_library(
|
|
|
|
|
name = "helm_pull_lib",
|
|
|
|
|
srcs = ["helm_pull.py"],
|
|
|
|
|
)
|
|
|
|
|
|
2026-01-20 13:24:59 -08:00
|
|
|
py_binary(
|
|
|
|
|
name = "helm_sync",
|
|
|
|
|
srcs = ["helm_sync.py"],
|
|
|
|
|
deps = [
|
2026-01-20 21:05:08 -08:00
|
|
|
":helm_pull_lib",
|
2026-01-20 13:24:59 -08:00
|
|
|
requirement("requests"),
|
|
|
|
|
requirement("pyyaml"),
|
|
|
|
|
],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
sh_binary(
|
|
|
|
|
name = "pnpm",
|
|
|
|
|
srcs = ["pnpm_runner.sh"],
|
|
|
|
|
data = select({
|
|
|
|
|
"@platforms//os:linux": ["@pnpm_linux_amd64//file"],
|
|
|
|
|
"@platforms//os:macos": ["@pnpm_macos_arm64//file"],
|
|
|
|
|
}),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
genrule(
|
|
|
|
|
name = "sops_bin",
|
|
|
|
|
srcs = select({
|
|
|
|
|
"@platforms//os:linux": ["@sops_linux_amd64//file:sops"],
|
|
|
|
|
"@platforms//os:macos": ["@sops_darwin_arm64//file:sops"],
|
|
|
|
|
"//conditions:default": ["@sops_linux_amd64//file:sops"],
|
|
|
|
|
}),
|
|
|
|
|
outs = ["sops"],
|
|
|
|
|
cmd = "cp $< $@",
|
|
|
|
|
executable = True,
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
py_binary(
|
|
|
|
|
name = "fake_sops",
|
|
|
|
|
srcs = ["fake_sops.py"],
|
|
|
|
|
main = "fake_sops.py",
|
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
|
deps = [
|
|
|
|
|
requirement("pyyaml"),
|
|
|
|
|
],
|
2026-01-20 21:05:08 -08:00
|
|
|
)
|