From 1d192f8baeec349452b629143844100e2410d75b Mon Sep 17 00:00:00 2001 From: Amir Husayn Panahifar Date: Sat, 12 Sep 2026 15:34:10 +0330 Subject: [PATCH] feat(cli): add click as explicit dependency (typer>=0.26 vendors it) Keep uv and Python toolchain in a persistent host cache and bypass setup-* actions when present; persist uv download cache on the host. --- .gitea/workflows/ci.yml | 10 ++++++++++ pyproject.toml | 1 + 2 files changed, 11 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index dec1926..cd2807f 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -43,6 +43,11 @@ jobs: echo "python not found in toolcache" fi + - name: Persist uv download cache + run: | + mkdir -p /opt/hostedtoolcache/uv-cache + echo "UV_CACHE_DIR=/opt/hostedtoolcache/uv-cache" >> "$GITHUB_ENV" + - name: Install uv if: steps.uv.outputs.found != 'true' uses: astral-sh/setup-uv@v3 @@ -110,6 +115,11 @@ jobs: echo "python not found in toolcache" fi + - name: Persist uv download cache + run: | + mkdir -p /opt/hostedtoolcache/uv-cache + echo "UV_CACHE_DIR=/opt/hostedtoolcache/uv-cache" >> "$GITHUB_ENV" + - name: Install uv if: steps.uv.outputs.found != 'true' uses: astral-sh/setup-uv@v3 diff --git a/pyproject.toml b/pyproject.toml index 958de74..3004edb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -11,6 +11,7 @@ license = {text = "MIT"} authors = [{name = "Amir Husayn Panahifar", email = "ahp@panahifar.ir"}] dependencies = [ + "click>=8.1", "typer>=0.12", "rich>=13.0", "structlog>=24.0",