Skip to content

Add support for alpha versions in gradio cc publish#12033

Merged
freddyaboulton merged 2 commits intogradio-app:mainfrom
rerun-io:gijs/cc-alpha-versions
Oct 6, 2025
Merged

Add support for alpha versions in gradio cc publish#12033
freddyaboulton merged 2 commits intogradio-app:mainfrom
rerun-io:gijs/cc-alpha-versions

Conversation

@oxkitsune
Copy link
Contributor

Description

The custom component CLI failed to publish packages with alpha versions (e.g. 0.26.0-alpha.1) because gradio cc build outputs 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.

  • I did not use AI

@gradio-pr-bot
Copy link
Collaborator

gradio-pr-bot commented Oct 6, 2025

🪼 branch checks and previews

Name Status URL
Spaces ready! Spaces preview
Website building...
🦄 Changes failed! Workflow log

Install Gradio from this PR

pip install https://gradio-pypi-previews.s3.amazonaws.com/25a05d99e238d747aea0b81105d6ae5c197bd54c/gradio-5.49.0-py3-none-any.whl

Install 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

Copy link
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@oxkitsune
Copy link
Contributor Author

Thanks! Applied formatting in my latest commit

@freddyaboulton freddyaboulton enabled auto-merge (squash) October 6, 2025 18:05
@freddyaboulton freddyaboulton merged commit 01ce794 into gradio-app:main Oct 6, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gradio cc publish does not support alpha versions

3 participants