From 05e6978495d65b6511df943b8d3b920299e7f29d Mon Sep 17 00:00:00 2001 From: areski Date: Thu, 26 Nov 2015 17:01:22 +0100 Subject: [PATCH] add Makefile --- MANIFEST.in | 4 ++++ Makefile | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 MANIFEST.in create mode 100644 Makefile diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..e6d73a4 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,4 @@ +global-exclude *.pyc +include README.rst +include LICENSE +recursive-include a2billing_flask_api * diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..88a1d9b --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +.PHONY: docs release clean build install test + +test: buildenv install + . a2billing_flask_api_env/bin/activate; python setup.py test + +buildenv: + virtualenv a2billing_flask_api_env + . a2billing_flask_api_env/bin/activate; pip install -Ur requirements.txt + +# assume that the developer already works with virtualenv +# or virtualenv-wrapper +install: + . a2billing_flask_api_env/bin/activate; python setup.py install + +coverage: install + coverage run --source=a2billing_flask_api setup.py test + coverage report + coverage html + +docs: buildenv + $(MAKE) -C docs; + +clean: + rm -rf a2billing_flask_api_env htmlcov + +cleanall: clean + $(MAKE) -C docs clean