Download this file

88 lines (78 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Placeholder: load py_test
load("@org_tensorflow//tensorflow:tensorflow.default.bzl", "pybind_extension", "pybind_library")
package(
#default_applicable_licenses = ["//third_party/nucleus:license"],
default_visibility = [
"//visibility:public",
],
)
licenses(["notice"])
pybind_extension(
name = "math",
srcs = ["math_pybind.cc"],
deps = [
"//third_party/nucleus/util:cpp_math",
"@pybind11",
],
)
pybind_library(
name = "math_cclib",
srcs = ["math_pybind.cc"],
deps = [
"//third_party/nucleus/util:cpp_math",
],
)
py_test(
name = "math_wrap_test",
size = "small",
srcs = ["math_wrap_test.py"],
data = [],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":math",
"@absl_py//absl/testing:absltest",
],
)
pybind_library(
name = "type_caster_nucleus_proto_ptr",
hdrs = ["type_caster_nucleus_proto_ptr.h"],
deps = [
"//third_party/nucleus/util:proto_ptr",
"@com_google_absl//absl/log:absl_check",
"@com_google_absl//absl/log:absl_log",
"@com_google_protobuf//:proto_api",
"@com_google_protobuf//:protobuf",
],
)
pybind_extension(
name = "utils",
srcs = ["utils_pybind.cc"],
deps = [
":type_caster_nucleus_proto_ptr",
"//third_party/nucleus/util:cpp_utils",
],
)
pybind_library(
name = "utils_cclib",
srcs = ["utils_pybind.cc"],
deps = [
":type_caster_nucleus_proto_ptr",
"//third_party/nucleus/util:cpp_utils",
],
)
py_test(
name = "utils_wrap_test",
size = "small",
srcs = ["utils_wrap_test.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":utils",
"//third_party/nucleus/io:clif_postproc",
"//third_party/nucleus/protos:range_py_pb2",
"//third_party/nucleus/protos:reads_py_pb2",
"@absl_py//absl/testing:absltest",
"@com_google_protobuf//:protobuf_python",
],
)