Debian Codegraph @

scripts/bootstrap

raw
1 #!/usr/bin/env bash
2
3 set -e
4
5 cd "$(dirname "$0")/.."
6
7 if [ -f "Brewfile" ] && [ "$(uname -s)" = "Darwin" ] && [ "${SKIP_BREW:-}" != "1" ] && [ -t 0 ]; then
8 brew bundle check >/dev/null 2>&1 || {
9 echo -n "==> Install Homebrew dependencies? (y/N): "
10 read -r response
11 case "$response" in
12 [yY][eE][sS]|[yY])
13 brew bundle
14 ;;
15 *)
16 ;;
17 esac
18 echo
19 }
20 fi
21
22 echo "==> Installing Python…"
23 uv python install
24
25 echo "==> Installing Python dependencies…"
26 uv sync --all-extras
27
28 echo "==> Exporting Python dependencies…"
29 # note: `--no-hashes` is required because of https://github.com/pypa/pip/issues/4995
30 uv export -o requirements-dev.lock --no-hashes