Re: [PATCH] Updated python dependencies to match as required by pgcli 4.7.1's pyproject.toml - Mailing list pgsql-pkg-yum

From Devrim Gunduz
Subject Re: [PATCH] Updated python dependencies to match as required by pgcli 4.7.1's pyproject.toml
Date
Msg-id E732EC1C-E04B-4395-B703-1CC042895E90@gunduz.org
Whole thread
In response to [PATCH] Updated python dependencies to match as required by pgcli 4.7.1's pyproject.toml  (Pritt Balagopal <pritt1999@gmail.com>)
List pgsql-pkg-yum
Hi Pritt,

Thanks for the bug report and the patch. You were right: the pgcli spec was missing pgspecial, prompt-toolkit, psycopg and tzlocal, so pgcli failed to start.

I committed a slightly different version of your patch (co-authored with Claude):

https://git.postgresql.org/gitweb/?p=pgrpms.git;a=commit;h=c12d6ef32


Differences from your patch:

* tzlocal has no version floor. Upstream asks for >= 5.2, but pgcli only calls tzlocal.get_localzone_name(), which has existed since tzlocal 4.0. Some of our supported distros ship tzlocal 4.x, and the 5.2 floor would have made pgcli uninstallable there.

* I dropped jedi, humanize and wcwidth. pgcli 4.7.1 no longer uses them.

* The Requires use pythonX.Ydist() names (e.g. python3.14dist(pgspecial)) instead of package names, so the same spec works on Fedora, RHEL and SLES.

RHEL 9 needs more work, because pgcli 4.7 requires python 3.10 or newer and some of its dependencies aren't packaged for RHEL 9's alternative Python yet.

I'll reply again when I'll build packages.

Regards, Devrim


On 22 September 2026 06:36:37 GMT-05:00, Pritt Balagopal <pritt1999@gmail.com> wrote:
As the subject says, the dependency versions have been updated to
align with upstream requirements. Furthermore, the packages
`python3-pgspecial`, `python3-prompt-toolkit`, python3-pyscopg3`, and
`python3-tzlocal` have been marked as dependencies. This will fix my
earlier reported bug in
https://www.postgresql.org/message-id/flat/19562-9d41f689d05188c3%40postgresql.org

pgsql-pkg-yum by date:

Previous
From: Pritt Balagopal
Date:
Subject: [PATCH] Updated python dependencies to match as required by pgcli 4.7.1's pyproject.toml