36 lines
761 B
Python
36 lines
761 B
Python
load("//:py_repl.bzl", "py_repl")
|
|
load("@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",
|
|
configure = ":test_job_configure",
|
|
execute = ":test_job_execute",
|
|
)
|
|
|
|
py_binary(
|
|
name = "test_job_configure",
|
|
srcs = ["configure.py"],
|
|
main = "configure.py",
|
|
)
|
|
|
|
py_binary(
|
|
name = "test_job_execute",
|
|
srcs = ["execute.py"],
|
|
main = "execute.py",
|
|
)
|
|
|
|
py_repl(
|
|
name = "repl",
|
|
deps = [
|
|
requirement("duckdb"),
|
|
requirement("pydantic"),
|
|
]
|
|
)
|