-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.ps1
More file actions
31 lines (24 loc) · 1.14 KB
/
Copy pathsetup.ps1
File metadata and controls
31 lines (24 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# BiblioFlow Development Setup Script
# Run this in PowerShell: .\setup.ps1
Write-Host "BiblioFlow Development Setup" -ForegroundColor Cyan
Write-Host "=============================" -ForegroundColor Cyan
# Check Python
$python = Get-Command python -ErrorAction SilentlyContinue
if (-not $python) {
Write-Host "ERROR: Python not found. Please install Python 3.11+" -ForegroundColor Red
exit 1
}
Write-Host "`n[1/4] Creating virtual environment..." -ForegroundColor Yellow
python -m venv .venv
Write-Host "[2/4] Activating virtual environment..." -ForegroundColor Yellow
.\.venv\Scripts\Activate.ps1
Write-Host "[3/4] Installing dependencies..." -ForegroundColor Yellow
pip install -r requirements.txt -r requirements-dev.txt --quiet
Write-Host "[4/4] Verifying installation..." -ForegroundColor Yellow
python -c "from PyQt6.QtCore import PYQT_VERSION_STR; print('PyQt6:', PYQT_VERSION_STR)"
Write-Host "`n Setup complete!" -ForegroundColor Green
Write-Host "`nTo run the app:" -ForegroundColor Cyan
Write-Host " .\.venv\Scripts\Activate.ps1"
Write-Host " python main.py"
Write-Host "`nTo run tests:" -ForegroundColor Cyan
Write-Host " pytest tests/ -v"