-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (42 loc) · 1.39 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
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:
rm -rf .coverage htmlcov/ .pytest_cache/
pytest --cov=resmda
coverage html
flake8:
flake8 docs/conf.py resmda/ tests/ examples/
html:
cd docs && make html
html-noplot:
cd docs && make html-noplot
html-clean:
cd docs && rm -rf api/resmda* gallery/* _build/ && make html
preview:
xdg-open docs/_build/html/index.html
linkcheck:
cd docs && make linkcheck
clean:
python -m pip uninstall resmda -y
rm -rf build/ dist/ .eggs/ resmda.egg-info/ resmda/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/resmda* # docs
rm -rf docs/savefig