Skip to content

Commit c610df5

Browse files
authored
Add python_requires to package metadata (#23604)
### Description Support for python 3.8 and python 3.9 was dropped at 1.20. Declare the 3.10 requirement in metadata ### Motivation and Context Helps solvers like uv and poetry to build accurate solutions eg see python-poetry/poetry#10151, astral-sh/uv#11274
1 parent 2d27d68 commit c610df5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -784,6 +784,7 @@ def save_build_and_package_info(package_name, version_number, cuda_version, rocm
784784
download_url="https://github.com/microsoft/onnxruntime/tags",
785785
data_files=data_files,
786786
install_requires=install_requires,
787+
python_requires=">=3.10",
787788
keywords="onnx machine learning",
788789
entry_points={
789790
"console_scripts": [

0 commit comments

Comments
 (0)