-
Notifications
You must be signed in to change notification settings - Fork 139
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
feat: adding support for python3.11 #701
Conversation
4fd1290
to
cc27d45
Compare
I hope the pytests to be green |
I've added a few cases for 3.11 which didn't appear necessary for the CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it would be great to run a CI with python 3.11 to check that tests are alright !
55cd029
to
e11a6ad
Compare
Supporting python 3.11 is a bit more complicated as we need to update torch to 2.0.0 as well. See https://github.com/zama-ai/concrete-ml-internal/issues/3774#issuecomment-2135200722 |
@@ -25,7 +25,7 @@ do | |||
;; | |||
|
|||
"--all" ) | |||
VERSION_LIST="3.8 3.9 3.10" | |||
VERSION_LIST="3.8 3.9 3.10 3.11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new
@@ -108,6 +108,8 @@ then | |||
IS_CORRECT_PYTHON=1 | |||
elif [[ "${CHECK_VERSION}" == *"3.10"* ]]; then | |||
IS_CORRECT_PYTHON=1 | |||
elif [[ "${CHECK_VERSION}" == *"3.11"* ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
new
Sad for torch 2.0. So, do not hesitate to close this PR if it's not the right time, since indeed, there will be work for torch 2.0 integration. |
What about doing it now, @andrei-stoian-zama ? Do you need help here |
2237284
to
608c0d6
Compare
Reactivating this old PR |
bc3ffec
to
045bda6
Compare
Let's see if it's green |
ab040d7
to
92be561
Compare
Looks like it works, @zama-ai/ml ! I guess the 3.11 tests will only be launched when we merge, within the weekly build. It's worth merging this, it has been added a few times by users. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks !
92be561
to
8de97ea
Compare
Let me rebase this |
0379578
0379578
to
6e3d8da
Compare
6e3d8da
to
bc2393e
Compare
Has been rebased, let's wait it's green |
|
Coverage passed ✅Coverage details
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks a lot!
You may want, in a further PR, to change the default 3.8 python to a more recent 3.11 python for your tests. Maybe it would make the CI faster? You might also want to drop 3.8 support now, or wait EOL in October.
closes #https://github.com/zama-ai/concrete-ml-internal/issues/3774