Skip to content

Upgrade minimum Python requirement to 3.10#261

Open
MakeHorizont wants to merge 1 commit intomicrosoft:mainfrom
MakeHorizont:patch-1
Open

Upgrade minimum Python requirement to 3.10#261
MakeHorizont wants to merge 1 commit intomicrosoft:mainfrom
MakeHorizont:patch-1

Conversation

@MakeHorizont
Copy link
Copy Markdown

Summary

This PR updates the requires-python specification in pyproject.toml from >=3.9 to >=3.10.

The Problem

The project was failing to build using the uv package manager due to a dependency version mismatch. Specifically, gradio==5.35.0 requires Python 3.10 or higher, which conflicted with the project's metadata claiming support for Python 3.9.

Console error log:

x No solution found when resolving dependencies for split
| (python_full_version == '3.9.*'):
`-> Because the requested Python version (>=3.9) does not satisfy
Python>=3.10 and gradio==5.35.0 depends on Python>=3.10, we can
conclude that gradio==5.35.0 cannot be used.

Changes

  • Updated requires-python in pyproject.toml to >=3.10.
  • This ensures that uv and other installers correctly resolve dependencies for the current Gradio version used in the project.

Testing

Verified that the environment now resolves correctly with the active Python 3.10 interpreter, allowing the Gradio demo to start without resolution errors.

Fixed a dependency resolution error where gradio==5.35.0 requires Python >=3.10, but the project was configured for >=3.9.
This mismatch caused the following error during the uv environment setup:
"Because the requested Python version (>=3.9) does not satisfy Python>=3.10 and gradio==5.35.0 depends on Python>=3.10, we can conclude that gradio==5.35.0 cannot be used."
Updated requires-python in pyproject.toml to ensure compatibility with modern Gradio versions.
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