From 4761703a85fed68ad5ec1e4500b481090a07934f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Wed, 1 Apr 2026 09:57:59 +0200 Subject: [PATCH 1/2] fix: raise grpcio lower bound to >=1.80.0 for Python 3.9+ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit grpcio skips 1.79.x (releases jump 1.78.0 → 1.80.0). Environments combining tts-api with livekit-agents>=1.5.1 fail at runtime with grpcio 1.78.x because livekit's transitive gRPC stubs require >=1.80.0. No stub regeneration needed: the generated stubs (GRPC_GENERATED_VERSION ='1.70.0') are forward-compatible with grpcio 1.80.0. Bumps version to 3.2.2. --- CHANGELOG.md | 8 ++++++++ pyproject.toml | 6 +++++- tts_service_api/VERSION.py | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) 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..c7237ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,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" From 6590734deafb67a84c4afc64e4b4207361590207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20P=C4=99dzim=C4=85=C5=BC?= Date: Wed, 1 Apr 2026 10:11:55 +0200 Subject: [PATCH 2/2] docs: clarify build-system grpcio-tools is independent of runtime grpcio bound --- pyproject.toml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c7237ed..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"