From 0fe47a80be3c4ebeed34853795bd0136f4c74de9 Mon Sep 17 00:00:00 2001 From: Paul Clinton Date: Wed, 10 Jun 2026 15:46:44 +0530 Subject: [PATCH] fix: relax beautifulsoup4 pin to support Frappe v16 (#198) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FAC pinned beautifulsoup4~=4.12.2, which locks to the 4.12.* series. Frappe v15 requires ~=4.12.2 but Frappe v16 requires ~=4.13.5, so installing FAC on a v16 bench resolved bs4 down to 4.12.x — downgrading a dependency the rest of the bench expected at 4.13.x. Relax to beautifulsoup4>=4.12,<5 so the constraint spans both Frappe v15 (4.12.x) and v16 (4.13.x) without forcing a downgrade. FAC uses bs4 only as a transitive convenience and does not depend on any 4.12-vs-4.13 behavior. Fixes #198 (Observation 1). Observation 2 (optional analytics extras) is a larger packaging change tracked separately. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index f4734c4..0a9e266 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,7 @@ dependencies = [ "chardet>=5.1.0,<6.0.0", # Compatible with frappe ~=5.1.0 requirement "pymupdf>=1.24.0", # PDF page rendering for Ollama vision OCR "python-magic>=0.4.27", - "beautifulsoup4~=4.12.2", # Compatible with frappe ~=4.12.2 requirement + "beautifulsoup4>=4.12,<5", # Span Frappe v15 (~=4.12.2) and v16 (~=4.13.5) without forcing a downgrade ] [project.optional-dependencies]