-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (34 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
44
45
46
47
# simple makefile to simplify repetitive build env management tasks under posix
# this is adopted from the sklearn Makefile
# caution: testing won't work on windows
PYTHON ?= python
.PHONY: clean develop test
clean:
$(PYTHON) setup.py clean
rm -rf dist
rm -rf build
doc-requirements:
$(PYTHON) -m pip install -r build_tools/doc/doc_requirements.txt
requirements:
$(PYTHON) -m pip install -r requirements.txt
develop: requirements
$(PYTHON) setup.py develop
install: requirements
$(PYTHON) setup.py install
# test-sphinxext:
# $(NOSETESTS) -s -v doc/sphinxext/
#test-doc:
#ifeq ($(BITS),64)
# $(NOSETESTS) -s -v doc/*.rst doc/modules/ doc/datasets/ \
# doc/developers doc/tutorial/basic doc/tutorial/statistical_inference \
# doc/tutorial/text_analytics
#endif
test-requirements:
$(PYTHON) -m pip install pytest pytest-cov flake8
test-lint: test-requirements
$(PYTHON) -m flake8 reclab --filename='*.py' \
--ignore E803,F401,F403,W293,W504,W605
test-unit: test-requirements
$(PYTHON) -m pytest -v --durations=20 --cov-config .coveragerc --cov reclab
rm -rf .coverage.*
test: develop test-unit test-lint