Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Python :: 3.7 Python :: 3.8 Python :: 3.9 from pypi metadata #22993

Open
aeroevan opened this issue Dec 3, 2024 · 2 comments
Open

Remove Python :: 3.7 Python :: 3.8 Python :: 3.9 from pypi metadata #22993

aeroevan opened this issue Dec 3, 2024 · 2 comments

Comments

@aeroevan
Copy link

aeroevan commented Dec 3, 2024

Describe the issue

When upgrading a python 3.9 environment using poetry to onnxruntime 1.20.x, the install now fails due to the missing 3.9 wheels.

I believe this is due to the metadata claiming to still support 3.9, but this could also be a poetry bug

To reproduce

Using a pyproject.toml with:

package-mode = false

[tool.poetry.dependencies]
python = "~3.9"
onnxruntime = "*"

[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"

fails to install with poetry install

Urgency

No response

Platform

Linux

OS Version

Fedora 40

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.20.1

ONNX Runtime API

Python

Architecture

X64

Execution Provider

Default CPU

Execution Provider Library Version

No response

@tianleiwu
Copy link
Contributor

It's right that python should be 3.10~3.13 for ORT 1.20.x:
https://pypi.org/project/onnxruntime/#files

You can use older version of ORT if you want to use in python 3.9.

I am not expert of pypi. Is pypi metadata automatically generated or manually configured?

@aeroevan
Copy link
Author

I believe the pypi metadata is just sourced from https://github.com/microsoft/onnxruntime/blob/main/setup.py#L540

tianleiwu added a commit that referenced this issue Dec 17, 2024
)

### Description

* Update python version metadata to be in sync with latest python
packages (onnxruntime, onnxruntime-gpu and onnxruntime-qnn).
* Update black format target-version to 3.10, and use lintrunner to
format all files.
* Update the lintrunner installation command line to be consistent.
* Include `requirements-lintrunner.txt` in `requirements-dev.txt` to
avoid duplicated settings.

### Motivation and Context

#22993

Python support by numpy:
https://numpy.org/neps/nep-0029-deprecation_policy.html#drop-schedule
```
On Apr 05, 2024 drop support for Python 3.9
On Apr 04, 2025 drop support for Python 3.10
```
guschmue pushed a commit that referenced this issue Dec 20, 2024
)

### Description

* Update python version metadata to be in sync with latest python
packages (onnxruntime, onnxruntime-gpu and onnxruntime-qnn).
* Update black format target-version to 3.10, and use lintrunner to
format all files.
* Update the lintrunner installation command line to be consistent.
* Include `requirements-lintrunner.txt` in `requirements-dev.txt` to
avoid duplicated settings.

### Motivation and Context

#22993

Python support by numpy:
https://numpy.org/neps/nep-0029-deprecation_policy.html#drop-schedule
```
On Apr 05, 2024 drop support for Python 3.9
On Apr 04, 2025 drop support for Python 3.10
```
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

No branches or pull requests

2 participants