Moving of basic_window and path_edit to frc971
Change-Id: I1479158d2fe0083356dbc37cf1ab1527ef051459
diff --git a/frc971/control_loops/python/BUILD b/frc971/control_loops/python/BUILD
index f2eb9e9..2f72c8f 100644
--- a/frc971/control_loops/python/BUILD
+++ b/frc971/control_loops/python/BUILD
@@ -158,3 +158,31 @@
"@matplotlib",
],
)
+
+py_binary(
+ name = "path_edit",
+ srcs = [
+ "path_edit.py",
+ ],
+ visibility = ["//visibility:public"],
+ restricted_to = ["//tools:k8"],
+ deps = [
+ ":python_init",
+ ":libspline",
+ "@python_gtk",
+ ":basic_window",
+ ],
+)
+
+py_library(
+ name = "basic_window",
+ srcs = [
+ "basic_window.py",
+ "color.py",
+ ],
+ restricted_to = ["//tools:k8"],
+ deps = [
+ ":python_init",
+ "@python_gtk",
+ ],
+)
diff --git a/y2018/control_loops/python/basic_window.py b/frc971/control_loops/python/basic_window.py
similarity index 100%
rename from y2018/control_loops/python/basic_window.py
rename to frc971/control_loops/python/basic_window.py
diff --git a/y2018/control_loops/python/color.py b/frc971/control_loops/python/color.py
similarity index 100%
rename from y2018/control_loops/python/color.py
rename to frc971/control_loops/python/color.py
diff --git a/y2018/control_loops/python/path_edit.py b/frc971/control_loops/python/path_edit.py
similarity index 100%
rename from y2018/control_loops/python/path_edit.py
rename to frc971/control_loops/python/path_edit.py
diff --git a/y2018/control_loops/python/BUILD b/y2018/control_loops/python/BUILD
index 43fa3a8..14f8290 100644
--- a/y2018/control_loops/python/BUILD
+++ b/y2018/control_loops/python/BUILD
@@ -163,18 +163,6 @@
],
)
-py_library(
- name = "basic_window",
- srcs = [
- "basic_window.py",
- "color.py",
- ],
- restricted_to = ["//tools:k8"],
- deps = [
- ":python_init",
- "@python_gtk",
- ],
-)
py_binary(
name = "graph_edit",
@@ -187,7 +175,7 @@
restricted_to = ["//tools:k8"],
srcs_version = "PY3",
deps = [
- ":basic_window",
+ "//frc971/control_loops/python:basic_window",
":python_init",
"@python_gtk",
],
@@ -207,22 +195,6 @@
],
)
-py_binary(
- name = "path_edit",
- srcs = [
- "path_edit.py",
- ],
- default_python_version = "PY3",
- legacy_create_init = False,
- restricted_to = ["//tools:k8"],
- srcs_version = "PY3",
- deps = [
- ":basic_window",
- ":python_init",
- "@python_gtk",
- ],
-)
-
py_library(
name = "python_init",
srcs = ["__init__.py"],