24 lines
579 B
Python
24 lines
579 B
Python
load("@databuild//databuild:rules.bzl", "databuild_dsl_generator")
|
|
|
|
py_library(
|
|
name = "dsl_src",
|
|
srcs = glob(
|
|
["*.py"],
|
|
exclude = ["test_*.py"],
|
|
),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//databuild:py_proto",
|
|
"//databuild/dsl/python:dsl",
|
|
"//databuild/test/app:job_src",
|
|
],
|
|
)
|
|
|
|
databuild_dsl_generator(
|
|
name = "graph.generate",
|
|
graph_file = "graph.py",
|
|
graph_attr = "graph",
|
|
output_package = "//databuild/test/app/dsl",
|
|
deps = [":dsl_src"],
|
|
visibility = ["//visibility:public"],
|
|
)
|