From e69bc365656debc9a00d4851cf8ccd57c36561b3 Mon Sep 17 00:00:00 2001 From: Asterios Raptis Date: Mon, 17 Aug 2026 11:02:42 +0200 Subject: [PATCH] fix(deps): add missing regex package to requirements.txt scripts/lce_schema.py hard-requires `regex` for the slug pattern's Unicode property escapes (\p{Ll} etc.), which the stdlib `re` cannot compile. It was missing, so a fresh `make setup` / `make validate` on a clean machine died with FATAL: the 'regex' package is required. Verified with a fresh venv: pip install -r requirements.txt (or the Makefile-hardcoded install for the repo without one) followed by scripts/validate_content.py now passes clean. --- requirements.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/requirements.txt b/requirements.txt index 11825e9..59432f5 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,6 +3,9 @@ # there is one source for the package names. pyyaml>=6,<7 jsonschema>=4,<5 +# lce_schema.py needs Unicode property escapes (\p{Ll} etc.) in the slug +# pattern; Python's built-in `re` cannot compile those, only `regex` can. +regex>=2023.1.1 # export_quiz_pdf.py (graded-quiz -> test + answer-sheet PDF). Pure Python, # no system libraries. Only the PDF emission needs it; the page logic does not. fpdf2>=2.7,<3