[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

psycopg3 packaging: need new version of cython3 (and psycopg2)



Hello everyone.
I'm working on packaging of psycopg3 (ITP #994860, home page
https://www.psycopg.org/psycopg3/), which is successor of psycopg2
(maintained by team), supporting Python3 features like asycio
and with new architecture.

Current upstream version is 3.0.beta1, beta2 in preparation.
When preparing package, I made sure it's lintian-clean; it's also
running tests (some are failing - not sure if this is problem
with package or recently-uploaded PostgreSQL 14).
There are still some issues I'd like to fix before uploading though.

Psycopg3 differs from psycopg2: it consists of 3 modules.
Two of them (psycopg and psycopg_pool) are pure Python
so I intend to make them arch: all. They might also support
PyPy, but I haven't yet succeeded in doing so.
They use ctypes to talk to libpq for PostgreSQL communication,
which makes it slower than psycopg2.

Third module, psycopg_c, uses Cython to build code communicating
with libpq, which makes it faster than ctypes. But it requires
cython 3.0.alpha5. Currently Debian has cython3 0.29.21 (and
cython 0.29.14); latest stable upstream version is 0.29.24
(psycopg3 does not work with it - I checked) and development version
is 3.0.alpha9. So my question is - which route to take now?

Cython is team's package and it could use some attention. It was
not updated in 11 months, uses really old debhelper (7),
lintian complains heavily about it, there are 7 issues in BTS...
Should I upload 3.0.alpha9 to unstable (maybe blocking transition
to testing), and later try to fix most of its problems, uploading
psycopg3 to unstable shortly after?
Or should I first upload 3.0.alpha9 to experimetnal, trying to fix
most of issues there, and upload to sid only when it reaches 3.0.final?
This is important package, so I'd like to get some opinions before
proceeding. And also - what should we do with cython (not cython3),
in our quest to migrate from Python2?

On similar topic - should I upload newest version of psycopg2
(removing *dbg package at the same time)? Debian has 2.8.6 while
latest upstream is 2.9.1. It's less invasive change than in case
of cython, but I'd still like to get some opinions, or at least
acknowledgement.

Best regards.

-- 
Tomasz Rybak, Debian Developer <serpent@debian.org>
GPG: A565 CE64 F866 A258 4DDC F9C7 ECB7 3E37 E887 AA8C

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: