forked from UTokyo-IPP/utpython_lab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
81 lines (73 loc) · 1.58 KB
/
BUILD.bazel
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
load("@prog_edu_assistant//exercises:defs.bzl", "assignment_notebook", "autograder_tar", "student_tar")
package(
default_visibility = ["//visibility:public"],
)
assignment_notebook(
name = "test-notebook",
src = "test-notebook.ipynb",
)
assignment_notebook(
name = "test-notebook-colab",
src = "test-notebook.ipynb",
preamble = "preamble.py",
preamble_metadata = '{"cellView":"form"}',
)
notebooks = [
":test-notebook",
"//1:1-1",
"//1:1-2",
"//1:1-3",
"//2:2-1",
"//2:2-2",
"//2:2-3",
"//3:3-1",
"//3:3-2",
"//4:4-1",
"//4:4-2",
"//5:5-1",
"//5:5-3",
"//6:6-1",
"//6:6-2",
"//6:6-3",
]
colab_notebooks = [
":test-notebook-colab",
"//1:1-1-colab",
"//1:1-2-colab",
"//1:1-3-colab",
"//2:2-1-colab",
"//2:2-2-colab",
"//2:2-3-colab",
"//3:3-1-colab",
"//3:3-2-colab",
"//4:4-1-colab",
"//4:4-2-colab",
"//5:5-1-colab",
"//5:5-3-colab",
"//6:6-1-colab",
"//6:6-2-colab",
"//6:6-3-colab",
]
autograder_tar(
name = "autograder_tar",
deps = notebooks + [
"//4:4-1_NumberOfCharacters_autograder_data_tar",
"//4:4-1_LastLine_autograder_data_tar",
"//4:4-1_FileUpper_autograder_data_tar",
"//4:4-2_LastLine_autograder_data_tar",
"//6:6-2_NumberOfLongLines_autograder_data_tar",
],
)
student_tar(
name = "student_tar",
deps = notebooks,
# Include the sample.txt into the student notebook tar archive.
data = [
"//4:sample_data",
"//6:sample_data",
],
)
student_tar(
name = "colab_student_tar",
deps = colab_notebooks,
)