#!/bin/sh
set -eux

pip install -r python/requirements.txt
rm -f target/wheels/*.whl

maturin build --release --features python
pip install --force-reinstall target/wheels/*.whl

# Test typing
mypy python/scripts/test_findex.py
# Unit tests
python3 python/scripts/test_findex.py
