From 6ae4c927259f3672d43cdcda8e4ce547574c3c5e Mon Sep 17 00:00:00 2001 From: jrijul1201 Date: Thu, 21 Dec 2023 15:52:30 +0530 Subject: [PATCH] requirements: Unpin pygments from ~=2.15.1 to >=2.14.0. Pygments 2.16.0 introduced a style to support a combination of bold and italic styling in pygments/pygments#2444. Both of our gruvbox themes and the light native theme gain a 'bold strong' style via pygments as a result, which urwid fails to parse and blocks the application from loading. This was temporarily fixed by pinning pygments at ~=2.15.1 in #1433. Method `translate_styles` manually converts the pygments `bold italic` style into the urwid-compatible `bold, italics` is there. Unpin Pygments from ~=2.15.1 to >=2.14.0. Fixes part of #1434. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7b416d844d..b8d27a53e3 100644 --- a/setup.py +++ b/setup.py @@ -100,7 +100,7 @@ def long_description(): "urwid_readline>=0.13", "beautifulsoup4>=4.11.1", "lxml>=4.9.2", - "pygments~=2.15.1", + "pygments>=2.14.0", "typing_extensions~=4.5.0", "python-dateutil>=2.8.2", "pytz>=2022.7.1",