-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
65 lines (52 loc) · 1.06 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
64
1.DEFAULT_GOAL := all
TARGET = uttut
.PHONY: installself
installself:
python setup.py build_ext
pip install -e .
.PHONY: install
install:
pipenv install
.PHONY: install-dev
install-dev:
pipenv install --dev
.PHONY: lint
lint:
flake8
.PHONY: test
test:
pytest ${TARGET} --cov-report=term-missing --cov=uttut/ --cov-fail-under=80
.PHONY: test-linetrace
test-linetrace:
make clean
make clean-c
LINE_TRACE=1 python setup.py build_ext --force --inplace --define CYTHON_TRACE
make test
.PHONY: all
all: lint test
.PHONY: clean
clean:
rm -rf `find . -name __pycache__`
rm -f `find . -type f -name '*.py[co]' `
rm -f `find . -type f -name '*~' `
rm -f `find . -type f -name '.*~' `
rm -f `find uttut -name *.so`
rm -rf .cache
rm -rf htmlcov
rm -rf *.egg-info
rm -f .coverage
rm -f .coverage.*
rm -rf build
python setup.py clean
.PHONY: clean-c
clean-c:
rm -f `find uttut -name *.c`
rm -f `find uttut -name '*.cpp' ! -name 'MurmurHash3.cpp'`
.PHONY: docs
docs:
make install
make -C docs
.PHONY: distribute
distribute:
make clean
python setup.py sdist