-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 864 Bytes
/
Makefile
File metadata and controls
37 lines (30 loc) · 864 Bytes
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
.PHONY: release
release:
rm -rf dist
scripts/git_tag.sh
python setup.py sdist bdist_wheel
twine upload dist/*
.PHONY: docs
docs:
rm -rf docs/build/html
@cd docs && sphinx-apidoc -f -e -o source/ ../python_package/
@cd docs && make html && make html
.PHONY: doxygen
doxygen:
rm -rf docs/html
doxygen Doxyfile
.PHONY: test
test:
python setup.py test
.PHONY: coverage
coverage:
coverage run --source python_package setup.py test && coverage html && coverage report -m
.PHONY: tdd
tdd:
coverage run --source python_package setup.py test && coverage report -m
.PHONY: lint
lint:
flake8 python_package/ && pylint python_package/ && flake8 tests/ && pylint tests/
.PHONY: alltests
alltests:
flake8 python_package/ && pylint python_package/ && flake8 tests/ && pylint tests/ && coverage run --source python_package setup.py test && coverage report -m