Skip to content

Commit

Permalink
Add python_requires to package metadata (#23604)
Browse files Browse the repository at this point in the history
### 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
  • Loading branch information
dimbleby authored and ashrit-ms committed Feb 11, 2025
1 parent dfee950 commit b3b2d49
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,7 @@ def save_build_and_package_info(package_name, version_number, cuda_version, rocm
download_url="https://github.com/microsoft/onnxruntime/tags",
data_files=data_files,
install_requires=install_requires,
python_requires=">=3.10",
keywords="onnx machine learning",
entry_points={
"console_scripts": [
Expand Down

0 comments on commit b3b2d49

Please sign in to comment.