forked from wannesm/dtaidistance
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
63 lines (51 loc) · 1.35 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
57
58
59
60
61
62
63
.PHONY: default
default:
@echo "Possible actions:"
@echo "- analyze_build"
@echo "- benchmark"
@echo "- build"
@echo "- clean"
@echo "- test"
@echo "- testall"
.PHONY: runtest
runtest:
export PYTHONPATH=.;python3 tests/test_bugs.py
.PHONY: test
test:
export PYTHONPATH=.;py.test --ignore=venv --benchmark-skip -vv
.PHONY: testall
testall:
export PYTHONPATH=.;py.test --ignore=venv -vv
.PHONY: benchmark
benchmark:
export PYTHONPATH=.;py.test --ignore=venv -vv --benchmark-autosave --benchmark-disable-gc --benchmark-histogram --benchmark-only
.PHONY: benchmark-clustering
benchmark-clustering:
export PYTHONPATH=.;py.test -k cluster --ignore=venv -vv --benchmark-autosave --benchmark-disable-gc --benchmark-histogram --benchmark-only
.PHONY: clean
clean:
python3 setup.py clean
rm -f dtaidistance/dtw_c.c
rm -f dtaidistance/dtw_c.*.so
.PHONY: build
build:
python3 setup.py build_ext --inplace
.PHONY: analyze_build
analyze_build:
cd dtaidistance;cython dtw_c.pyx -a
open dtaidistance/dtw_c.html
.PHONY: prepare_dist
prepare_dist:
rm -rf dist/*
python3 setup.py sdist bdist_wheel
.PHONY: deploy
deploy: prepare_dist
@echo "Check whether repo is clean"
git diff-index --quiet HEAD
@echo "Add tag"
git tag "v$$(python3 setup.py --version)"
@echo "Start uploading"
twine upload dist/*
.PHONY: docs
docs:
export PYTHONPATH=..; cd docs; make html