forked from scikit-image/scikit-image
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (23 loc) · 719 Bytes
/
Makefile
File metadata and controls
32 lines (23 loc) · 719 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
.PHONY: all clean test
PYTHON ?= python
PYTEST ?= $(PYTHON) -m pytest
all:
$(PYTHON) setup.py build_ext --inplace
clean:
find . -name "*.so" -o -name "*.pyc" -o -name "*.md5" -o -name "*.pyd" | xargs rm -f
find . -name "*.pyx" -exec ./tools/rm_pyx_assoc_c_cpp.sh {} \;
rm -f MANIFEST
cleandoc:
rm -rf doc/build
test:
$(PYTEST) skimage --doctest-modules
doctest:
$(PYTHON) -c "import skimage, sys, io; sys.exit(skimage.doctest_verbose())"
benchmark_coverage:
$(PYTEST) benchmarks --cov=skimage --cov-config=setup.cfg
coverage: test_coverage
test_coverage:
$(PYTEST) -o python_functions=test_* skimage --cov=skimage
html:
pip install -q -r requirements/docs.txt
export SPHINXOPTS=-W; make -C doc html