-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
76 lines (64 loc) · 2.68 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
.PHONY: help prepare-dev test test-disable-gpu doc serve-doc
.DEFAULT: help
help:
@echo "make prepare-dev"
@echo " create and prepare development environment, use only once"
@echo "make test"
@echo " run tests and linting on py36, py37, py38"
@echo "make check_all"
@echo " check all files using pre-commit tool"
@echo "make updatetools"
@echo " updatetools pre-commit tool"
@echo "make test-disable-gpu"
@echo " run test with gpu disabled"
@echo "make serve-doc"
@echo " run documentation server for development"
@echo "make doc"
@echo " build mkdocs documentation"
install-env-tensorflow:
python3 -m pip install virtualenv
python3 -m venv oodeel_env_tf
. oodeel_env_tf/bin/activate && pip install --upgrade pip
. oodeel_env_tf/bin/activate && pip install -e .[tensorflow]
install-env-torch:
python3 -m pip install virtualenv
python3 -m venv oodeel_env_torch
. oodeel_env_torch/bin/activate && pip install --upgrade pip
. oodeel_env_torch/bin/activate && pip install -e .[torch]
prepare-dev-tf:
python3 -m pip install virtualenv
python3 -m venv oodeel_env_tf
. oodeel_env_tf/bin/activate && pip install --upgrade pip
. oodeel_env_tf/bin/activate && pip install -e .[tensorflow-dev]
. oodeel_dev_env/bin/activate && pre-commit install
. oodeel_dev_env/bin/activate && pre-commit install-hooks
. oodeel_dev_env/bin/activate && pre-commit install --hook-type commit-msg
prepare-dev-torch:
python3 -m pip install virtualenv
python3 -m venv oodeel_env_torch
. oodeel_env_torch/bin/activate && pip install --upgrade pip
. oodeel_env_torch/bin/activate && pip install -e .[torch-dev]
. oodeel_dev_env/bin/activate && pre-commit install
. oodeel_dev_env/bin/activate && pre-commit install-hooks
. oodeel_dev_env/bin/activate && pre-commit install --hook-type commit-msg
prepare-dev:
python3 -m pip install virtualenv
python3 -m venv oodeel_dev_env
. oodeel_dev_env/bin/activate && pip install --upgrade pip
. oodeel_dev_env/bin/activate && pip install -e .[dev] #install_requires and dev in extras_require (setup.py)
. oodeel_dev_env/bin/activate && pre-commit install
. oodeel_dev_env/bin/activate && pre-commit install-hooks
. oodeel_dev_env/bin/activate && pre-commit install --hook-type commit-msg
test:
. oodeel_dev_env/bin/activate && tox
check_all:
. oodeel_dev_env/bin/activate && pre-commit run --all-files
updatetools:
. oodeel_dev_env/bin/activate && pre-commit autoupdate
test-disable-gpu:
. oodeel_dev_env/bin/activate && CUDA_VISIBLE_DEVICES=-1 tox
doc:
. oodeel_dev_env/bin/activate && mkdocs build
. oodeel_dev_env/bin/activate && mkdocs gh-deploy
serve-doc:
. oodeel_dev_env/bin/activate && CUDA_VISIBLE_DEVICES=-1 mkdocs serve