This project requires Python 3.12.x and manages dependencies using pyproject.toml
. Below are several methods to set up your environment.
Unix/macOS Instructions
- Ensure Python 3.12.x is installed:
python --version
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
source .venv/bin/activate
- Install dependencies:
pip install .
Windows Instructions
- Ensure Python 3.12.x is installed:
python --version
- Create a virtual environment:
python -m venv .venv
- Activate the virtual environment:
.venv\Scripts\activate
- Install dependencies:
pip install .
Using uv (Fast Python Package Installer)
pip install uv
- Create a virtual environment and install dependencies:
uv sync
This project includes DevContainer configuration for VS Code:
- Install the Dev Containers extension in VS Code
- Open the project in VS Code
- Click "Reopen in Container" when prompted or use the command palette (F1) and select "Dev Containers: Reopen in Container"
The container will automatically set up Python 3.12 and install all dependencies.
Build and run the project using Docker:
# Build the image
docker build -t moderne-cluster-build-logs:latest .