mirror of
https://github.com/gradio-app/gradio.git
synced 2025-04-06 12:30:29 +08:00
Fix hyphen-bug in gradio cc publish (#7229)
* Fix hyphen-bug * add changeset * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
59b9715f82
commit
6a7e98bfef
5
.changeset/spicy-rabbits-check.md
Normal file
5
.changeset/spicy-rabbits-check.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
feat:Fix hyphen-bug in gradio cc publish
|
@ -141,7 +141,7 @@ def _publish(
|
||||
]
|
||||
wheel_file = max(
|
||||
(p for p in distribution_files if p.suffix == ".whl"),
|
||||
key=lambda s: semantic_version.Version(str(s).split("-")[1]),
|
||||
key=lambda s: semantic_version.Version(str(s.name).split("-")[1]),
|
||||
)
|
||||
if not wheel_file:
|
||||
raise ValueError(
|
||||
|
Loading…
x
Reference in New Issue
Block a user