mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-05-08 18:34:58 +02:00
17 lines
492 B
PowerShell
17 lines
492 B
PowerShell
param(
|
|
[string]$Python = "py"
|
|
)
|
|
|
|
$repoRoot = Resolve-Path (Join-Path $PSScriptRoot "..")
|
|
$venvPath = Join-Path $repoRoot "venv"
|
|
$venvMarker = Join-Path $repoRoot ".venv-dir"
|
|
& $Python -3.11 -m venv $venvPath
|
|
|
|
$pip = Join-Path $venvPath "Scripts\pip.exe"
|
|
& $pip install --upgrade pip
|
|
Push-Location $repoRoot
|
|
& (Join-Path $venvPath "Scripts\python.exe") -m pip install -e .
|
|
& $pip install pytest pytest-asyncio ruff black
|
|
"venv" | Set-Content -LiteralPath $venvMarker -NoNewline
|
|
Pop-Location
|