-
Notifications
You must be signed in to change notification settings - Fork 36
/
Makefile
34 lines (25 loc) · 886 Bytes
/
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
default: test run-example
WARGS = -W default::Warning
run-example: install-dependencies PHONY
python $(WARGS) examples/chat.py
run-web-example: install-dependencies PHONY
python $(WARGS) examples/web_viewer.py
test: install-dependencies PHONY
python $(WARGS) -m pytest
test-coverage: install-dependencies PHONY
python -m coverage run --branch -m pytest
python -m coverage report --include 'chatexchange/*'
install-dependencies: PHONY
# This also creates a link to `chatexchange/` in the Python
# environment, which is neccessary for the other files to be
# able to find it.
rm -rf src/*.egg-info
pip install -e .
epydocs: PHONY
epydoc chatexchange --html -o epydocs \
--top ChatExchange.chatexchange --no-frames --no-private --verbose
clean: PHONY
rm -rf src/*.egg-info
find . -type f -name '*.pyc' -delete
find . -type d -name '__pycache__' -delete
PHONY: