-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (25 loc) · 1.18 KB
/
Copy pathMakefile
File metadata and controls
34 lines (25 loc) · 1.18 KB
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
PYTHON ?= python3
.PHONY: install check check-all validate verify-reference-outputs release-validate clean clean-outputs
install:
$(PYTHON) -m pip install -r requirements.txt
$(PYTHON) -m pip install -e .
check:
$(PYTHON) -m compileall -q src/prepbench src/evaluate src/py2flow src/simulator/*.py examples tests scripts/validate_dataset.py scripts/verify_reference_outputs.py scripts/execute_workflow.py scripts/prepare_run.py scripts/evaluate_submission.py scripts/check_simulator.py
PYTHONPATH=src $(PYTHON) -m unittest discover -s tests
$(PYTHON) scripts/validate_dataset.py
$(PYTHON) scripts/evaluate_submission.py --help >/dev/null
$(PYTHON) scripts/check_simulator.py --help >/dev/null
check-all: check
$(PYTHON) -m compileall -q reference/solutions
$(PYTHON) scripts/verify_reference_outputs.py
validate:
$(PYTHON) scripts/validate_dataset.py
verify-reference-outputs:
$(PYTHON) scripts/verify_reference_outputs.py
release-validate: check-all
clean: clean-outputs
find . -type d -name __pycache__ -prune -exec rm -rf {} +
find . -type f \( -name '*.pyc' -o -name '*.pyo' \) -delete
rm -rf build dist src/prepbench.egg-info .pytest_cache
clean-outputs:
rm -rf @output @runs