mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-05-07 18:06:49 +02:00
15 lines
404 B
Bash
15 lines
404 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
PYTHON="${PYTHON:-python3.11}"
|
|
REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
|
VENV_DIR="$REPO_ROOT/venv"
|
|
VENV_MARKER="$REPO_ROOT/.venv-dir"
|
|
|
|
"$PYTHON" -m venv "$VENV_DIR"
|
|
"$VENV_DIR/bin/pip" install --upgrade pip
|
|
cd "$REPO_ROOT"
|
|
"$VENV_DIR/bin/python" -m pip install -e .
|
|
"$VENV_DIR/bin/pip" install pytest pytest-asyncio ruff black
|
|
printf 'venv\n' > "$VENV_MARKER"
|