ci: pin SQLAlchemy<2.1 (2.1 defaults to psycopg v3, we ship psycopg2) #144

Merged
fastie81 merged 1 commit from fix/pin-sqlalchemy into main 2026-10-21 18:25:28 +13:00
Owner

Fresh pip installs (CI cache miss, or any new image build) now resolve SQLAlchemy 2.1.x, which defaults postgresql:// to psycopg v3. We only ship psycopg2-binary, so create_app() fails with ModuleNotFoundError: No module named 'psycopg'. Prod runs 2.0.52.

Fix: SQLAlchemy>=2.0,<2.1 in requirements.txt (+1 line).

Verified: CI on 7c90008 is fully green (test, lint-frontend, build, deploy). Unblocks #143, whose test job failed on this exact error.

Fresh pip installs (CI cache miss, or any new image build) now resolve SQLAlchemy 2.1.x, which defaults `postgresql://` to psycopg v3. We only ship `psycopg2-binary`, so `create_app()` fails with `ModuleNotFoundError: No module named 'psycopg'`. Prod runs 2.0.52. Fix: `SQLAlchemy>=2.0,<2.1` in requirements.txt (+1 line). Verified: CI on 7c90008 is fully green (test, lint-frontend, build, deploy). Unblocks #143, whose test job failed on this exact error.
ci: pin SQLAlchemy<2.1 (2.1 defaults to psycopg v3, we ship psycopg2)
All checks were successful
CI / test (push) Successful in 2m32s
CI / lint-frontend (push) Successful in 1m1s
CI / build (push) Has been skipped
CI / deploy (push) Has been skipped
7c900081f0
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
fastie81/honbu-manager!144
No description provided.