From 4b4fdb8df335f9e141e7aa3c5d9ccff1b3dc8b60 Mon Sep 17 00:00:00 2001 From: eagnespuerto Date: Thu, 3 Sep 2026 20:09:49 +0800 Subject: [PATCH] Update dependencies for VetStar backend, frontend, and Pi Backend: FastAPI/uvicorn/pydantic/pytest to current stable; numpy 2, astropy 7+, matplotlib 3.10+, reportlab 4.4+. MulensModel kept at >=2.14 (stable Model API across 2.x/3.x). Frontend: React 18 -> 19, Vite 5 -> 7, @vitejs/plugin-react 4 -> 6, TypeScript 5.5 -> 5.9. Tailwind held at 3.4.19; v4 is a CSS-first rewrite worth its own migration. Pi: kept upper-bound discipline (piwheels + 1 GB RAM) but nudged floors and admitted astropy 8 / reportlab 5. Co-Authored-By: Claude Opus 4.7 --- backend/requirements.txt | 27 ++++++++++++++------------- frontend/package.json | 18 +++++++++--------- pios/requirements-pi.txt | 12 ++++++------ 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/backend/requirements.txt b/backend/requirements.txt index 1539953..0503733 100644 --- a/backend/requirements.txt +++ b/backend/requirements.txt @@ -1,17 +1,18 @@ -fastapi==0.115.0 -uvicorn[standard]==0.30.6 -python-multipart==0.0.12 -numpy>=1.26 -scipy>=1.13 -astropy>=6.0 -astroquery>=0.4.7 -matplotlib>=3.8 -reportlab>=4.2 -pydantic>=2.0 -pytest>=8.0 +fastapi==0.141.1 +uvicorn[standard]==0.52.4 +python-multipart==0.0.32 +numpy>=2.0 +scipy>=1.14 +astropy>=7.0 +astroquery>=0.4.11 +matplotlib>=3.10 +reportlab>=4.4 +pydantic>=2.10 +pytest>=8.3 # Microlensing (Module A) — PSPL fits use the closed form; MulensModel is # listed so higher-order effects (parallax, finite-source, binary lens) can -# be dropped in without a re-install. +# be dropped in without a re-install. The public Model API used here is +# stable across 2.x and 3.x. MulensModel>=2.14; python_version >= "3.9" # Microlensing (Module B) — TESS RA/Dec → (sector, camera, ccd). -tess-point>=0.9.0 +tess-point>=0.9.4 diff --git a/frontend/package.json b/frontend/package.json index 2840f35..38ff7c8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,17 +9,17 @@ "preview": "vite preview --host 0.0.0.0 --port 4173" }, "dependencies": { - "react": "^18.3.1", - "react-dom": "^18.3.1" + "react": "^19.2.0", + "react-dom": "^19.2.0" }, "devDependencies": { - "@types/react": "^18.3.3", - "@types/react-dom": "^18.3.0", - "@vitejs/plugin-react": "^4.3.1", + "@types/react": "^19.2.0", + "@types/react-dom": "^19.2.0", + "@vitejs/plugin-react": "^6.1.1", "autoprefixer": "^10.4.20", - "postcss": "^8.4.45", - "tailwindcss": "^3.4.10", - "typescript": "^5.5.4", - "vite": "^5.4.6" + "postcss": "^8.5.0", + "tailwindcss": "^3.4.19", + "typescript": "^5.9.0", + "vite": "^7.3.0" } } diff --git a/pios/requirements-pi.txt b/pios/requirements-pi.txt index d749f38..c86b128 100644 --- a/pios/requirements-pi.txt +++ b/pios/requirements-pi.txt @@ -11,11 +11,11 @@ # Pinned upper bounds keep import RAM predictable on 1 GB devices. # ---- Core (always needed) --------------------------------------------- -numpy>=1.23,<3 -scipy>=1.10,<2 -astropy>=5.3,<8 # FITS reader + BLS + LombScargle + WCS -matplotlib>=3.6,<4 # Agg + TkAgg backend, no Qt/Tk pip install -reportlab>=3.6,<5 # Single-file, pure-Python PDF +numpy>=1.26,<3 +scipy>=1.11,<2 +astropy>=6.0,<9 # FITS reader + BLS + LombScargle + WCS +matplotlib>=3.7,<4 # Agg + TkAgg backend, no Qt/Tk pip install +reportlab>=4.0,<6 # Single-file, pure-Python PDF # ---- Remote-service integrations (recommended — optional at runtime) -- # astroquery drives MAST/TESScut, ExoFOP/TIC v8 catalog, Gaia DR3, SIMBAD, @@ -28,4 +28,4 @@ astroquery>=0.4.7,<1 # resolves (RA, Dec) → (sector, camera, ccd) for the microlensing # coverage tool. Coverage exits gracefully with a "no_tess_point" flag # per event when this isn't installed. -tess-point>=0.9.0 +tess-point>=0.9.4