From 6e91b441814961dd247448dbacec1c07e7b809c8 Mon Sep 17 00:00:00 2001 From: YASoftwareDev Date: Wed, 1 Apr 2026 09:58:43 +0200 Subject: [PATCH 1/3] fix: raise grpcio lower bound to >=1.80.0 (3.9+); pin tts-api to v3.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit grpcio skips 1.79.x (1.78.0 → 1.80.0). Environments using tts-client-python alongside livekit-agents>=1.5.1 fail at runtime with grpcio 1.78.x. Aligns with tts-api-python v3.2.2 which carries the same fix upstream (techmo-pl/tts-api-python#5). --- CLAUDE.md | 7 +++++-- setup.py | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index 8ab71f5..339b0cc 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,9 +53,12 @@ Integration tests are excluded by default (`pytest.ini`). They require a running ## Dependency Constraints Python 3.8 requires tighter bounds: -- `grpcio>=1.70.0,<1.71.0` (3.8) vs `grpcio>=1.70.0,<2.0` (3.9+) +- `grpcio>=1.70.0,<1.71.0` (3.8) vs `grpcio>=1.80.0,<2.0` (3.9+) -`tts-api` is pinned to a GitHub tag: `git+https://github.com/techmo-pl/tts-api-python.git@v3.2.1`. +The 3.9+ lower bound is `1.80.0` (not `1.70.0`) because grpcio skips `1.79.x` and environments +combining tts-api with `livekit-agents>=1.5.1` fail at runtime with `1.78.x`. + +`tts-api` is pinned to a GitHub tag: `git+https://github.com/techmo-pl/tts-api-python.git@v3.2.2`. Update the tag in `setup.py` when a new `tts-api-python` release is tagged. Do not widen grpcio bounds without verifying Python 3.8 compatibility. diff --git a/setup.py b/setup.py index 60184e4..97568b2 100644 --- a/setup.py +++ b/setup.py @@ -28,10 +28,13 @@ install_requires=[ # gRPC stubs come from tts-api; grpcio is also needed directly for channel creation. # grpcio 1.71.0 dropped Python 3.8; keep <1.71.0 for 3.8 compatibility. - "grpcio>=1.70.0,<2.0.0; python_version>='3.9'", + # grpcio 1.80.0 is the minimum for Python 3.9+: grpcio skips 1.79.x, and + # environments combining tts-api with livekit-agents fail at runtime with 1.78.x + # due to livekit-agents' transitive stubs requiring grpcio>=1.80.0. + "grpcio>=1.80.0,<2.0.0; python_version>='3.9'", "grpcio>=1.70.0,<1.71.0; python_version=='3.8'", # Pre-built gRPC stubs for the Techmo TTS API. - "tts-api @ git+https://github.com/techmo-pl/tts-api-python.git@v3.2.1", + "tts-api @ git+https://github.com/techmo-pl/tts-api-python.git@v3.2.2", "lxml>=4.6.4", "numpy>=1.19.5", "sounddevice>=0.4.0", From d6df7b20d21447c7aafcdeff27c75db061df5e3b Mon Sep 17 00:00:00 2001 From: YASoftwareDev Date: Wed, 1 Apr 2026 10:11:58 +0200 Subject: [PATCH 2/3] chore: bump version to 3.2.10; fix CI cache glob; normalize grpcio bound notation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - VERSION.py: 3.2.9 → 3.2.10 so the grpcio fix is traceable by version - test.yml: fix cache-dependency-glob from non-existent pyproject.toml to setup.py - CLAUDE.md: normalize <2.0 → <2.0.0 to match setup.py exactly --- .github/workflows/test.yml | 4 ++-- CLAUDE.md | 2 +- tts_client_python/VERSION.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 796e860..75a6276 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,7 +24,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v5 with: - cache-dependency-glob: "pyproject.toml" + cache-dependency-glob: "setup.py" - name: Run tests via tox run: | @@ -45,7 +45,7 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v5 with: - cache-dependency-glob: "pyproject.toml" + cache-dependency-glob: "setup.py" - name: Run tests via tox run: uvx --with "tox-uv>=1" tox -e py314 diff --git a/CLAUDE.md b/CLAUDE.md index 339b0cc..d0f5609 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -53,7 +53,7 @@ Integration tests are excluded by default (`pytest.ini`). They require a running ## Dependency Constraints Python 3.8 requires tighter bounds: -- `grpcio>=1.70.0,<1.71.0` (3.8) vs `grpcio>=1.80.0,<2.0` (3.9+) +- `grpcio>=1.70.0,<1.71.0` (3.8) vs `grpcio>=1.80.0,<2.0.0` (3.9+) The 3.9+ lower bound is `1.80.0` (not `1.70.0`) because grpcio skips `1.79.x` and environments combining tts-api with `livekit-agents>=1.5.1` fail at runtime with `1.78.x`. diff --git a/tts_client_python/VERSION.py b/tts_client_python/VERSION.py index 7107643..163b89e 100644 --- a/tts_client_python/VERSION.py +++ b/tts_client_python/VERSION.py @@ -1 +1 @@ -TTS_CLIENT_PYTHON_VERSION = "3.2.9" +TTS_CLIENT_PYTHON_VERSION = "3.2.10" From bc9f3f431ecc690c4ab35e9f2bb9362bfe7b439d Mon Sep 17 00:00:00 2001 From: YASoftwareDev Date: Wed, 1 Apr 2026 10:32:58 +0200 Subject: [PATCH 3/3] ci: retrigger checks after v3.2.2 tag became available