Upgrade some pgweb python dependencies

Поиск
Список
Период
Сортировка
Искать

Upgrade some pgweb python dependencies

От:
Paul A Jungwirth <pj@illuminatedcomputing.com>
Дата:
Вложения:
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@illuminatedcomputing.com

Re: Upgrade some pgweb python dependencies

От:
Magnus Hagander <magnus@hagander.net>
Дата:
On Wed, 11 Feb 2026 at 23:40, Paul A Jungwirth <pj@illuminatedcomputing.com> wrote:
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.

These requirements files are, ahem, badly maintained. I assume nobody really uses them :/

FWIW, since you're on debian, the easiest is to just use the debian packaged versions of basically everything. Our production is on debian bookworm and testing is on debian trixie, so either of those should work. The only thing you need to install from pip at this point is Django itself and cvss (if you want the security pages). 

Doesn't mean the requirements.txt shouldn't be better maintained, so we should look at that, but as a quick-fix for your current situation and to make sure you're running something that matches what's actually used in production.

//Magnus

FAQ