-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (36 loc) · 928 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
40
41
42
43
44
45
46
47
48
49
50
51
52
PKGNAME=orcanet
ALLNAMES = $(PKGNAME)
ALLNAMES += orcanet_contrib
ALLNAMES += examples
default: build
all: install
build:
@echo "No need to build anymore :)"
install:
pip install .
install-dev:
pip install -e .
clean:
python setup.py clean --all
rm -f -r build/
test:
py.test --junitxml=./reports/junit.xml -o junit_suite_name=$(PKGNAME) $(PKGNAME)
test-cov:
py.test --cov ./ --ignore orcanet/tests/test_integration_full.py --cov-report term-missing --cov-report xml:reports/coverage.xml --cov-report html:reports/coverage $(ALLNAMES)
test-loop:
py.test $(PKGNAME)
ptw --ext=.py,.pyx --ignore=doc $(PKGNAME)
flake8:
py.test --flake8
pep8: flake8
docstyle:
py.test --docstyle
lint:
py.test --pylint
dependencies:
pip install -Ur requirements.txt
.PHONY: yapf
yapf:
yapf -i -r $(PKGNAME)
yapf -i setup.py
.PHONY: all clean build install install-dev test test-nocov flake8 pep8 dependencies docstyle