11# Redis Python Test App - Makefile
2- .PHONY : help install-python39 install-deps-venv test test-connection build clean
2+ .PHONY : help install-python310 install-deps-venv test test-connection build clean
33
44# Default target
55help :
66 @echo " Redis Python Test App - Available Commands:"
77 @echo " "
88 @echo " 🚀 Development Commands:"
9- @echo " make install-python39 - Install Python 3.9 on Ubuntu/Debian systems"
9+ @echo " make install-python310 - Install Python 3.10 on Ubuntu/Debian systems"
1010 @echo " make install-deps-venv - Create virtual environment and install dependencies"
1111 @echo " make test - Run basic test (60 seconds)"
1212 @echo " make test-connection - Test Redis connection"
1818 @echo " make clean - Clean up Python cache and virtual environment"
1919 @echo " "
2020 @echo " 📋 Prerequisites:"
21- @echo " • Python 3.9 + installed (required for redis==7.0.0b1 )"
22- @echo " • Run 'make install-python39 ' to install Python 3.9 on Ubuntu/Debian"
21+ @echo " • Python 3.10 + installed (required for redis>=7.1.0 )"
22+ @echo " • Run 'make install-python310 ' to install Python 3.10 on Ubuntu/Debian"
2323 @echo " • Run 'make install-deps-venv' to set up virtual environment"
2424 @echo " • Redis Metrics Stack must be running (separate repository)"
2525 @echo " • Redis accessible at localhost:6379"
@@ -33,27 +33,27 @@ IMAGE_TAG ?= latest
3333# Development Commands
3434# ==============================================================================
3535
36- install-python39 : # # Install Python 3.9 on Ubuntu/Debian systems
37- @echo " 🐍 Installing Python 3.9 ..."
38- @if command -v python3.9 > /dev/null 2>&1 ; then \
39- echo " ✓ Python 3.9 already installed" ; \
40- python3.9 --version; \
36+ install-python310 : # # Install Python 3.10 on Ubuntu/Debian systems
37+ @echo " 🐍 Installing Python 3.10 ..."
38+ @if command -v python3.10 > /dev/null 2>&1 ; then \
39+ echo " ✓ Python 3.10 already installed" ; \
40+ python3.10 --version; \
4141 else \
42- echo " 📦 Installing Python 3.9 and required packages..." ; \
42+ echo " 📦 Installing Python 3.10 and required packages..." ; \
4343 sudo apt update; \
44- sudo apt install -y python3.9 python3.9 -venv python3.9 -dev python3.9 -distutils; \
45- echo " ✅ Python 3.9 installation complete" ; \
46- python3.9 --version; \
44+ sudo apt install -y python3.10 python3.10 -venv python3.10 -dev python3.10 -distutils; \
45+ echo " ✅ Python 3.10 installation complete" ; \
46+ python3.10 --version; \
4747 fi
4848
4949install-deps-venv : # # Create virtual environment and install dependencies
5050 @echo " 📦 Setting up Python virtual environment..."
5151 @if [ ! -d " venv" ]; then \
52- echo " 🔧 Creating virtual environment with Python 3.9 ..." ; \
53- if command -v python3.9 > /dev/null 2>&1 ; then \
54- python3.9 -m venv venv; \
52+ echo " 🔧 Creating virtual environment with Python 3.10 ..." ; \
53+ if command -v python3.10 > /dev/null 2>&1 ; then \
54+ python3.10 -m venv venv; \
5555 else \
56- echo " ❌ Python 3.9 not found. Run 'make install-python39 ' first." ; \
56+ echo " ❌ Python 3.10 not found. Run 'make install-python310 ' first." ; \
5757 exit 1; \
5858 fi ; \
5959 else \
0 commit comments