blob: 87a64ee2ad45291a159e24318cc49ad3716a1be1 [file] [log] [blame]
Lee Mracek3e16a862019-01-24 11:15:36 -05001package(default_visibility = ["//visibility:public"])
2
3py_binary(
4 name = "plot_action",
5 srcs = [
James Kuszmaul41fa78a2019-12-14 20:53:14 -08006 "logentry.py",
Austin Schuh8e17be92019-12-24 09:32:11 -08007 "logreader.py",
8 "plot_action.py",
9 "plotter.py",
Lee Mracek3e16a862019-01-24 11:15:36 -050010 ],
11 legacy_create_init = False,
12 restricted_to = ["//tools:k8"],
13 deps = [
14 ":python_init",
James Kuszmaul910f92b2020-01-01 15:30:38 -080015 "@matplotlib_repo//:matplotlib2.7",
Lee Mracek3e16a862019-01-24 11:15:36 -050016 ],
17)
18
19py_library(
20 name = "python_init",
21 srcs = ["__init__.py"],
22 deps = ["//frc971:python_init"],
23)
James Kuszmaul7daef362019-12-31 18:28:17 -080024
25cc_binary(
26 name = "py_log_reader.so",
27 srcs = ["py_log_reader.cc"],
28 linkshared = True,
29 restricted_to = ["//tools:k8"],
30 deps = [
31 "//aos:configuration",
32 "//aos:json_to_flatbuffer",
33 "//aos/events:shm_event_loop",
34 "//aos/events:simulated_event_loop",
35 "//aos/events/logging:logger",
36 "@com_github_google_glog//:glog",
37 "@python_repo//:python3.5_lib",
38 ],
39)
40
41py_test(
42 name = "log_reader_test",
43 srcs = ["log_reader_test.py"],
44 data = [
45 ":py_log_reader.so",
46 "@sample_logfile//file",
47 ],
48 restricted_to = ["//tools:k8"],
49 deps = ["//aos:configuration_fbs_python"],
50)