django-postgres-copy icon indicating copy to clipboard operation
django-postgres-copy copied to clipboard

Update to Python 3.12 and add support for Psycopg3

Open wlorenzetti opened this issue 9 months ago • 5 comments

Update pipenv to Python 3.12. Add support for Psycopg3.

wlorenzetti avatar Feb 27 '25 13:02 wlorenzetti

@palewire can we get this merged?

thorntonedgar avatar Jun 16 '25 16:06 thorntonedgar

unfortunately i don't think this pr would work as is, it's still importing from e.g. psycopg2.extensions

davidszotten avatar Jun 16 '25 20:06 davidszotten

I'm open to merging and releasing this change. Sorry for having been MIA.

Assuming it works with the new version, my main concern is backwards compatibility. Would this introduce any issues there?

I'd also like to see the try/except logic in the current draft swapped for something more Pythonic, like a hasattr check for the methods that indicate what version is in operation.

palewire avatar Jun 16 '25 20:06 palewire

And, not to be a pain, but would there be a way to introduce a test that verifies both versions are working?

palewire avatar Jun 16 '25 20:06 palewire

i pushed my stab at this from a few weeks ago in #213

davidszotten avatar Jun 16 '25 20:06 davidszotten

This got handled in #213

palewire avatar Jun 22 '25 19:06 palewire