-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
40 lines (32 loc) · 864 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
build_docs: export SPHINX_APIDOC_OPTIONS = members,inherited-members
.PHONY: dev_reqs
dev_reqs:
pip install -r requirements-dev.txt
.PHONY: reqs
reqs:
pip install -r requirements.txt
.PHONY: sdist
sdist: clean
python setup.py sdist
.PHONY: build_docs
build_docs:
pip install .[torch]
sphinx-apidoc -f --no-toc --templatedir=docs/source/_templates -e -o docs/source/api mlexp
sphinx-build -M html docs/source docs/build
.PHONY: install
install: clean
pip install .
.PHONY: test
test:
coverage run -m pytest -x --neptune_project $(neptune_project)
python setup.py clean --all
rm -rf build dist mlexp.egg-info
.PHONY: test_docs
test_docs:
coverage run -m pytest tests/test_docs --neptune_project empty
python setup.py clean --all
rm -rf build dist mlexp.egg-info
.PHONY: clean
clean:
python setup.py clean --all
rm -rf build dist mlexp.egg-info