Bump Python Version and Adopt UV | Generated by AI

Home 2026.05

Here’s a summary of everything changed:

Files modified:

  1. pyproject.toml
    • requires-python: “>=3.8” -> “>=3.9” (google-genai needs 3.9+, uv enforces this strictly)
    • pyright pythonVersion: “3.8” -> “3.9” (match)
  2. README.md
    • Added uv as recommended install method (uv sync)
    • Kept pip install -e . as fallback
  3. README-CN.md
    • Same uv addition in Chinese
  4. .github/workflows/unit_test.yml
    • Replaced actions/setup-python + pip with astral-sh/setup-uv + uv sync
    • All test commands use uv run python …
  5. .github/workflows/integration_test.yml
    • Same uv migration, removed extra pip install PyJWT numpy Pillow (now in lockfile)
  6. uv.lock (new)
    • Generated by uv lock, committed for reproducible installs

How it works now:

# Fresh clone + install uv sync # creates .venv, installs deps from lockfile uv run ww note # run any command via uv

# Or install globally as a tool uv tool install -e .

# pip still works as before pip install -e .

Key notes:


Back Donate