Add support for alpha versions in gradio cc publish#12033
Merged
freddyaboulton merged 2 commits intogradio-app:mainfrom Oct 6, 2025
Merged
Add support for alpha versions in gradio cc publish#12033freddyaboulton merged 2 commits intogradio-app:mainfrom
gradio cc publish#12033freddyaboulton merged 2 commits intogradio-app:mainfrom
Conversation
Collaborator
🪼 branch checks and previews
Install Gradio from this PR pip install https://gradio-pypi-previews.s3.amazonaws.com/25a05d99e238d747aea0b81105d6ae5c197bd54c/gradio-5.49.0-py3-none-any.whlInstall Gradio Python Client from this PR pip install "gradio-client @ git+https://github.com/gradio-app/gradio@25a05d99e238d747aea0b81105d6ae5c197bd54c#subdirectory=client/python"Install Gradio JS Client from this PR npm install https://gradio-npm-previews.s3.amazonaws.com/25a05d99e238d747aea0b81105d6ae5c197bd54c/gradio-client-1.19.1.tgz |
freddyaboulton
approved these changes
Oct 6, 2025
Collaborator
freddyaboulton
left a comment
There was a problem hiding this comment.
Looks good @oxkitsune ! The only thing off is the formatting. I tried to fix for you but couldn't. Could you format the code with ruff version 0.12.9? The following should work
ruff check --fix gradio test client
ruff format gradio test client
Contributor
Author
|
Thanks! Applied formatting in my latest commit |
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.

Description
The custom component CLI failed to publish packages with alpha versions (e.g.
0.26.0-alpha.1) becausegradio cc buildoutputs PEP 440 versions (e.g. 0.26.0a1).This change makes the CLI fall back to PEP 440 parsing when semantic version parsing fails.
Closes: #11999
AI Disclosure
We encourage the use of AI tooling in creating PRs, but the any non-trivial use of AI needs be disclosed. E.g. if you used Claude to write a first draft, you should mention that. Trivial tab-completion doesn't need to be disclosed. You should self-review all PRs, especially if they were generated with AI.