forked from abstractqqq/polars_ds_extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 765 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
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) dev-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 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 examples/*.json
rm examples/*.pickle