-
Notifications
You must be signed in to change notification settings - Fork 15
/
Makefile
43 lines (30 loc) · 1.22 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
37
38
39
40
41
42
43
.PHONY: all build test install doc clean distclean
activate=. venv/bin/activate
all: test
venv:
python3 -m venv venv
$(activate) && python -m pip install maturin
build: venv
$(activate) && maturin build --release
test: snake_egg/tests/*.py build venv
$(activate) && maturin develop && python snake_egg/tests/test_math.py
$(activate) && maturin develop && python snake_egg/tests/test_prop.py
$(activate) && maturin develop && python snake_egg/tests/test_simple.py
$(activate) && maturin develop && python snake_egg/tests/test_dynamic.py
$(activate) && maturin develop && python snake_egg/tests/test_dataclass.py
stubtest: snake_egg/__init__.pyi build venv
$(activate) && maturin develop --extras=dev && python -m mypy.stubtest snake_egg --ignore-missing-stub
mypy: snake_egg/__init__.pyi build venv
$(activate) && maturin develop --extras=dev && mypy snake_egg
install: venv
$(activate) maturin build --release && \
python -m pip install snake_egg --force-reinstall --no-index \
--find-link ./target/wheels/
doc: venv
$(activate) && maturin develop && python -m pydoc -w snake_egg.internal
shell: venv
$(activate) && maturin develop && python -ic 'import snake_egg'
clean:
cargo clean
distclean: clean
$(RM) -r venv