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 8ab71f5..d0f5609 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.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", 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"