Skip to content

Commit 6e91b44

Browse files
committed
fix: raise grpcio lower bound to >=1.80.0 (3.9+); pin tts-api to v3.2.2
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).
1 parent ea7ee1d commit 6e91b44

2 files changed

Lines changed: 10 additions & 4 deletions

File tree

CLAUDE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,12 @@ Integration tests are excluded by default (`pytest.ini`). They require a running
5353
## Dependency Constraints
5454

5555
Python 3.8 requires tighter bounds:
56-
- `grpcio>=1.70.0,<1.71.0` (3.8) vs `grpcio>=1.70.0,<2.0` (3.9+)
56+
- `grpcio>=1.70.0,<1.71.0` (3.8) vs `grpcio>=1.80.0,<2.0` (3.9+)
5757

58-
`tts-api` is pinned to a GitHub tag: `git+https://github.com/techmo-pl/tts-api-python.git@v3.2.1`.
58+
The 3.9+ lower bound is `1.80.0` (not `1.70.0`) because grpcio skips `1.79.x` and environments
59+
combining tts-api with `livekit-agents>=1.5.1` fail at runtime with `1.78.x`.
60+
61+
`tts-api` is pinned to a GitHub tag: `git+https://github.com/techmo-pl/tts-api-python.git@v3.2.2`.
5962
Update the tag in `setup.py` when a new `tts-api-python` release is tagged.
6063

6164
Do not widen grpcio bounds without verifying Python 3.8 compatibility.

setup.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@
2828
install_requires=[
2929
# gRPC stubs come from tts-api; grpcio is also needed directly for channel creation.
3030
# grpcio 1.71.0 dropped Python 3.8; keep <1.71.0 for 3.8 compatibility.
31-
"grpcio>=1.70.0,<2.0.0; python_version>='3.9'",
31+
# grpcio 1.80.0 is the minimum for Python 3.9+: grpcio skips 1.79.x, and
32+
# environments combining tts-api with livekit-agents fail at runtime with 1.78.x
33+
# due to livekit-agents' transitive stubs requiring grpcio>=1.80.0.
34+
"grpcio>=1.80.0,<2.0.0; python_version>='3.9'",
3235
"grpcio>=1.70.0,<1.71.0; python_version=='3.8'",
3336
# Pre-built gRPC stubs for the Techmo TTS API.
34-
"tts-api @ git+https://github.com/techmo-pl/tts-api-python.git@v3.2.1",
37+
"tts-api @ git+https://github.com/techmo-pl/tts-api-python.git@v3.2.2",
3538
"lxml>=4.6.4",
3639
"numpy>=1.19.5",
3740
"sounddevice>=0.4.0",

0 commit comments

Comments
 (0)