-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
55 lines (45 loc) · 1.55 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
help:
@echo "Commands:"
@echo ""
@echo " install install in editable mode"
@echo " dev-install install in editable mode with dev requirements"
@echo " pytest run the test suite and report coverage"
@echo " flake8 style check with flake8"
@echo " html build docs (update existing)"
@echo " html-noplot as above, without gallery"
@echo " html-clean build docs (new, removing any existing)"
@echo " preview renders docs in Browser"
@echo " linkcheck check all links in docs"
@echo " clean clean up all generated files"
@echo ""
install:
python -m pip install -e .
dev-install:
python -m pip install -e .[all]
.ONESHELL:
pytest:
cp tests/matplotlibrc .
rm -rf .coverage htmlcov/ .pytest_cache/
pytest --cov=empymod --mpl
coverage html
rm matplotlibrc
flake8:
flake8 docs/conf.py empymod/ tests/ examples/
html:
cd docs && make html
html-noplot:
cd docs && make html-noplot
html-clean:
cd docs && rm -rf api/empymod* gallery/*/ _build/ my*.json my*.txt && make html
preview:
xdg-open docs/_build/html/index.html
linkcheck:
cd docs && make linkcheck
clean:
python -m pip uninstall empymod -y
rm -rf build/ dist/ .eggs/ empymod.egg-info/ empymod/version.py # build
rm -rf */__pycache__/ */*/__pycache__/ # python cache
rm -rf .coverage htmlcov/ .pytest_cache/ # tests and coverage
rm -rf docs/gallery/*/ docs/gallery/*.zip docs/_build/ docs/api/empymod* docs/my*.json docs/my*.txt # docs
rm -rf matplotlibrc docs/savefig
rm -rf filters/ examples/educational/filters/