Skip to content

Commit 6cf46b7

Browse files
authored
Merge pull request #1 from redis-developer/ps_fix_cluster_client_instantiation
Fixing RedisCluster client instantiation. Ruff autoformatting applied.
2 parents 39a34ad + ed28bf7 commit 6cf46b7

File tree

6 files changed

+712
-359
lines changed

6 files changed

+712
-359
lines changed

Makefile

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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
55
help:
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"
@@ -18,8 +18,8 @@ help:
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

4949
install-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 \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ A high-performance Redis load testing application built with Python and redis-py
1616

1717
### Prerequisites
1818

19-
- **Python 3.8+** with pip
19+
- **Python 3.10+** with pip
2020
- **Redis server** running (localhost:6379 by default)
2121
- **Redis Metrics Stack** (optional, for observability - separate repository)
2222

0 commit comments

Comments
 (0)