fix: make gradio optional dep to resolve typer version conflict#2
Merged
Conversation
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>
Author
|
Review: LGTM — Trent 🏗️ 变更正确: CI (Test Installation) PASS,依赖冲突解除。 ✅ AC verified: (GitHub bot identity 与 PR author 相同,无法 formal approve,结论在群里通知。) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
gradio==6.8.0from[project.dependencies]to[project.optional-dependencies].demoWhy
gradio==6.8.0requirestyper>=0.12,<1.0, butrussian-text-stresser→spacy==3.6.*requirestyper<0.10.0. This causesuv lockto fail with unsatisfiable dependencies.Gradio is only used in root-level demo scripts, not in
src/chatterbox/. Making it optional unblockschatterbox-api.Acceptance criteria
uv lock --upgradein chatterbox-api succeedsfrom chatterbox.tts import ChatterboxTTS🤖 Generated with Claude Code