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 <git@darrennathanael.com>
This commit is contained in:
Darren 2022-06-02 12:35:20 -05:00 committed by GitHub
parent 51e9172479
commit 0e89d18bc5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -30,8 +30,7 @@ python_requires = >=3.6
install_requires = install_requires =
# Essential packages # Essential packages
django>=3.2 django>=3.2
pygments>=2.11 pygments<=2.11.2
mysqlclient>=2.1.0
django-staticinline>=1.0 django-staticinline>=1.0
django-csp>=3.6 django-csp>=3.6
dj_database_url>=0.5.0 dj_database_url>=0.5.0