Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
global-exclude *.pyc | ||
include README.rst | ||
include LICENSE | ||
recursive-include a2billing_flask_api * |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |