small python ray
This commit is contained in:
commit
e02e80708a
15 changed files with 1261 additions and 0 deletions
25
python/BUILD
Normal file
25
python/BUILD
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
load("@py_deps//:requirements.bzl", "requirement")
|
||||
load("//bazel:tools.bzl", "copy_to_workspace")
|
||||
|
||||
filegroup(
|
||||
name = "all_py_proto",
|
||||
srcs = [
|
||||
"//proto:task_proto_grpc_py",
|
||||
],
|
||||
)
|
||||
|
||||
copy_to_workspace(
|
||||
name = "proto_folder",
|
||||
srcs = [":all_py_proto"],
|
||||
dstdir = "python/proto",
|
||||
)
|
||||
|
||||
|
||||
py_binary(
|
||||
name = "main",
|
||||
srcs = ["main.py"],
|
||||
data = [ ":proto_folder" ],
|
||||
deps = [
|
||||
requirement("cloudpickle"),
|
||||
],
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue