forked from OpenMined/PyGrid-deprecated---see-PySyft-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (29 loc) · 825 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
venv: venv/bin/activate
REQ_DIR=pip-dep
reqs: $(REQ_DIR)/requirements.txt $(REQ_DIR)/requirements_dev.txt
venv/bin/activate: reqs
test -e venv/bin/activate || python3 -m venv venv
. venv/bin/activate; pip install -Ur $(REQ_DIR)/requirements.txt; pip install -Ur $(REQ_DIR)/requirements_dev.txt; python setup.py install
touch venv/bin/activate
install_hooks: venv
venv/bin/pre-commit install
notebook: venv
(. venv/bin/activate; \
python setup.py install; \
python -m ipykernel install --user --name=grid; \
jupyter notebook;\
)
lab: venv
(. venv/bin/activate; \
python setup.py install; \
python -m ipykernel install --user --name=grid; \
jupyter lab;\
)
.PHONY: test
test: venv
(. venv/bin/activate; \
python setup.py install; \
venv/bin/coverage run -m pytest test;\
)
clean:
rm -rf venv