1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
.PHONY: all clean test
PYTHON=python
PYTESTS=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_c_file.sh {} \;
test:
$(PYTESTS) skimage --doctest-modules
doctest:
$(PYTHON) -c "import skimage, sys, io; sys.exit(skimage.doctest_verbose())"
coverage:
$(PYTESTS) skimage --cov=skimage
html:
pip install -q sphinx pytest-runner sphinx-gallery
export SPHINXOPTS=-W; make -C doc html
|