-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
77 lines (66 loc) · 1.62 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.DEFAULT_GOAL := all
black = black --target-version py39 blazer
isort = isort --profile black blazer
.PHONY: depends
depends:
bash ./bin/depends.sh
.PHONY: init
init: depends
echo "Setting up virtual environment in venv/"
python3 -m venv venv
echo "Virtual environment complete."
.PHONY: format
format:
$(isort)
$(black)
.PHONY: lint
lint:
mypy --show-error-codes blazer
flake8 --ignore=E203,F841,E501,E722,W503 blazer
$(isort) --check-only --df
$(black) --check --diff
.PHONY: install
install: depends init
pip install -r requirements.txt
python setup.py install
python setup.py clean
.PHONY: update
update: format lint
pip freeze | grep -v blazer > requirements.txt
git add setup.py docs bin blazer requirements.txt Makefile
git commit --allow-empty -m "Updates"
git push origin main
python setup.py install
git status
.PHONY: docs
docs:
cd docs
make -C docs html
.PHONY: release
release: update tests docs
bash ./bin/tag.sh
.PHONY: clean
clean:
python setup.py clean
git status
.PHONY: tests
tests: format lint
python setup.py install
bash ./bin/test_map_reduce.sh
bash ./bin/test_gpu.sh
bash ./bin/test_mapreduce.sh
bash ./bin/test_scatter.sh
bash ./bin/test_stream.sh
bash ./bin/test_scatter_stream.sh
bash ./bin/test_map_reduce_stream.sh
bash ./bin/test_environment_range.sh
bash ./bin/test_environment_watch.sh
bash ./bin/test_data_shard.sh
bash ./bin/rungpu.sh
bash ./bin/test_kernel.sh
@bash -c 'echo'
@bash -c 'echo All tests passed!'
@bash -c 'echo -----------------------------------------------------------------'
.PHONY: all
all: format lint update docs install tests clean
git status