28 lines
451 B
Makefile
28 lines
451 B
Makefile
|
test_deps:
|
||
|
pip install coverage flake8 wheel
|
||
|
|
||
|
lint: test_deps
|
||
|
./setup.py flake8
|
||
|
|
||
|
test: test_deps lint
|
||
|
coverage run --source=$$(python setup.py --name) ./test/test.py
|
||
|
|
||
|
init_docs:
|
||
|
cd docs; sphinx-quickstart
|
||
|
|
||
|
docs:
|
||
|
$(MAKE) -C docs html
|
||
|
|
||
|
install: clean
|
||
|
pip install wheel
|
||
|
python setup.py bdist_wheel
|
||
|
pip install --upgrade dist/*.whl
|
||
|
|
||
|
clean:
|
||
|
-rm -rf build dist
|
||
|
-rm -rf *.egg-info
|
||
|
|
||
|
.PHONY: lint test test_deps docs install clean
|
||
|
|
||
|
include common.mk
|