mahmoudimus / sqlalchemy-citext

CITEXT type for SQLAlchemy
Other
29 stars 14 forks source link

Hard psycopg2 dependency is still breaking pypy #27

Open fake-name opened 2 years ago

fake-name commented 2 years ago

Effectively the issue as commented in https://github.com/mahmoudimus/sqlalchemy-citext/pull/19#issuecomment-854250306 This package is broken for environments that use alternative postgres DB adapters (psycopg2cffi, pg8000).

I'm rolling updates to my requirements for various project, and this is still happening.

bchopson commented 1 year ago

If you can upgrade to SQLAlchemy 2.0.7, CITEXT has been added to the postgresql dialect: https://docs.sqlalchemy.org/en/20/dialects/postgresql.html#sqlalchemy.dialects.postgresql.CITEXT

I can't speak to the compatibility with other adapters/pypy.