forked from zhenhuaw-me/onnxcli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
33 lines (23 loc) · 640 Bytes
/
Makefile
File metadata and controls
33 lines (23 loc) · 640 Bytes
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
default: test
DIST_DIR=./assets/dist
build: clean
pip3 install build
python -m build --outdir $(DIST_DIR)
-rm -rf ./onnxcli.egg-info
-rm -rf ./build
test: install
onnx setup
python3 ./tests/test_dispatcher.py
check:
pip3 install flake8 black
flake8 --max-line-length 120 --max-complexity 20
black --skip-string-normalization --line-length 120 --check .
format:
black --skip-string-normalization --line-length 120 .
setup:
pip3 install -r ./requirements.txt
install: clean build
pip3 install --force-reinstall --no-dependencies $(DIST_DIR)/onnxcli-*-py3-none-any.whl
clean:
-rm $(DIST_DIR)/*
.PHONY: sanity setup test