blob: 78256750c94ada3dc307ca6e06189f39cd949241 [file] [log] [blame]
Maxwell Hendersonad312342023-01-10 12:07:47 -08001package(default_visibility = ["//y2023:__subpackages__"])
2
3py_binary(
4 name = "drivetrain",
5 srcs = [
6 "drivetrain.py",
7 ],
8 legacy_create_init = False,
9 target_compatible_with = ["@platforms//cpu:x86_64"],
10 deps = [
11 ":python_init",
12 "//frc971/control_loops/python:drivetrain",
13 "@pip//glog",
14 "@pip//python_gflags",
15 ],
16)
17
18py_binary(
19 name = "polydrivetrain",
20 srcs = [
21 "drivetrain.py",
22 "polydrivetrain.py",
23 ],
24 legacy_create_init = False,
25 target_compatible_with = ["@platforms//cpu:x86_64"],
26 deps = [
27 ":python_init",
28 "//frc971/control_loops/python:polydrivetrain",
29 "@pip//glog",
30 "@pip//python_gflags",
31 ],
32)
33
Maxwell Henderson7af00982023-02-04 12:42:07 -080034py_binary(
35 name = "graph_edit",
36 srcs = [
37 "graph_edit.py",
Maxwell Hendersonf5123fe2023-02-04 13:44:41 -080038 "graph_paths.py",
39 "graph_tools.py",
Maxwell Henderson7af00982023-02-04 12:42:07 -080040 ],
41 legacy_create_init = False,
42 target_compatible_with = ["@platforms//cpu:x86_64"],
43 deps = [
44 ":python_init",
45 "//frc971/control_loops/python:basic_window",
46 "//frc971/control_loops/python:color",
47 "@pip//numpy",
48 "@pip//pygobject",
49 "@pip//shapely",
50 ],
51)
52
milind-ua7af5162023-02-20 15:13:48 -080053py_binary(
54 name = "graph_codegen",
55 srcs = [
56 "graph_codegen.py",
57 "graph_paths.py",
58 ],
59 legacy_create_init = False,
60 target_compatible_with = ["@platforms//os:linux"],
61 deps = [
62 ":python_init",
63 "//frc971/control_loops/python:basic_window",
64 "//frc971/control_loops/python:color",
65 "@pip//numpy",
66 ],
67)
68
Maxwell Hendersonad312342023-01-10 12:07:47 -080069py_library(
70 name = "polydrivetrain_lib",
71 srcs = [
72 "drivetrain.py",
73 "polydrivetrain.py",
74 ],
75 target_compatible_with = ["@platforms//cpu:x86_64"],
76 visibility = ["//visibility:public"],
77 deps = [
78 "//frc971/control_loops/python:controls",
79 "//frc971/control_loops/python:drivetrain",
80 "//frc971/control_loops/python:polydrivetrain",
81 "@pip//glog",
82 "@pip//python_gflags",
83 ],
84)
85
86py_library(
87 name = "python_init",
88 srcs = ["__init__.py"],
89 target_compatible_with = ["@platforms//os:linux"],
90 visibility = ["//visibility:public"],
91 deps = ["//y2023/control_loops:python_init"],
92)