-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathMakefile
34 lines (27 loc) · 748 Bytes
/
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
SHELL=/bin/bash
VENV=.venv
ifeq ($(OS),Windows_NT)
VENV_BIN=$(VENV)/Scripts
else
VENV_BIN=$(VENV)/bin
endif
.venv:
python3 -m venv $(VENV)
$(MAKE) requirements
requirements: .venv
@unset CONDA_PREFIX \
&& $(VENV_BIN)/python -m pip install --upgrade uv \
&& $(VENV_BIN)/uv pip install --upgrade -r requirements.txt \
&& $(VENV_BIN)/uv pip install --upgrade -r tests/requirements-test.txt \
&& $(VENV_BIN)/uv pip install --upgrade -r docs/requirements-docs.txt \
dev-release: .venv
unset CONDA_PREFIX && \
source .venv/bin/activate && maturin develop --release -m Cargo.toml
pre-commit: .venv
cargo fmt
pre-commit run --all-files
clean:
rm -f examples/*.json
rm -f examples/*.pickle
rm -rf .ruff_cache/
rm -rf .pytest_cache/