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