diff --git a/CHANGELOG.md b/CHANGELOG.md index 1cf5468..214f4c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,14 @@ The major version of this package tracks the TTS Service API major version. ## [Unreleased] +## [3.2.2] - 2026-04-01 + +### Fixed +- Raised `grpcio` lower bound to `>=1.80.0` for Python 3.9+ (grpcio skips 1.79.x; + grpcio 1.78.x causes runtime failures when combined with livekit-agents>=1.5.1). + No stub regeneration required — generated stubs (GRPC_GENERATED_VERSION='1.70.0') + are forward-compatible with grpcio 1.80.0. + ## [3.2.1+1] - 2026-03-30 ### Added diff --git a/pyproject.toml b/pyproject.toml index a4cdaf6..924ccc3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,8 @@ [build-system] -# grpcio-tools 1.71.0+ ships protobuf 6.x which generates stubs requiring Python>=3.9. -# Keep <1.71.0 so generated stubs stay compatible with Python 3.8 (protobuf 5.29.x). +# grpcio-tools is the BUILD-TIME stub generator only — its version is independent of +# the runtime grpcio lower bound (>=1.80.0 for 3.9+) set in [project.dependencies]. +# Keep <1.71.0: grpcio-tools 1.71.0+ ships protobuf 6.x which generates stubs +# requiring Python>=3.9, breaking our Python 3.8 support. requires = ["setuptools>=61", "grpcio-tools>=1.70.0,<1.71.0"] build-backend = "setuptools.build_meta" @@ -14,7 +16,11 @@ requires-python = ">=3.8" dependencies = [ # Generated stubs embed GRPC_GENERATED_VERSION='1.70.0'; grpcio 1.71.0 dropped Python 3.8. "grpcio>=1.70.0,<1.71.0; python_version=='3.8'", - "grpcio>=1.70.0; python_version>='3.9'", + # grpcio skips 1.79.x (jumps 1.78.0→1.80.0); environments combining tts-api with + # livekit-agents>=1.5.1 fail at runtime with 1.78.x due to livekit's transitive stubs + # requiring grpcio>=1.80.0. The generated stubs (GRPC_GENERATED_VERSION='1.70.0') are + # forward-compatible with 1.80.0, so no stub regeneration is needed. + "grpcio>=1.80.0; python_version>='3.9'", # Stubs generated with protobuf 5.29.x; protobuf 6.x requires Python>=3.9. "protobuf>=5.29.0,<6.0.0; python_version=='3.8'", "protobuf>=5.29.0; python_version>='3.9'", diff --git a/tts_service_api/VERSION.py b/tts_service_api/VERSION.py index 6fc79a1..1e3bed4 100644 --- a/tts_service_api/VERSION.py +++ b/tts_service_api/VERSION.py @@ -1 +1 @@ -__version__ = "3.2.1+1" +__version__ = "3.2.2"