-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
40 lines (30 loc) · 907 Bytes
/
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
test:
pytest
fix:
autopep8 --in-place -r -a margot
coverage:
python -m coverage run --source=margot -m nose
python -m coverage html
release:
python setup.py sdist bdist_wheel
twine upload dist/*
clean:
@rm -rf build dist docs-build *.egg-info
@find . -type f -name '*.py[co]' -delete -o -type d -name __pycache__ -delete
@find . -type d -name .pytest_cache -delete
apidoc:
sphinx-apidoc -eo docs margot
##################
# Sphinx for documentation
##################
SPHINXOPTS ?=
SPHINXBUILD ?= sphinx-build
SOURCEDIR = docs
BUILDDIR = docs-build
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
.PHONY: help Makefile
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)