Upgrade some pgweb python dependencies

From: Paul A Jungwirth <pj(at)illuminatedcomputing(dot)com>
To: pgsql-www(at)lists(dot)postgresql(dot)org
Subject: Upgrade some pgweb python dependencies
Date: 2026-02-11 22:39:50
Message-ID: CA+renyW-Fc0m3+dp0kGwhHPuhuNbk4x2YZSSx5b8KTfbBbc45w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-www

I submitted a patch to pgarchive recently, which led me to setting up
pgweb, based on the instructions in docs/dev_install.rst.[0]

Using debian 13 and python 3.9, I ran into several errors running `pip
install -r requirements.txt`. The versions pinned there look quite
old. The latest allowed version of pycryptodomex even seems to use
python2 syntax, so I don't understand how it works for anyone else.
Here are some patches with the upgrades I needed to get things
installed and running. (The pycryptodomex failure didn't appear until
I ran `./manage.py migrate`.) The psycopg2 upgrade is very modest, but
the other two are more aggressive. Probably more of the dependencies
are due for upgrading as well, but they do work.

[0] https://www.postgresql.org/message-id/CA%2BrenyWA77wVu2Zis3%3DtdBWAj-Xbz7cKuZbMbo6%3Do5cMR7wZVQ%40mail.gmail.com

Yours,

--
Paul ~{:-)
pj(at)illuminatedcomputing(dot)com

Attachment Content-Type Size
v1-0003-Allow-pycryptodomex-up-to-3.23.0.patch text/x-patch 984 bytes
v1-0002-Upgrade-PyYAML-to-6.0.3.patch text/x-patch 678 bytes
v1-0001-Upgrade-psycopg2-to-2.8.6.patch text/x-patch 801 bytes

Responses

Browse pgsql-www by date

  From Date Subject
Next Message David G. Johnston 2026-02-11 23:11:35 Feedback Wanted for Contributions to pgarchive
Previous Message Paul A Jungwirth 2026-02-11 22:32:40 Re: Fill page when printing archived threads