-
Notifications
You must be signed in to change notification settings - Fork 27
/
Makefile
39 lines (27 loc) · 880 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
38
39
UNAME := $(shell uname -m)
clean:
rm -rf coverage .coverage build dist
clean-py:
find . -type f -name *.pyc -delete
find . -type f -name *.pyo -delete
doc:
sphinx-build -b html doc doc-build
style-check:
pydocstyle eelbrain
flake:
flake8 --count eelbrain examples scripts
test: style-check
pytest eelbrain
testw:
pythonw $(shell which pytest) eelbrain
test-no-gui:
pytest eelbrain --no-gui
test-only-gui:
pythonw $(shell which pytest) eelbrain/_wxgui eelbrain/plot eelbrain/tests/test_examples.py eelbrain/tests/test_fmtxt.py eelbrain/tests/test_report.py
test-gui-nomayavi:
pythonw $(shell which pytest) --no-mayavi eelbrain/_wxgui eelbrain/plot eelbrain/tests/test_examples.py eelbrain/tests/test_fmtxt.py eelbrain/tests/test_report.py
pypi:
rm -rf build dist
python setup.py sdist bdist_wheel
twine upload dist/*
.PHONY: clean clean-py doc testw pypi