From 64c72dbe16e38e718729ff363a104da80222cbb3 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 6 Jan 2025 00:07:45 +0100 Subject: [PATCH] Limits Pygments to exclude 2.19.0 (#45412) Pygments 2.19.0 fails to properly render .ini examples with dictionaries. This is tracked in https://github.com/pygments/pygments/issues/2834 --- hatch_build.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hatch_build.py b/hatch_build.py index cfe2ddb022320..aac4e5b1126f9 100644 --- a/hatch_build.py +++ b/hatch_build.py @@ -411,7 +411,9 @@ "pluggy>=1.5.0", "psutil>=5.8.0", "pydantic>=2.10.2", - "pygments>=2.0.1", + # Pygments 2.19.0 improperly renders .ini files with dictionaries as values + # See https://github.com/pygments/pygments/issues/2834 + "pygments>=2.0.1,!=2.19.0", "pyjwt>=2.0.0", "python-daemon>=3.0.0", "python-dateutil>=2.7.0",