Update Python version requirements and fix compatibility issues

- Bump minimum Python version from 3.11 to 3.13 across all apps
- Add Python 3.11-3.13 test matrix to CLI workflow
- Document Python 3.11+ requirement in .env.example
- Fix Starlette Broadcast removal with in-process fallback implementation
- Add _InProcessBroadcast class for tests when Starlette Broadcast is unavailable
- Refactor API key validators to read live settings instead of cached values
- Update database models with explicit
This commit is contained in:
oib
2026-02-24 18:41:08 +01:00
parent 24b3a37733
commit 825f157749
270 changed files with 66674 additions and 2027 deletions

View File

@@ -1,5 +1,6 @@
#!/bin/bash
# PostgreSQL Backup Script for AITBC
# Requirements: Python 3.11+, kubectl, pg_dump
# Usage: ./backup_postgresql.sh [namespace] [backup_name]
set -euo pipefail
@@ -29,8 +30,16 @@ warn() {
echo -e "${YELLOW}[$(date +'%Y-%m-%d %H:%M:%S')] WARNING:${NC} $1"
}
# Check dependencies
# Check dependencies and Python version
check_dependencies() {
# Check Python version
if ! python3.11 --version >/dev/null 2>&1; then
error "Python 3.11+ is required but not found"
exit 1
fi
log "Python version: $(python3.11 --version)"
if ! command -v kubectl &> /dev/null; then
error "kubectl is not installed or not in PATH"
exit 1