-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (25 loc) · 729 Bytes
/
Copy pathMakefile
File metadata and controls
39 lines (25 loc) · 729 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
35
36
37
38
39
VENV = .venv
VENV_PYTHON = $(VENV)/bin/python
SYSTEM_PYTHON = $(or $(shell which python3), $(shell which python))
PYTHON = $(or $(wildcard $(VENV_PYTHON)), $(SYSTEM_PYTHON))
.DEFAULT_GOAL := build
$(VENV_PYTHON):
rm -rf $(VENV)
$(SYSTEM_PYTHON) -m venv $(VENV)
venv: $(VENV_PYTHON)
deps:
$(PYTHON) -m pip install -r requirements-dev.txt
.PHONY: venv deps
test:
$(PYTHON) -m pytest --benchmark-skip tests
.PHONY: test
build:
$(PYTHON) -m pip install --verbose --no-build-isolation --editable .
install:
$(SYSTEM_PYTHON) -m pip install .
.PHONY: build install
docs-deps:
$(PYTHON) -m pip install -r docs/requirements.txt
docs:
$(PYTHON) -m sphinx docs build/html
.PHONY: docs docs-deps