#!/bin/sh

# script/setup: Set up project for first-time use after cloning

set -e

cd "$(dirname "$0")/.."

echo "==> Checking for uv..."
if ! command -v uv >/dev/null 2>&1; then
  echo "UV not found, re-build the devcontainer..."
  exit 1
fi

echo "==> Installing Python with uv..."
uv python install

scripts/bootstrap

echo "==> Project is now ready to go!"
