Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix(packaging): cap requires-python below 3.14 (#664)

Bingxi Zhao (Frank)cba24e927122
diff --git a/packaging/deeptutor-cli/pyproject.toml b/packaging/deeptutor-cli/pyproject.toml
index a727c5a4b..2f8d9385a 100644
--- a/packaging/deeptutor-cli/pyproject.toml
+++ b/packaging/deeptutor-cli/pyproject.toml
@@ -6,7 +6,10 @@ build-backend = "setuptools.build_meta"
name = "deeptutor-cli"
dynamic = ["version"]
description = "CLI-only distribution for DeepTutor"
-requires-python = ">=3.11"
+# Capped below 3.14 to match the main `deeptutor` package (issue #664): 3.14
+# lacks wheels for some compiled base deps (e.g. faiss-cpu), so pip falls back
+# to a source build that fails. Refuse 3.14 cleanly instead.
+requires-python = ">=3.11,<3.14"
readme = "README.md"
license = {text = "Apache-2.0"}
dependencies = [
diff --git a/pyproject.toml b/pyproject.toml
index 87e76e65b..da05b979e 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,7 +9,13 @@ build-backend = "setuptools.build_meta"
name = "deeptutor"
dynamic = ["version"]
description = "An agent-native intelligent learning companion with multi-agent collaboration and RAG"
-requires-python = ">=3.11"
+# Capped below 3.14 on purpose (issue #664): on 3.14 pip can't find wheels for
+# some compiled base deps (e.g. faiss-cpu) and silently backtracks into a
+# doomed source build that dies with "subprocess-exited-with-error". The heavy
+# RAG extras (graphrag, rag-lightrag) already carry a `python_version < '3.14'`
+# marker for the same reason; capping here makes pip refuse 3.14 with a
+# readable "Requires a different Python" message instead of a build failure.
+requires-python = ">=3.11,<3.14"
readme = "README.md"
license = {text = "Apache-2.0"}
dependencies = [