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

Update pyproject.toml #22507

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Update pyproject.toml #22507

wants to merge 5 commits into from

Conversation

jchen351
Copy link
Contributor

Description

Update pyproject.toml and remove outdate python version support. Adding python313.

tianleiwu
tianleiwu previously approved these changes Oct 21, 2024
Copy link
Contributor

@tianleiwu tianleiwu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please merge main to fix build.

@jchen351
Copy link
Contributor Author

Black dosen't support py313.

@jchen351 jchen351 closed this Oct 21, 2024
@@ -43,7 +43,7 @@ jobs:
uses: actions/setup-python@v5
with:
# Version range or exact version of Python to use, using SemVer's version range syntax. Reads from .python-version if unset.
python-version: "3.10"
python-version: "3.12"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tried to change it to 3.13? Did it work?

pyproject.toml Outdated
@@ -2,7 +2,7 @@
line-length = 120
# NOTE: Do not extend the exclude list. Edit .lintrunner.toml instead
extend-exclude = "cmake|onnxruntime/core/flatbuffers/"
target-version = ["py37", "py38", "py39", "py310", "py311"]
target-version = ["py310","py311","py312","py313"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If py313 doesn't work, we don't have to enable it now.

@jchen351 jchen351 reopened this Oct 21, 2024
@snnn
Copy link
Member

snnn commented Oct 22, 2024

Why the linter runner found so many issues?

@snnn snnn requested a review from justinchuby October 22, 2024 04:20
@snnn
Copy link
Member

snnn commented Oct 22, 2024

@justinchuby , please help review.

@tianleiwu
Copy link
Contributor

Why the linter runner found so many issues?
I think it is because the target changes from py38 to py310. May be try run lintrunner -a to format files and add those changed files.

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.

3 participants