-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Prepare Python 3.11 support #31170
Prepare Python 3.11 support #31170
Conversation
8f42e7e
to
9cb75eb
Compare
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Some success building locally:
|
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
This reverts commit 9726e0a. Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
Signed-off-by: Kornel Csernai <[email protected]>
|
Thanks so much. LGTM! A few notes on test for other reviewers:
|
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.
Also - @csko could you update the PR discription (title) to reflect what we have left out in the PR and what have been included? Thanks!
Oh nvm, I think it's documented there.
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.
LGTM
`Linux Python 3.8`_ `MacOS Python 3.8`_ `Windows Python 3.8`_ | ||
`Linux Python 3.7`_ `MacOS Python 3.7`_ `Windows Python 3.7`_ | ||
`Linux Python 3.6`_ `MacOS Python 3.6`_ | ||
`Linux Python 3.11`_ `MacOS Python 3.10`_ `Windows Python 3.10`_ |
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.
can we avoid this "off by one" format? maybe just put 3.11 at the bottom (and label as experimental if necessary?)
Signed-off-by: Kornel Csernai <[email protected]>
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.
Ricky, the table doesn't seem to render anymore
Signed-off-by: Kornel Csernai <[email protected]>
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.
This looks good to me, but I did notice that the download link for the Python 3.11 wheels in the docs is currently not working. Will that be automatically fixed once the PR is merged or do we need to do anything else?
I checked that wheels are only uploaded after the PR is merged -- let's try to merge it :) |
After merging and the master build finished, the link is now indeed working 🎉 |
Preliminary PR for adding Python 3.11 support, mapping out various dependencies, fixing issues. ### Main changes - Upgrade cython to 0.29.32 - Add CI/CD steps for 3.11 wheel - Change cython code to not use `recursion_depth` - Update cloudpickle to latest - Use newer manylinux2014 which has python3.11 - Condition certain python packages in requirements.txt on <3.11 that don't yet have a 3.11 version ### Checklist: - cython - [x] remove deprecated `recursion_depth` - [x] exc_type cython/cython#4500 - [ ] package dependencies https://pyreadiness.org/3.11/ - [ ] llvmlite numba/llvmlite#869 - [ ] numba numba/numba#8304 - [ ] pyarrow - [ ] scikit-learn - [ ] pydantic - [x] cloudpickle - [x] upgrade cython to 0.29.32 - [ ] tensorflow tensorflow/tensorflow#58032 - [ ] torch pytorch/pytorch#86566 - [ ] miniconda conda/conda#11170 - [ ] `docker/base-deps/Dockerfile` - [x] claim to support 3.11 in setup.py - [ ] cicd - [ ] .buildkite/ - [ ] .buildkite/pipeline.build.yml - [ ] ci/ - [ ] ci/build/test-wheels.sh - [ ] ci/build/build-docker-images.py - [ ] release tests - [ ] docker/retag-lambda/python_versions.txt - [ ] download_wheels.sh - [ ] wheels - [ ] `python/build-wheel-macos.sh` - [ ] `python/build-wheel-windows.sh` - [ ] Tests - [ ] pytest ray/serve/tests - [ ] python python/ray/serve/examples/echo_full.py - [ ] bazel test //:core_worker_test - [ ] bazel test --build_tests_only //:all - [ ] //python/ray/tests:test_pydantic_serialization fastapi/fastapi#5048 - [ ] //python/ray/train:test_torch_utils - [ ] Documentation - [x] installation.rst Current status: Linux and mac wheels build in CICD. Docker images will come in a separate PR.
Preliminary PR for adding Python 3.11 support, mapping out various dependencies, fixing issues. ### Main changes - Upgrade cython to 0.29.32 - Add CI/CD steps for 3.11 wheel - Change cython code to not use `recursion_depth` - Update cloudpickle to latest - Use newer manylinux2014 which has python3.11 - Condition certain python packages in requirements.txt on <3.11 that don't yet have a 3.11 version ### Checklist: - cython - [x] remove deprecated `recursion_depth` - [x] exc_type cython/cython#4500 - [ ] package dependencies https://pyreadiness.org/3.11/ - [ ] llvmlite numba/llvmlite#869 - [ ] numba numba/numba#8304 - [ ] pyarrow - [ ] scikit-learn - [ ] pydantic - [x] cloudpickle - [x] upgrade cython to 0.29.32 - [ ] tensorflow tensorflow/tensorflow#58032 - [ ] torch pytorch/pytorch#86566 - [ ] miniconda conda/conda#11170 - [ ] `docker/base-deps/Dockerfile` - [x] claim to support 3.11 in setup.py - [ ] cicd - [ ] .buildkite/ - [ ] .buildkite/pipeline.build.yml - [ ] ci/ - [ ] ci/build/test-wheels.sh - [ ] ci/build/build-docker-images.py - [ ] release tests - [ ] docker/retag-lambda/python_versions.txt - [ ] download_wheels.sh - [ ] wheels - [ ] `python/build-wheel-macos.sh` - [ ] `python/build-wheel-windows.sh` - [ ] Tests - [ ] pytest ray/serve/tests - [ ] python python/ray/serve/examples/echo_full.py - [ ] bazel test //:core_worker_test - [ ] bazel test --build_tests_only //:all - [ ] //python/ray/tests:test_pydantic_serialization fastapi/fastapi#5048 - [ ] //python/ray/train:test_torch_utils - [ ] Documentation - [x] installation.rst Current status: Linux and mac wheels build in CICD. Docker images will come in a separate PR. Signed-off-by: tmynn <[email protected]>
Are there any plans for windows python 3.11 wheels? |
Why are these changes needed?
Preliminary PR for adding Python 3.11 support, mapping out various dependencies, fixing issues.
Main changes
recursion_depth
Checklist:
recursion_depth
docker/base-deps/Dockerfile
python/build-wheel-macos.sh
python/build-wheel-windows.sh
Current status:
Linux and mac wheels build in CICD. Docker images will come in a separate PR.
Related issue number
#27881
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.