forked from SeldonIO/tempo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
58 lines (42 loc) · 1.1 KB
/
Makefile
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
SHELL := /bin/bash
VERSION := 0.1
IMAGE=mlops
.PHONY: install
install:
pip install -e .
install-dev:
pip install -r requirements-dev.txt
.PHONY: test
test: tempo
pytest tempo
fmt:
black ./ --exclude "(mlops/metadata/|.eggs|.tox)"
.PHONY: lint
lint:
flake8 .
.PHONY: mypy
mypy:
mypy .
tempo/metadata/grpc_core_service.proto:
wget https://raw.githubusercontent.com/triton-inference-server/server/master/docs/protocol/grpc_core_service.proto -O tempo/metadata/grpc_core_service.proto
install-rclone:
curl https://rclone.org/install.sh | sudo bash
build-protos: tempo
cd tempo && python \
-m grpc.tools.protoc \
-I./ \
-I./metadata/ \
--python_out=./ \
--grpc_python_out=./ \
--mypy_out=./ \
./metadata/grpc_core_service.proto
tempo/tests/examples/sklearn:
mkdir -p tempo/tests/examples
cd tempo/tests/examples && \
gsutil cp -r gs://seldon-models/sklearn . && \
gsutil cp -r gs://seldon-models/xgboost . && \
gsutil cp -r gs://seldon-models/mlflow . && \
gsutil cp -r gs://seldon-models/keras . && \
gsutil cp -r gs://seldon-models/tfserving .
clean_test_data:
rm -rf tempo/tests/examples