-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
44 lines (35 loc) · 1.23 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
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-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]
pytest:
rm -rf .coverage htmlcov/ .pytest_cache/ && pytest --cov=emg3d && coverage html
flake8:
flake8 docs/ emg3d/ tests/
html:
cd docs && make html
html-clean:
cd docs && rm -rf api/emg3d* && rm -rf _build/ && make html
preview:
xdg-open docs/_build/html/index.html
linkcheck:
cd docs && make linkcheck
clean:
python -m pip uninstall emg3d -y
rm -rf build/ dist/ .eggs/ emg3d.egg-info/ emg3d/version.py # build
rm -rf */__pycache__/ */*/__pycache__/ # python cache
rm -rf .coverage htmlcov/ .pytest_cache/ # tests and coverage
rm -rf docs/api/emg3d* docs/_build/ docs/savefig/ # docs