11[build-system ]
2- # grpcio-tools 1.71.0+ ships protobuf 6.x which generates stubs requiring Python>=3.9.
3- # Keep <1.71.0 so generated stubs stay compatible with Python 3.8 (protobuf 5.29.x).
2+ # grpcio-tools is the BUILD-TIME stub generator only — its version is independent of
3+ # the runtime grpcio lower bound (>=1.80.0 for 3.9+) set in [project.dependencies].
4+ # Keep <1.71.0: grpcio-tools 1.71.0+ ships protobuf 6.x which generates stubs
5+ # requiring Python>=3.9, breaking our Python 3.8 support.
46requires = [" setuptools>=61" , " grpcio-tools>=1.70.0,<1.71.0" ]
57build-backend = " setuptools.build_meta"
68
@@ -14,7 +16,11 @@ requires-python = ">=3.8"
1416dependencies = [
1517 # Generated stubs embed GRPC_GENERATED_VERSION='1.70.0'; grpcio 1.71.0 dropped Python 3.8.
1618 " grpcio>=1.70.0,<1.71.0; python_version=='3.8'" ,
17- " grpcio>=1.70.0; python_version>='3.9'" ,
19+ # grpcio skips 1.79.x (jumps 1.78.0→1.80.0); environments combining tts-api with
20+ # livekit-agents>=1.5.1 fail at runtime with 1.78.x due to livekit's transitive stubs
21+ # requiring grpcio>=1.80.0. The generated stubs (GRPC_GENERATED_VERSION='1.70.0') are
22+ # forward-compatible with 1.80.0, so no stub regeneration is needed.
23+ " grpcio>=1.80.0; python_version>='3.9'" ,
1824 # Stubs generated with protobuf 5.29.x; protobuf 6.x requires Python>=3.9.
1925 " protobuf>=5.29.0,<6.0.0; python_version=='3.8'" ,
2026 " protobuf>=5.29.0; python_version>='3.9'" ,
0 commit comments