From 63f0c3a3cbdd4c6fe0c1a78d22016c0df75682a2 Mon Sep 17 00:00:00 2001 From: syntaxsdev Date: Thu, 2 Oct 2025 00:28:56 -0400 Subject: [PATCH] fix: typer versioning breaking change --- appwrite_lab/cli/list_menu.py | 9 ++++++++- pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/appwrite_lab/cli/list_menu.py b/appwrite_lab/cli/list_menu.py index e0a7dc8..899e701 100644 --- a/appwrite_lab/cli/list_menu.py +++ b/appwrite_lab/cli/list_menu.py @@ -3,7 +3,14 @@ from appwrite_lab._orchestrator import get_template_versions import typer -list_menu = typer.Typer(name="list", rich_markup_mode=typer.rich_utils.MARKUP_MODE_RICH) +try: + from typer.rich_utils import MARKUP_MODE_RICH + + RICH_MODE = MARKUP_MODE_RICH +except Exception: + RICH_MODE = "rich" + +list_menu = typer.Typer(name="list", rich_markup_mode=RICH_MODE) labs = get_global_labs() diff --git a/pyproject.toml b/pyproject.toml index a4f178a..70cf0ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "appwrite-lab" -version = "0.1.4" +version = "0.1.5" description = "Zero-click Appwrite test environments." readme = "README.md" requires-python = ">=3.11"