diff --git a/docs/progress.md b/docs/progress.md index 17dbd6c..096a5da 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -8,7 +8,7 @@ Task 2: complete — 5 tests green; shared proxy, strict route, fallback, rotati Task 3: complete — 5 tests green; pagination, business login status, year mismatch, exact campus, pause/resume. Task 4: complete — 5 tests green; file import/export, YAM SQLite, favorites, origin guard, formula-safe exports. Task 5: complete — 3 frontend logic tests, production build, full Edge acceptance including mobile passed. -Task 6: final packaging — launch/reuse/stop/restart verified; README/notices ready; independent review findings fixed with regression tests. +Task 6: complete — launch/reuse/stop/restart verified; README/notices delivered; independent review has no remaining Critical/Important findings; source ZIP and launch entry in workspace outputs. Public index: 2,255 major entries and 460 unique schools extracted from YAM public data files. Seed index contains no admissions snapshots, cookies or signed request tokens. diff --git a/start.ps1 b/start.ps1 index 37da858..b1f3f8a 100644 --- a/start.ps1 +++ b/start.ps1 @@ -6,12 +6,14 @@ New-Item -ItemType Directory -Path $runtimePath -Force | Out-Null $pythonPath = Join-Path $projectRoot '.venv\Scripts\python.exe' if (-not (Test-Path -LiteralPath $pythonPath)) { if (Get-Command py.exe -ErrorAction SilentlyContinue) { - & py.exe -3.12 -m venv (Join-Path $projectRoot '.venv') + & py.exe -3 -m venv (Join-Path $projectRoot '.venv') } elseif (Get-Command python.exe -ErrorAction SilentlyContinue) { & python.exe -m venv (Join-Path $projectRoot '.venv') } else { throw 'Please install Python 3.12+ first.' } if ($LASTEXITCODE -ne 0) { throw 'Could not create Python environment.' } } +& $pythonPath -c "import sys; raise SystemExit(0 if sys.version_info >= (3, 12) else 1)" +if ($LASTEXITCODE -ne 0) { throw 'Python 3.12+ is required; recreate .venv with a supported interpreter.' } & $pythonPath -c "import fastapi, uvicorn, requests, bs4, openpyxl, multipart, playwright" 2>$null if ($LASTEXITCODE -ne 0) { $env:PIP_CACHE_DIR = Join-Path $runtimePath 'pip-cache'