From 441c82e1a0003884da29011ff12c0515ac206b86 Mon Sep 17 00:00:00 2001 From: Arrunabh Singh Date: Sun, 8 Nov 2026 18:18:43 +0530 Subject: [PATCH] fix: stop the dev extra from downgrading packaging The dev extra still pinned safety<3.0.0, but Safety was already dropped from .pre-commit-config.yaml ("Replaced Safety with pip-audit due to version 3.x breakdown") and nothing else runs it. safety 2.3.5 requires packaging<22, while DeepTutor requires packaging>=24.2. scripts/install_extras.py passes only the missing extras to pip, so pip does not weigh DeepTutor's own requirements. The documented setup step `python scripts/install_extras.py dev` therefore downgraded packaging from 26.3 to 21.3, broke deeptutor's and litellm's requirements (pip check), and held pytest at 8.4.2, because pytest 9 needs packaging>=24. Drop the unused pin from pyproject.toml and requirements/dev.txt, which must stay in sync. Co-Authored-By: Claude Opus 5.5 --- pyproject.toml | 2 +- requirements/dev.txt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index f292f641b..0b2d5cb0b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,7 +72,7 @@ graphrag = ["graphrag>=3.0.1,<4.0.0; python_version < '3.14'"] rag-lightrag = ["lightrag-hku==1.5.7"] rag-rerank = ["sentence-transformers>=3.0.0,<6.0.0; python_version < '3.14'"] guard = ["fastapi-guard>=8.1.1,<9.0.0"] -dev = ["deeptutor[server]=={version}", "pytest>=7.0.0", "pytest-asyncio>=0.23.0", "pre-commit>=3.0.0", "safety<3.0.0", "bandit>=1.8.0", "import-linter>=2.1.0,<3.0.0", "python-docx>=1.1.0", "openpyxl>=3.1.0", "python-pptx>=1.0.0", "pypdf>=4.0.0", "defusedxml>=0.7.1"] +dev = ["deeptutor[server]=={version}", "pytest>=7.0.0", "pytest-asyncio>=0.23.0", "pre-commit>=3.0.0", "bandit>=1.8.0", "import-linter>=2.1.0,<3.0.0", "python-docx>=1.1.0", "openpyxl>=3.1.0", "python-pptx>=1.0.0", "pypdf>=4.0.0", "defusedxml>=0.7.1"] all = ["deeptutor[full,math-animator,dev]=={version}"] audio-overview = ["deeptutor-audio-overview=={version}"] solve = ["deeptutor-solve=={version}"] diff --git a/requirements/dev.txt b/requirements/dev.txt index a70143626..dbb75f6db 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -12,7 +12,6 @@ pytest>=7.0.0 pytest-asyncio>=0.23.0 pre-commit>=3.0.0 -safety<3.0.0 bandit>=1.8.0 import-linter>=2.1.0,<3.0.0