Skip to content

Commit f773d50

Browse files
committed
add Makefile
1 parent b537f32 commit f773d50

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
VENV ?= .venv
2+
PY := $(VENV)/bin/python
3+
PIP := $(VENV)/bin/pip
4+
5+
.PHONY: venv develop test docs docs-serve clean
6+
7+
venv:
8+
@test -d $(VENV) || python3 -m venv $(VENV)
9+
$(PIP) install -U pip
10+
$(PIP) install maturin pytest mkdocs
11+
12+
develop: venv
13+
$(VENV)/bin/maturin develop --locked
14+
15+
test: develop
16+
$(PY) -m pytest tests_py
17+
18+
docs: venv
19+
$(PY) -m mkdocs build
20+
21+
docs-serve: venv
22+
$(PY) -m mkdocs serve
23+
24+
clean:
25+
rm -rf $(VENV)

0 commit comments

Comments
 (0)