๐ Development Setup๏
This project uses Python 3.12+. Follow these instructions to set up your development environment.
Prerequisites๏
Install Python 3.12 or higher.
On Ubuntu/Debian:
sudo apt update sudo apt install python3.12 python3.12-venv python3.12-dev
On macOS (using Homebrew):
brew install python@3.12
Ensure
pipis up-to-date:python3 -m pip install --upgrade pip
Setup Virtual Environment๏
This project adheres to PEP 668 (system Python is externally managed). Always use a virtual environment to avoid conflicts with system packages.
Create a virtual environment:
python3 -m venv .venv
Ensure
pipis up-to-date:
On Ubuntu/macOS:
source .venv/bin/activate
On Windows (PowerShell):
.\.venv\Scripts\Activate.ps1
Install the project in editable mode:
pip install -e .
Troubleshooting๏
If you encounter issues with dependencies, try:
pip install --force-reinstall -e .
If the virtual environment is corrupted, delete the .venv directory and recreate it:
rm -rf .venv python3 -m venv .venv source .venv/bin/activate pip install -e .
Docker Development (Optional)๏
If you prefer using Docker for development, see the Docker Setup Guide.