Skip to content

fix: make gradio optional dep to resolve typer version conflict#2

Merged
mylukin merged 1 commit into
masterfrom
fix/make-gradio-optional
Apr 2, 2026
Merged

fix: make gradio optional dep to resolve typer version conflict#2
mylukin merged 1 commit into
masterfrom
fix/make-gradio-optional

Conversation

@mylukin

@mylukin mylukin commented Apr 2, 2026

Copy link
Copy Markdown

Summary

  • Move gradio==6.8.0 from [project.dependencies] to [project.optional-dependencies].demo

Why

gradio==6.8.0 requires typer>=0.12,<1.0, but russian-text-stresserspacy==3.6.* requires typer<0.10.0. This causes uv lock to fail with unsatisfiable dependencies.

Gradio is only used in root-level demo scripts, not in src/chatterbox/. Making it optional unblocks chatterbox-api.

Acceptance criteria

  • uv lock --upgrade in chatterbox-api succeeds
  • Core TTS import works: from chatterbox.tts import ChatterboxTTS

🤖 Generated with Claude Code

gradio==6.8.0 requires typer>=0.12 which conflicts with
russian-text-stresser -> spacy==3.6.* -> typer<0.10.0.

gradio is only used in demo scripts (gradio_*.py, multilingual_app.py)
at the project root, not in the core src/chatterbox/ library.
Move it to [project.optional-dependencies].demo instead.

Co-Authored-By: Cody <cody.bot@easymeta.au>
@mylukin

mylukin commented Apr 2, 2026

Copy link
Copy Markdown
Author

Review: LGTM — Trent 🏗️

变更正确:gradio==6.8.0 仅用于根目录 demo 脚本(gradio_*.py),核心 TTS 库 src/chatterbox/ 未依赖,移入 optional deps 是正确分类。

CI (Test Installation) PASS,依赖冲突解除。

✅ AC verified:uv lock --upgrade 成功 + from chatterbox.tts import ChatterboxTTS 正常(见群内实测记录)。

(GitHub bot identity 与 PR author 相同,无法 formal approve,结论在群里通知。)

@mylukin mylukin merged commit 7305fef into master Apr 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant