28 lines
499 B
Makefile
28 lines
499 B
Makefile
test_deps:
|
|
pip install coverage flake8 wheel
|
|
|
|
lint: test_deps
|
|
flake8 $$(python setup.py --name | sed 's/-/_/g')
|
|
|
|
test: test_deps lint
|
|
coverage run --source=$$(python setup.py --name | sed 's/-/_/g') ./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
|