-
Notifications
You must be signed in to change notification settings - Fork 633
support python 3.12 and 3.13 #5304
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
base: master
Are you sure you want to change the base?
Conversation
'sudo sed -i "s/mesg n/tty -s \&\& mesg n/" ~/.profile;' | ||
'sudo sed -i "s/mesg n/tty -s \\&\\& mesg n/" ~/.profile;' |
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.
Starting in Python 3.12, there is a warning `.../sky/provision/docker_utils.py:333: SyntaxWarning: invalid escape sequence '&'.
This should be what's intended.
@romilbhardwaj do you want this in 0.9.0? |
0de0d37
to
d0e3ad0
Compare
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 @cg505! Can we run some smoke tests that test custom docker images?
sky/setup_files/dependencies.py
Outdated
if sys.version_info >= (3, 12): | ||
# The version of ray we use does not work with >= 3.12, so avoid clouds | ||
# that require ray. | ||
clouds_for_all -= {'ibm', 'docker', 'scp'} |
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 keep this at the top as a constant?
PYTHON_VERSION=3.11 /smoke-test |
PYTHON_VERSION=3.12 /smoke-test |
PYTHON_VERSION=3.13 /smoke-test |
PYTHON_VERSION=3.7 /smoke-test |
don't merge, need to look at smoke test failures |
Fix #3680.
The version of ray we are using does not support 3.12+, but on the client side we only need ray for the old provisioner. Exclude these clouds from
skypilot[all]
as well as vast due to a dependency issue (vast-ai/vast-sdk#6).Once you do this, everything seems to work okay. We should smoke test on the new Python versions though.
Tested (run the relevant ones):
bash format.sh
/smoke-test
(CI) orpytest tests/test_smoke.py
(local)/smoke-test -k test_name
(CI) orpytest tests/test_smoke.py::test_name
(local)/quicktest-core
(CI) orpytest tests/smoke_tests/test_backward_compat.py
(local)