File size: 1,291 Bytes
63dd946 | 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 | # Copyright (c) 2026 The Anuvani-Diarization authors
# SPDX-License-Identifier: MIT OR Apache-2.0
# Dev loop. Every target runs in the canonical reference environment (env/canonical.sh) with only the project venv active.
SHELL := /bin/bash
ENV := source env/canonical.sh && unset CONDA_PREFIX CONDA_DEFAULT_ENV && export VIRTUAL_ENV=$(CURDIR)/.venv PATH=$(CURDIR)/.venv/bin:$(HOME)/.cargo/bin:$$PATH &&
.PHONY: stage build test-rust test-fast test-cache test-gpu test-gpu-all check-exact
# the bundled libraries and assets the package (and, in this tree, the Rust tests and the gateway) load: python/anuvani_diar/_libs, /assets
stage:
$(ENV) python -s tools/stage_wheel_files.py
build: stage
$(ENV) maturin develop --release -q
$(ENV) cargo build --release -q -p diar-gateway
test-rust: stage
$(ENV) cargo test --workspace --quiet
test-fast: build test-rust
$(ENV) python -s -m pytest -q tests -m "not slow and not gpu" -p no:cacheprovider
test-cache: build
$(ENV) python -s -m pytest -q tests -m "slow and not gpu" -p no:cacheprovider
test-gpu: build
$(ENV) python -s -m pytest -q tests -m "gpu and not slow" -p no:cacheprovider
test-gpu-all: build
$(ENV) python -s -m pytest -q tests -m "gpu and slow" -p no:cacheprovider
check-exact: build
$(ENV) python -s tools/check_exact.py
|