17 lines
311 B
Bash
17 lines
311 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "Installing dev dependencies (build, pytest)..."
|
|
pip install -U build pytest >/dev/null
|
|
|
|
echo "Installing package in editable mode..."
|
|
pip install -e . >/dev/null
|
|
|
|
echo "Running pytest..."
|
|
pytest -q
|
|
|
|
echo "Building distribution..."
|
|
python3 -m build
|
|
|
|
echo "All done."
|