forked from alibaba/EasyParallelLibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (27 loc) · 747 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
PYTHON ?= python
ADDITIONAL_DEPS ?=
.PHONY: build
build: $(LIB)
$(PYTHON) setup.py bdist_wheel --universal
@printf "\033[0;32mPIP package built\033[0m: "
@ls dist/*.whl
.PHONY: test
test: $(LIB)
cd tests; $(MAKE) test
.PHONY: lint
lint:
pip install lazy-object-proxy==1.6.0 pylint==1.9.4
cd csrc; $(MAKE) lint
@$(PYTHON) -m pylint \
--rcfile=.pylintrc --output-format=parseable --jobs=8 \
$(shell find epl/ -type f -name '*.py') \
$(shell find tests/ -type f -name '*.py') \
$(shell find . -type f -name 'setup.py')
.PHONY: clean
clean:
$(PYTHON) setup.py clean
.PHONY: format
format:
cd csrc; $(MAKE) format
find ./ -name "*.py" | xargs -n1 yapf -i --style='{based_on_style: pep8, indent_width: 2}'
.DEFAULT_GOAL := build