-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
36 lines (29 loc) · 1.08 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
.PHONY: help clean dev example package test test_examples
help:
@echo "This project assumes that an active Python virtualenv is present."
@echo "The following make targets are available:"
@echo " dev install all deps for dev env"
@echo " docs create pydocs for all relveant modules"
@echo " test run all tests with coverage"
clean:
rm -rf dist build *.egg-info .pytest_cache htmlcov
find . -not -path "./venv/*" -name 'results' -type d | xargs rm -rf
find . -not -path "./venv/*" -name '.metaflow' -type d | xargs rm -rf
dev:
pip install --upgrade pip
pip install --upgrade --upgrade-strategy eager -r requirements.txt
pip install -e .
example:
pip install --upgrade pip
pip install -r example-requirements.txt
jupyter labextension install jupyterlab-plotly
package:
pip install build
python -m build --sdist --wheel --outdir dist/ .
test:
pip install -r test-requirements.txt
coverage run --omit 'venv/*' -m pytest
coverage html -i
test_examples:
pip install -r example-requirements.txt
python examples/model-selection/train.py run --configuration test_randomized_config