summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile9
-rw-r--r--submission.proto4
2 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f4b165f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+.PHONY: all protobufs clean
+
+all: protobufs
+
+protobufs: submission.proto
+ protoc --python_out=. $^
+
+clean:
+ rm -f submission_pb2.py
diff --git a/submission.proto b/submission.proto
new file mode 100644
index 0000000..70a60de
--- /dev/null
+++ b/submission.proto
@@ -0,0 +1,4 @@
+message Submission {
+ required string filename = 1;
+ required bytes data = 2;
+}