forked from cortex-lab/phy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
37 lines (28 loc) · 842 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
35
36
37
clean-build:
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
clean-pyc:
find . -name '*.pyc' -exec rm -f {} +
find . -name '*.pyo' -exec rm -f {} +
find . -name '*~' -exec rm -f {} +
find . -name '__pycache__' -exec rm -fr {} +
clean: clean-build clean-pyc
lint:
flake8 phy
# Test everything except apps.
test: lint
py.test --cov-report= --cov=phy phy --ignore=phy/apps/ --cov-append
coverage report --omit */phy/apps/*,*/phy/plot/gloo/*
# Test just the apps.
test-apps: lint
py.test --cov-report term-missing --cov=phy.apps phy/apps/ --cov-append
# Test everything.
test-full: test test-apps
coverage report --omit */phy/plot/gloo/*
doc:
python tools/api.py && python tools/extract_shortcuts.py && python tools/plugins_doc.py
build:
python setup.py sdist --formats=zip
upload:
python setup.py sdist --formats=zip upload