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

Run tests also on python 3.10 #50

Merged
merged 1 commit into from
Aug 2, 2022
Merged

Run tests also on python 3.10 #50

merged 1 commit into from
Aug 2, 2022

Conversation

loostrum
Copy link
Member

Closes #49

@sonarcloud
Copy link

sonarcloud bot commented Oct 25, 2021

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@egpbos
Copy link
Member

egpbos commented Dec 14, 2021

This is blocked on onnxruntime releasing a pypi package for 3.10, see microsoft/onnxruntime#9782.

@elboyran
Copy link
Contributor

Are we still considering 3.10?

@loostrum
Copy link
Member Author

Patrick's comment still applies I think. We should support 3.10 when we can (which just means running the tests, there's nothing breaking in 3.10)

@sonarcloud
Copy link

sonarcloud bot commented Jan 18, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@egpbos
Copy link
Member

egpbos commented Jan 25, 2022

FYI, I rebased on main.

@egpbos
Copy link
Member

egpbos commented Jul 28, 2022

onnxruntime 1.12 is out and it has a 3.10 pypi release! I rebased this branch on main, hope the tests pass now 🤞

@egpbos
Copy link
Member

egpbos commented Jul 28, 2022

Ok, the whole thing seems to pass now, but still have to remove three commits that are no longer necessary, will rebase now...

@egpbos egpbos marked this pull request as ready for review July 28, 2022 18:21
@egpbos egpbos requested a review from elboyran July 28, 2022 18:22
@egpbos
Copy link
Member

egpbos commented Jul 29, 2022

I have no idea why linting fails now, because I didn't change any linted code. I think it should also be an issue on the main branch right now, but haven't seen it there.

@egpbos egpbos requested a review from cwmeijer August 1, 2022 11:59
@elboyran
Copy link
Contributor

elboyran commented Aug 2, 2022

I have no idea why linting fails now, because I didn't change any linted code. I think it should also be an issue on the main branch right now, but haven't seen it there.

I have also added a sentence at the Tutorials readme and the linting failed :-(. @egpbos , any ideas?

@egpbos
Copy link
Member

egpbos commented Aug 2, 2022

Ok, pylint uses astroid and astroid crashes (for some reason) with a recursion depth error. This error was fixed in astroid 2.12.2 (the most recent version), but pylint has set an upper limit on its astroid requirement with astroid<=2.12.0-dev0,>=2.11.6, so it won't install the right version.

I manually installed the more recent astroid version on my laptop and I see no linting errors (except actually a new one that is only present for Python 3.10, but unrelated to this PR... let's fix that when we switch fully to 3.10 for CI default). So I think we can safely merge this now.

We could in theory add a manual install step to install the latest astroid manually on CI, but I think it would be better to just wait for the upstream fix and be careful in the meantime (i.e.: check linting on laptop).

So, in short: ready to merge :)

@egpbos
Copy link
Member

egpbos commented Aug 2, 2022

Ah, yeah, we just have to wait for the next pylint version for this issue to resolve itself, the dependency was already updated in pylint: pylint-dev/pylint#7153

@egpbos egpbos enabled auto-merge August 2, 2022 14:09
@egpbos
Copy link
Member

egpbos commented Aug 2, 2022

@elboyran once you give an approving review, the PR will be merged.

@egpbos egpbos merged commit 7d6c9d2 into main Aug 2, 2022
@elboyran
Copy link
Contributor

elboyran commented Aug 2, 2022

@egpbos how to update the badge of supported versions?

@elboyran elboyran deleted the 49-python3.10 branch August 2, 2022 14:17
@egpbos
Copy link
Member

egpbos commented Aug 2, 2022

That should go automatically after a new release. The badge shows versions on PyPI.

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.

Support python 3.10
3 participants