-
Notifications
You must be signed in to change notification settings - Fork 7k
[wheel] stop uploading python 3.9 wheels on release #58363
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
Conversation
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.
Code Review
This pull request correctly removes Python 3.9 from the wheel build process by updating PYTHON_VERSIONS. The corresponding test file is also updated to reflect this change. I've added several suggestions to the test file to reduce code duplication by consistently using the _SAMPLE_WHEELS constant. Applying these suggestions will improve the maintainability of the tests.
| wheels = [ | ||
| "ray-1.0.0-cp39-cp39-manylinux2014_x86_64", | ||
| "ray-1.0.0-cp39-cp39-manylinux2014_aarch64", | ||
| "ray-1.0.0-cp39-cp39-macosx_12_0_arm64", | ||
| "ray-1.0.0-cp39-cp39-win_amd64", | ||
| "ray-1.0.0-cp312-cp312-manylinux2014_x86_64", | ||
| "ray-1.0.0-cp312-cp312-manylinux2014_aarch64", | ||
| "ray-1.0.0-cp312-cp312-macosx_12_0_arm64", | ||
| "ray-1.0.0-cp312-cp312-win_amd64", | ||
| ] |
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.
| wheels = [ | ||
| "ray-1.0.0-cp39-cp39-manylinux2014_x86_64", | ||
| "ray-1.0.0-cp39-cp39-manylinux2014_aarch64", | ||
| "ray-1.0.0-cp39-cp39-macosx_12_0_arm64", | ||
| "ray-1.0.0-cp39-cp39-win_amd64", | ||
| "ray-1.0.0-cp312-cp312-manylinux2014_x86_64", | ||
| "ray-1.0.0-cp312-cp312-manylinux2014_aarch64", | ||
| "ray-1.0.0-cp312-cp312-macosx_12_0_arm64", | ||
| "ray-1.0.0-cp312-cp312-win_amd64", | ||
| ] |
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.
| keys = [ | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp39-cp39-manylinux2014_x86_64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp39-cp39-manylinux2014_aarch64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp39-cp39-macosx_12_0_arm64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp39-cp39-win_amd64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp312-cp312-manylinux2014_x86_64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp312-cp312-manylinux2014_aarch64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp312-cp312-macosx_12_0_arm64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp312-cp312-win_amd64.whl", | ||
| ] |
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.
| keys = [ | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp39-cp39-manylinux2014_x86_64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp39-cp39-manylinux2014_aarch64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp312-cp312-manylinux2014_x86_64.whl", | ||
| "releases/1.0.0/1234567/ray-1.0.0-cp312-cp312-manylinux2014_aarch64.whl", | ||
| ] |
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.
| wheels = [ | ||
| "ray-1.0.0-cp39-cp39-manylinux2014_x86_64.whl", | ||
| "ray-1.0.0-cp39-cp39-manylinux2014_aarch64.whl", | ||
| "ray-1.0.0-cp312-cp312-manylinux2014_x86_64.whl", | ||
| "ray-1.0.0-cp312-cp312-manylinux2014_aarch64.whl", | ||
| ] |
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.
| assert os.path.exists( | ||
| os.path.join(tmp_dir, "ray-1.0.0-123-cp39-cp39-manylinux2014_x86_64.whl") | ||
| os.path.join(tmp_dir, "ray-1.0.0-123-cp312-cp312-manylinux2014_x86_64.whl") | ||
| ) | ||
| assert os.path.exists( | ||
| os.path.join(tmp_dir, "ray-1.0.0-123-cp39-cp39-manylinux2014_aarch64.whl") | ||
| os.path.join(tmp_dir, "ray-1.0.0-123-cp312-cp312-manylinux2014_aarch64.whl") | ||
| ) |
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.
These assertions can be made more robust and maintainable by generating the expected wheel names from _SAMPLE_WHEELS and using a loop.
for wheel_base in _SAMPLE_WHEELS[:2]:
parts = wheel_base.split("-")
parts.insert(2, "123")
expected_wheel = "-".join(parts) + ".whl"
assert os.path.exists(os.path.join(tmp_dir, expected_wheel))python 3.9 is now out of the support window Signed-off-by: Lonnie Liu <[email protected]>
016739b to
dd5f321
Compare
author Lonnie Liu <[email protected]> 1762143156 -0800 committer harshit <[email protected]> 1762519796 +0000 parent c4f0c24 author Lonnie Liu <[email protected]> 1762143156 -0800 committer harshit <[email protected]> 1762519679 +0000 [wheel] stop uploading python 3.9 wheels on release (#58363) python 3.9 is now out of the support window all using python 3.12 wheel names for unit testing Signed-off-by: Lonnie Liu <[email protected]> [ci] stop verifying python 3.9 wheels (#58365) we will stop releasing them Signed-off-by: Lonnie Liu <[email protected]> [bazel] rename python runtime to py39 runtime (#58362) and move them into bazel dir. getting ready for python version upgrade Signed-off-by: Lonnie Liu <[email protected]> add template for async inf Signed-off-by: harshit <[email protected]> minor changes Signed-off-by: harshit <[email protected]> template for async inf Signed-off-by: harshit <[email protected]> fix tests Signed-off-by: harshit <[email protected]> fix tests Signed-off-by: harshit <[email protected]> fix tests Signed-off-by: harshit <[email protected]> fix tests Signed-off-by: harshit <[email protected]> fix tests Signed-off-by: harshit <[email protected]>
python 3.9 is now out of the support window all using python 3.12 wheel names for unit testing Signed-off-by: Lonnie Liu <[email protected]>
python 3.9 is now out of the support window all using python 3.12 wheel names for unit testing Signed-off-by: Lonnie Liu <[email protected]>
python 3.9 is now out of the support window all using python 3.12 wheel names for unit testing Signed-off-by: Lonnie Liu <[email protected]> Signed-off-by: Aydin Abiar <[email protected]>
python 3.9 is now out of the support window all using python 3.12 wheel names for unit testing Signed-off-by: Lonnie Liu <[email protected]>
python 3.9 is now out of the support window
all using python 3.12 wheel names for unit testing