-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (26 loc) · 719 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (26 loc) · 719 Bytes
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
PIP := $(shell command -v pip3 2> /dev/null || command which pip 2> /dev/null)
PYTHON := $(shell command -v python3 2> /dev/null || command which python 2> /dev/null)
.PHONY: install tests doc
pipcheck:
ifndef PIP
$(error "Ensure pip or pip3 are in your PATH")
endif
@echo Using pip: $(PIP)
pythoncheck:
ifndef PYTHON
$(error "Ensure python or python3 are in your PATH")
endif
@echo Using python: $(PYTHON)
install:
make pipcheck
$(PIP) install -r requirements.txt && $(PIP) install .
tests:
make pythoncheck
pytest --verbose
doc:
cd docs && rm -rf source/auto_examples && rm -rf build && make html && cd ..
clean:
rm -rf $(BUILDDIR)/*
rm -rf auto_examples/
lint:
flake8 docs/ examples/ drd/ tests/