forked from sgkang/simpegEMIP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (25 loc) · 746 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
.PHONY: build coverage lint graphs tests docs clean clean_pyc clean_c clean_so clean_cython deploy
build:
mkdir -p docs/modules/generated
python setup.py build_ext -i -b .
build_cython:
mkdir -p docs/modules/generated
python setup.py build_ext -i cython
coverage:
nosetests --logging-level=INFO --with-coverage --cover-package=discretize --cover-html
open cover/index.html
tests:
nosetests --logging-level=INFO
docs:
cd docs;make html
clean_pyc:
find . -name "*.pyc" | xargs -I {} rm -v "{}"
clean_c:
find . -name "*.c" | xargs -I {} rm -v "{}"
clean_so:
find . -name "*.so" | xargs -I {} rm -v "{}"
clean: clean_pyc
cd docs;make clean
clean_cython: clean clean_c clean_so
deploy:
python setup.py sdist bdist_wheel upload