Skip to content

Pydantic deprecations, psycopg2-binary removal, update backend dockerfile - #21

Open
spwoodcock wants to merge 4 commits into
developfrom
fix/psycopg-binary-plus-pydantic-deprecation
Open

Pydantic deprecations, psycopg2-binary removal, update backend dockerfile#21
spwoodcock wants to merge 4 commits into
developfrom
fix/psycopg-binary-plus-pydantic-deprecation

Conversation

@spwoodcock

Copy link
Copy Markdown
Member
  • Fixes Usage of psycopg2-binary in auth-libs is an antipattern #9 by removing psycopg2-binary, and instead using the bundled asyncpg lib for alembic migrations (asyncpg is used throughout the rest of the code models etc.
  • Also removed the deprecated class Config: usage for pydantic, as it was replaced with ConfigDict in pydantic v2 a long time ago (ready for v3 total removal).
  • Also updated the backend dockerfile to better match production patterns in the field-tm model Dockerfile (better caching strategy, not using uv run in production, and a few other changes).

@spwoodcock
spwoodcock requested a review from hg1g April 24, 2026 14:58
@spwoodcock spwoodcock self-assigned this Apr 24, 2026
@spwoodcock
spwoodcock requested a review from emi420 April 24, 2026 14:58
@spwoodcock
spwoodcock force-pushed the fix/psycopg-binary-plus-pydantic-deprecation branch from d5d0ad9 to 74e7a46 Compare April 29, 2026 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Usage of psycopg2-binary in auth-libs is an antipattern

1 participant