From 0e89d18bc5966dd9e62e89426e9ea63b2e0e617d Mon Sep 17 00:00:00 2001 From: Darren Date: Thu, 2 Jun 2022 12:35:20 -0500 Subject: [PATCH] fix: pygment crashes (#209) Dpaste crashes when something else than plain text is stored. https://user-images.githubusercontent.com/428000/171509933-116ea4d2-105e-4d75-b731-0d2fad1c8fd7.png !! This is a temporary fix for the problem described above. This fixes it by downgrading the pygment version. Note: I also remove mysqlclient as was an accidental commit. --- Fixes: https://github.com/DarrenOfficial/dpaste/issues/208 Origin: https://github.com/pygments/pygments/issues/2119 Signed-off-by: Darren --- setup.cfg | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index d0efa16..6f95163 100644 --- a/setup.cfg +++ b/setup.cfg @@ -30,8 +30,7 @@ python_requires = >=3.6 install_requires = # Essential packages django>=3.2 - pygments>=2.11 - mysqlclient>=2.1.0 + pygments<=2.11.2 django-staticinline>=1.0 django-csp>=3.6 dj_database_url>=0.5.0