-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (32 loc) · 1.1 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# Makefile for the Python pyneric project
# This has only been tested with GNU make from within the project root.
SHELL := /bin/bash
all: coverage build doc
flake:
flake8 src
test: flake
PYTHONPATH=src:tests coverage run --module unittest discover --pattern 'test_*.py'
PYTHONPATH=src:tests coverage run --append tests/django_test_app/manage.py test django_test_app --noinput
PYTHONPATH=src python -m doctest docs/examples.rst
coverage: test
coverage report --fail-under=100
coverage_html: test
coverage html
build:
./setup.py build
readme:
cat README_editable.rst | ( while read; do if [[ $${REPLY#.. include:: } != $${REPLY} ]]; then cat $${REPLY#.. include:: }; else echo $${REPLY}; fi; done ) > README.rst
doc: readme
$(MAKE) -C docs html
clean:
./setup.py clean -a
$(MAKE) -C docs clean
$(RM) MANIFEST
$(RM) -r dist
$(RM) -r htmlcov
coverage erase
find . -type d -name '__pycache__' | xargs $(RM) -r
find . -type f -name '*.py[co]' | xargs $(RM)
# git submodule update docs/_build/html
# git -C docs/_build/html checkout gh-pages
.PHONY: test coverage coverage_html build readme doc clean