Lee Mracek | 3e16a86 | 2019-01-24 11:15:36 -0500 | [diff] [blame] | 1 | package(default_visibility = ["//visibility:public"]) |
| 2 | |
| 3 | py_binary( |
| 4 | name = "plot_action", |
| 5 | srcs = [ |
James Kuszmaul | 41fa78a | 2019-12-14 20:53:14 -0800 | [diff] [blame] | 6 | "logentry.py", |
Austin Schuh | 8e17be9 | 2019-12-24 09:32:11 -0800 | [diff] [blame] | 7 | "logreader.py", |
| 8 | "plot_action.py", |
| 9 | "plotter.py", |
Lee Mracek | 3e16a86 | 2019-01-24 11:15:36 -0500 | [diff] [blame] | 10 | ], |
| 11 | legacy_create_init = False, |
| 12 | restricted_to = ["//tools:k8"], |
| 13 | deps = [ |
| 14 | ":python_init", |
James Kuszmaul | 910f92b | 2020-01-01 15:30:38 -0800 | [diff] [blame^] | 15 | "@matplotlib_repo//:matplotlib2.7", |
Lee Mracek | 3e16a86 | 2019-01-24 11:15:36 -0500 | [diff] [blame] | 16 | ], |
| 17 | ) |
| 18 | |
| 19 | py_library( |
| 20 | name = "python_init", |
| 21 | srcs = ["__init__.py"], |
| 22 | deps = ["//frc971:python_init"], |
| 23 | ) |
James Kuszmaul | 7daef36 | 2019-12-31 18:28:17 -0800 | [diff] [blame] | 24 | |
| 25 | cc_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 | |
| 41 | py_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 | ) |