From 1d7efb241da66a05d0c6d9e09725864c55b737c9 Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Sat, 28 Mar 2026 09:55:01 +0100 Subject: [PATCH] chore: update minimum Python version to 3.13.5 - Update prerequisites check in setup.sh - Update documentation in SETUP.md --- SETUP.md | 2 +- setup.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SETUP.md b/SETUP.md index c28aa6df..08f0f6d4 100644 --- a/SETUP.md +++ b/SETUP.md @@ -20,7 +20,7 @@ sudo ./setup.sh ## What the Setup Script Does 1. **Prerequisites Check** - - Verifies Python 3.8+, pip3, git, systemd + - Verifies Python 3.13.5+, pip3, git, systemd - Checks for root privileges 2. **Repository Setup** diff --git a/setup.sh b/setup.sh index 059f6072..0898080a 100755 --- a/setup.sh +++ b/setup.sh @@ -48,9 +48,9 @@ check_prerequisites() { command -v systemctl >/dev/null 2>&1 || error "systemctl is not available" # Check Python version - python_version=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}')") - if [ "$(printf '%s\n' "3.8" "$python_version" | sort -V | head -n1)" != "3.8" ]; then - error "Python 3.8+ is required, found $python_version" + python_version=$(python3 -c "import sys; print(f'{sys.version_info.major}.{sys.version_info.minor}.{sys.version_info.micro}')") + if [ "$(printf '%s\n' "3.13.5" "$python_version" | sort -V | head -n1)" != "3.13.5" ]; then + error "Python 3.13.5+ is required, found $python_version" fi success "Prerequisites check passed"