Skip to content

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

fix: python version

Bingxi Zhao (Frank)2d7024bab256
diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml
index 230dc0ff6..d8d4c287b 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.yml
+++ b/.github/ISSUE_TEMPLATE/bug_report.yml
@@ -74,7 +74,7 @@ body:
description: |
- DeepTutor Version: e.g., v0.5.0
- Operating System: e.g., macOS 14.0, Windows 11, Ubuntu 22.04
- - Python Version: e.g., 3.10.0
+ - Python Version: e.g., 3.11.0
- Node.js Version: e.g., 18.17.0
- Browser (if applicable): e.g., Chrome 120, Firefox 121
- Related Issues: e.g., #1
diff --git a/.github/dependabot.yml b/.github/dependabot.yml
deleted file mode 100644
index cf1be9afe..000000000
--- a/.github/dependabot.yml
+++ /dev/null
@@ -1,86 +0,0 @@
-# ============================================
-# Dependabot Configuration
-# ============================================
-# Automatically checks for dependency updates and security vulnerabilities
-# Creates pull requests to keep dependencies up-to-date
-#
-# Documentation: https://docs.github.com/en/code-security/dependabot
-# ============================================
-
-version: 2
-updates:
- # Python dependencies (pip)
- - package-ecosystem: "pip"
- directory: "/"
- schedule:
- interval: "weekly"
- day: "monday"
- time: "09:00"
- timezone: "Asia/Hong_Kong"
- open-pull-requests-limit: 5
- labels:
- - "dependencies"
- - "python"
- commit-message:
- prefix: "chore(deps)"
- groups:
- # Group minor and patch updates together
- python-minor-patch:
- patterns:
- - "*"
- update-types:
- - "minor"
- - "patch"
-
- # Node.js dependencies (npm) for web frontend
- - package-ecosystem: "npm"
- directory: "/web"
- schedule:
- interval: "weekly"
- day: "monday"
- time: "09:00"
- timezone: "Asia/Hong_Kong"
- open-pull-requests-limit: 5
- labels:
- - "dependencies"
- - "javascript"
- commit-message:
- prefix: "chore(deps)"
- groups:
- # Group minor and patch updates together
- npm-minor-patch:
- patterns:
- - "*"
- update-types:
- - "minor"
- - "patch"
-
- # GitHub Actions
- - package-ecosystem: "github-actions"
- directory: "/"
- schedule:
- interval: "weekly"
- day: "monday"
- time: "09:00"
- timezone: "Asia/Hong_Kong"
- open-pull-requests-limit: 3
- labels:
- - "dependencies"
- - "github-actions"
- commit-message:
- prefix: "chore(deps)"
-
- # Docker dependencies
- - package-ecosystem: "docker"
- directory: "/"
- schedule:
- interval: "weekly"
- day: "monday"
- time: "09:00"
- timezone: "Asia/Hong_Kong"
- open-pull-requests-limit: 2
- labels:
- - "dependencies"
- - "docker"
- commit-message:
- prefix: "chore(deps)"
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 213526d5e..47550cffb 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -33,7 +33,7 @@ jobs:
strategy:
fail-fast: false
matrix:
- python-version: ["3.10", "3.11", "3.12"]
+ python-version: ["3.11", "3.12"]
steps:
- name: Checkout code
@@ -126,7 +126,7 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "| Check | Status |" >> $GITHUB_STEP_SUMMARY
echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY
- echo "| Import check (3.10/3.11/3.12) | ${{ needs.import-check.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
+ echo "| Import check (3.11/3.12) | ${{ needs.import-check.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
echo "| Smoke tests (3.11) | ${{ needs.smoke-tests.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
- name: Fail if tests failed
diff --git a/README.md b/README.md
index 83a43633b..442e71af0 100644
--- a/README.md
+++ b/README.md
@@ -4,7 +4,7 @@
# DeepTutor: Towards Agentic Personalized Tutoring
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/SKILL.md b/SKILL.md
index b9c33db66..a2d35689b 100644
--- a/SKILL.md
+++ b/SKILL.md
@@ -14,7 +14,7 @@ Use this skill when the user wants to:
## Prerequisites
-- Python 3.10+
+- Python 3.11+
- DeepTutor installed: `pip install -e .` (core) or `pip install -e ".[server]"` (with web)
- Run `python scripts/start_tour.py` for first-time interactive setup (configures LLM, embedding, search providers and writes `.env`)
diff --git a/assets/README/README_AR.md b/assets/README/README_AR.md
index 40133a1aa..66bb72c68 100644
--- a/assets/README/README_AR.md
+++ b/assets/README/README_AR.md
@@ -4,7 +4,7 @@
# DeepTutor: نحو تعليم شخصي قائم على الوكلاء
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/assets/README/README_CN.md b/assets/README/README_CN.md
index 5e22290a2..c812fcf2f 100644
--- a/assets/README/README_CN.md
+++ b/assets/README/README_CN.md
@@ -4,7 +4,7 @@
# DeepTutor:迈向智能体驱动的个性化辅导
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/assets/README/README_ES.md b/assets/README/README_ES.md
index 3f169bd54..61508139f 100644
--- a/assets/README/README_ES.md
+++ b/assets/README/README_ES.md
@@ -4,7 +4,7 @@
# DeepTutor: Hacia un tutorizado personalizado basado en agentes
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/assets/README/README_FR.md b/assets/README/README_FR.md
index 4be46e7a9..26c26d4e4 100644
--- a/assets/README/README_FR.md
+++ b/assets/README/README_FR.md
@@ -4,7 +4,7 @@
# DeepTutor : vers un tutorat personnalisé fondé sur les agents
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/assets/README/README_HI.md b/assets/README/README_HI.md
index 6ef0c6a11..d5903744f 100644
--- a/assets/README/README_HI.md
+++ b/assets/README/README_HI.md
@@ -4,7 +4,7 @@
# DeepTutor: एजेंटिक व्यक्तिगत शिक्षण की ओर
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/assets/README/README_JA.md b/assets/README/README_JA.md
index 6eb9fa155..38841b045 100644
--- a/assets/README/README_JA.md
+++ b/assets/README/README_JA.md
@@ -4,7 +4,7 @@
# DeepTutor: エージェント型パーソナライズドチュータリングへ
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/assets/README/README_PT.md b/assets/README/README_PT.md
index 873ee8961..8bea31044 100644
--- a/assets/README/README_PT.md
+++ b/assets/README/README_PT.md
@@ -4,7 +4,7 @@
# DeepTutor: Rumo a um tutorado personalizado baseado em agentes
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/assets/README/README_RU.md b/assets/README/README_RU.md
index fd5bf307a..4bd5f6f80 100644
--- a/assets/README/README_RU.md
+++ b/assets/README/README_RU.md
@@ -4,7 +4,7 @@
# DeepTutor: к персонализированному обучению на основе агентов
-[![Python 3.10+](https://img.shields.io/badge/Python-3.10%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
+[![Python 3.11+](https://img.shields.io/badge/Python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white)](https://www.python.org/downloads/)
[![Next.js 16](https://img.shields.io/badge/Next.js-16-000000?style=flat-square&logo=next.js&logoColor=white)](https://nextjs.org/)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue?style=flat-square)](../../LICENSE)
[![GitHub release](https://img.shields.io/github/v/release/HKUDS/DeepTutor?style=flat-square&color=brightgreen)](https://github.com/HKUDS/DeepTutor/releases)
diff --git a/docs/guide/local-start.md b/docs/guide/local-start.md
index d60ff9c54..9d010a31e 100644
--- a/docs/guide/local-start.md
+++ b/docs/guide/local-start.md
@@ -5,7 +5,7 @@ DeepTutor now has a single local onboarding flow.
## Recommended flow
1. Clone the repository.
-2. Activate a Python 3.10+ environment.
+2. Activate a Python 3.11+ environment.
3. Install from source:
```bash
diff --git a/docs/guide/troubleshooting.md b/docs/guide/troubleshooting.md
index 06ce1d6eb..b422d9178 100644
--- a/docs/guide/troubleshooting.md
+++ b/docs/guide/troubleshooting.md
@@ -3,7 +3,7 @@
## Backend fails to start?
**Checklist**
-- Confirm Python version >= 3.10
+- Confirm Python version >= 3.11
- Confirm all dependencies installed: `pip install -r requirements.txt`
- Check if port 8001 is in use (configurable in `config/main.yaml`)
- Check `.env` file configuration
diff --git a/docs/zh/guide/local-start.md b/docs/zh/guide/local-start.md
index ed2099cbe..a01d8c0a7 100644
--- a/docs/zh/guide/local-start.md
+++ b/docs/zh/guide/local-start.md
@@ -5,7 +5,7 @@ DeepTutor 现在只有一套官方本机引导流程。
## 推荐流程
1. `git clone` 项目。
-2. 激活 Python 3.10+ 环境。
+2. 激活 Python 3.11+ 环境。
3. 从源码安装:
```bash
diff --git a/docs/zh/guide/troubleshooting.md b/docs/zh/guide/troubleshooting.md
index dc1f92e03..9be19db2c 100644
--- a/docs/zh/guide/troubleshooting.md
+++ b/docs/zh/guide/troubleshooting.md
@@ -6,7 +6,7 @@
| 问题 | 解决方案 |
|:--------|:---------|
-| 后端启动失败 | 检查 Python ≥ 3.10,验证 `.env` 配置 |
+| 后端启动失败 | 检查 Python ≥ 3.11,验证 `.env` 配置 |
| `npm: command not found` | 安装 Node.js: `conda install -c conda-forge nodejs` |
| 端口已被占用 | 终止进程:`lsof -i :8001` → `kill -9 <PID>` |
diff --git a/pyproject.toml b/pyproject.toml
index 94a12fdb6..e093984a4 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -9,7 +9,7 @@ build-backend = "setuptools.build_meta"
name = "deeptutor"
version = "1.0.0"
description = "An agent-native intelligent learning companion with multi-agent collaboration and RAG"
-requires-python = ">=3.10"
+requires-python = ">=3.11"
readme = "README.md"
license = {text = "Apache-2.0"}
dependencies = [
@@ -72,7 +72,7 @@ include = ["deeptutor*", "deeptutor_cli*"]
# ============================================
[tool.black]
line-length = 100
-target-version = ['py310', 'py311', 'py312']
+target-version = ['py311', 'py312']
include = '\.pyi?$'
extend-exclude = '''
/(
@@ -99,7 +99,7 @@ extend-exclude = '''
# ============================================
[tool.ruff]
# Target Python version
-target-version = "py310"
+target-version = "py311"
line-length = 100
[tool.ruff.lint]
@@ -235,7 +235,7 @@ addopts = [
# MyPy type checking configuration
# ============================================
[tool.mypy]
-python_version = "3.10"
+python_version = "3.11"
# Relaxed type checking for gradual adoption
pretty = false
show_error_context = false
diff --git a/requirements.txt b/requirements.txt
index 56efce015..2cc9bec90 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,7 +1,7 @@
# ============================================
# DeepTutor Python Dependencies (Runtime Bundle)
# ============================================
-# Python >= 3.10 required
+# Python >= 3.11 required
#
# For targeted installs:
# pip install -r requirements/cli.txt # CLI (full, with RAG + tools)