Skip to content

Update python_requires#27354

Open
XXXXRT666 wants to merge 1 commit intomicrosoft:mainfrom
XXXXRT666:Fix-Setup
Open

Update python_requires#27354
XXXXRT666 wants to merge 1 commit intomicrosoft:mainfrom
XXXXRT666:Fix-Setup

Conversation

@XXXXRT666
Copy link
Contributor

@XXXXRT666 XXXXRT666 commented Feb 15, 2026

Description

The requires-python field in the metadata is currently set to python >= 3.10. However, since ONNX Runtime has dropped support for Python 3.10, this constraint is now inaccurate and may lead to dependency resolution issues in uv lock.

Related Commits: #26397

@XXXXRT666
Copy link
Contributor Author

XXXXRT666 commented Feb 15, 2026

[[package]]
name = "onnxruntime"
version = "1.20.1"
source = { registry = "https://pypi.org/simple" }
resolution-markers = [
    "python_full_version < '3.10'",
]

[[package]]
name = "onnxruntime"
version = "1.24.1"
source = { registry = "https://pypi.org/simple" }
resolution-markers = [
    "python_full_version >= '3.11'",
    "python_full_version == '3.10.*'",
]

Actually we don't have 1.24.1 wheels for python 3.10

@tianleiwu
Copy link
Contributor

onnxruntime does support build from source with python 3.10. python 3.10 end of life is October 2026.

It is also right that ORT 1.24 removed python 3.10 packages, as shown in

onnxruntime/setup.py

Lines 629 to 632 in 0df5dbc

"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",

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.

2 participants