๐Ÿ›  Development Setup๏ƒ

This project uses Python 3.12+. Follow these instructions to set up your development environment.


Prerequisites๏ƒ

  1. 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
      
  2. Ensure pip is 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.

  1. Create a virtual environment:

python3 -m venv .venv

  1. Ensure pip is up-to-date:

  • On Ubuntu/macOS:

    source .venv/bin/activate
    
  • On Windows (PowerShell):

    .\.venv\Scripts\Activate.ps1
    
  1. 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.