forked from w4k2/stream-learn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·47 lines (37 loc) · 1005 Bytes
/
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
.PHONY: all clean test
profile:
kernprof -l -v strlearn/tests/test_common.py
clean:
find . -name "*.so" -o -name "*.pyc" -o -name "*.md5" -o -name "*.pyd" -o -name "*~" | xargs rm -f
find . -name "*.pyx" -exec ./tools/rm_pyx_c_file.sh {} \;
rm -rf coverage
rm -rf dist
rm -rf build
rm -rf doc/_build
rm -rf doc/auto_examples
rm -rf doc/generated
rm -rf doc/modules
rm -rf examples/.ipynb_checkpoints
docs: clean install
cp -rf ./plots ./doc/
cp -rf ./examples/*.png ./doc/_static
cd doc && make html
#cd doc && make latex
test-code:
py.test strlearn
test-coverage:
rm -rf coverage .coverage
py.test --cov-report term-missing:skip-covered --cov=strlearn strlearn
test: clean test-coverage
run: clean
python workspace.py
code-analysis:
flake8 strlearn | grep -v __init__
pylint -E strlearn/ -d E1103,E0611,E1101
upload:
python setup.py sdist bdist_wheel
twine upload dist/*
pip3 install --upgrade stream-learn
install: clean
python setup.py clean
python setup.py develop