Skip to content

Update python_requires#27354

Merged
tianleiwu merged 1 commit intomicrosoft:mainfrom
XXXXRT666:Fix-Setup
Feb 26, 2026
Merged

Update python_requires#27354
tianleiwu merged 1 commit intomicrosoft:mainfrom
XXXXRT666:Fix-Setup

Conversation

@XXXXRT666
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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",

@tianleiwu
Copy link
Copy Markdown
Contributor

/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline

@tianleiwu tianleiwu enabled auto-merge (squash) February 25, 2026 16:25
@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 4 pipeline(s).

@tianleiwu tianleiwu merged commit eb23be8 into microsoft:main Feb 26, 2026
88 checks passed
tianleiwu pushed a commit that referenced this pull request Mar 16, 2026
### Description
The requires-python field in the
[metadata](https://pypi.org/pypi/onnxruntime/json) 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
tianleiwu added a commit that referenced this pull request Mar 16, 2026
This cherry-picks the following commits for the release:

| Commit ID | PR Number | Commit Title |
|-----------|-----------|-------------|
| eb23be8 | #27354 | Update python_requires |
| d626b56 | #27479 | [QNN EP] Enable offline x64 compilation with
memhandle IO type |
| 60ce0e6 | #27607 | Use `_tpause` instead of `__builtin_ia32_tpause`
|
| 69feb84 | #27591 | Add PCI bus fallback for Linux GPU device
discovery in containerized environments |
| de92668 | #27650 | Revert "[QNN EP] Fix error messages being logged
as VERBOSE instead o… |
| 0f66526 | #27644 | [Plugin EP] Check for nullptr before
dereferencing |
| 929f73e | #27666 | Plugin EP: Fix bug that incorrectly assigned
duplicate MetDef IDs to fused nodes in different GraphViews |

---------

Co-authored-by: XXXXRT666 <157766680+XXXXRT666@users.noreply.github.com>
Co-authored-by: derdeljan-msft <derdeljan@microsoft.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Shogo Yamazaki <f9ifphmiz7i8akhowc8l5t1x9qp0lfu4@mocknen.net>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: baijumeswani <12852605+baijumeswani@users.noreply.github.com>
Co-authored-by: edgchen1 <18449977+edgchen1@users.noreply.github.com>
Co-authored-by: Baiju Meswani <bmeswani@microsoft.com>
Co-authored-by: Artur Wojcik <artur.wojcik@amd.com>
Co-authored-by: Adrian Lizarraga <adlizarraga@microsoft.com>
AVHopp added a commit to emdgroup/baybe that referenced this pull request Apr 1, 2026
Release `1.24.1` of `onnxruntime` dropped support for Python 3.10, see
https://github.com/microsoft/onnxruntime/releases/tag/v1.24.1.
Unfortunately, they did not properly update their metadata, which causes
issues when trying to install the package as `uv` *thinks* that python
3.10 is still supported for several versions that actually do not
support this anymore. The metadata was only fixed recently in
https://github.com/microsoft/onnxruntime/releases/tag/v1.24.4 (see
microsoft/onnxruntime#27354).

Although this does not cause issues when *updating* the lock file, it
creates issues when it has to be fully regenerated which e.g. happens in
#771 .

It is thus necessary to pin the used version of `onnxruntime` for python
3.10.
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.

2 participants