29 lines
633 B
Python
29 lines
633 B
Python
load("//:py_repl.bzl", "py_repl")
|
|
load("@databuild//databuild:rules.bzl", "databuild_job")
|
|
load("@rules_python//python:pip.bzl", "compile_pip_requirements")
|
|
load("@pypi//:requirements.bzl", "requirement")
|
|
|
|
compile_pip_requirements(
|
|
name = "py_requirements",
|
|
src = "requirements.in",
|
|
requirements_txt = "requirements_lock.txt",
|
|
)
|
|
|
|
databuild_job(
|
|
name = "test_job",
|
|
binary = ":test_job_binary",
|
|
)
|
|
|
|
py_binary(
|
|
name = "test_job_binary",
|
|
srcs = ["unified_job.py"],
|
|
main = "unified_job.py",
|
|
)
|
|
|
|
py_repl(
|
|
name = "repl",
|
|
deps = [
|
|
requirement("duckdb"),
|
|
requirement("pydantic"),
|
|
]
|
|
)
|