skypilot-nightly 1.0.0.dev20241122__py3-none-any.whl → 1.0.0.dev20241123__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- sky/__init__.py +2 -2
- sky/skylet/constants.py +11 -17
- sky/templates/kubernetes-ray.yml.j2 +1 -1
- {skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/METADATA +1 -1
- {skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/RECORD +9 -9
- {skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/LICENSE +0 -0
- {skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/WHEEL +0 -0
- {skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/entry_points.txt +0 -0
- {skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/top_level.txt +0 -0
sky/__init__.py
CHANGED
@@ -5,7 +5,7 @@ from typing import Optional
|
|
5
5
|
import urllib.request
|
6
6
|
|
7
7
|
# Replaced with the current commit when building the wheels.
|
8
|
-
_SKYPILOT_COMMIT_SHA = '
|
8
|
+
_SKYPILOT_COMMIT_SHA = '0b20d568ee1af454bfec3e50ff62d239f976e52d'
|
9
9
|
|
10
10
|
|
11
11
|
def _get_git_commit():
|
@@ -35,7 +35,7 @@ def _get_git_commit():
|
|
35
35
|
|
36
36
|
|
37
37
|
__commit__ = _get_git_commit()
|
38
|
-
__version__ = '1.0.0.
|
38
|
+
__version__ = '1.0.0.dev20241123'
|
39
39
|
__root_dir__ = os.path.dirname(os.path.abspath(__file__))
|
40
40
|
|
41
41
|
|
sky/skylet/constants.py
CHANGED
@@ -39,7 +39,6 @@ SKY_GET_PYTHON_PATH_CMD = (f'[ -s {SKY_PYTHON_PATH_FILE} ] && '
|
|
39
39
|
'which python3')
|
40
40
|
# Python executable, e.g., /opt/conda/bin/python3
|
41
41
|
SKY_PYTHON_CMD = f'$({SKY_GET_PYTHON_PATH_CMD})'
|
42
|
-
# Prefer SKY_UV_PIP_CMD, which is faster. TODO(cooper): remove all usages.
|
43
42
|
SKY_PIP_CMD = f'{SKY_PYTHON_CMD} -m pip'
|
44
43
|
# Ray executable, e.g., /opt/conda/bin/ray
|
45
44
|
# We need to add SKY_PYTHON_CMD before ray executable because:
|
@@ -51,10 +50,6 @@ SKY_RAY_CMD = (f'{SKY_PYTHON_CMD} $([ -s {SKY_RAY_PATH_FILE} ] && '
|
|
51
50
|
SKY_REMOTE_PYTHON_ENV_NAME = 'skypilot-runtime'
|
52
51
|
SKY_REMOTE_PYTHON_ENV = f'~/{SKY_REMOTE_PYTHON_ENV_NAME}'
|
53
52
|
ACTIVATE_SKY_REMOTE_PYTHON_ENV = f'source {SKY_REMOTE_PYTHON_ENV}/bin/activate'
|
54
|
-
# uv is used for venv and pip, much faster than python implementations.
|
55
|
-
SKY_UV_INSTALL_DIR = '"$HOME/.local/bin"'
|
56
|
-
SKY_UV_CMD = f'{SKY_UV_INSTALL_DIR}/uv'
|
57
|
-
SKY_UV_PIP_CMD = f'VIRTUAL_ENV={SKY_REMOTE_PYTHON_ENV} {SKY_UV_CMD} pip'
|
58
53
|
# Deleting the SKY_REMOTE_PYTHON_ENV_NAME from the PATH to deactivate the
|
59
54
|
# environment. `deactivate` command does not work when conda is used.
|
60
55
|
DEACTIVATE_SKY_REMOTE_PYTHON_ENV = (
|
@@ -153,16 +148,12 @@ CONDA_INSTALLATION_COMMANDS = (
|
|
153
148
|
'echo "Creating conda env with Python 3.10" && '
|
154
149
|
f'conda create -y -n {SKY_REMOTE_PYTHON_ENV_NAME} python=3.10 && '
|
155
150
|
f'conda activate {SKY_REMOTE_PYTHON_ENV_NAME};'
|
156
|
-
# Install uv for venv management and pip installation.
|
157
|
-
'which uv >/dev/null 2>&1 || '
|
158
|
-
'curl -LsSf https://astral.sh/uv/install.sh '
|
159
|
-
f'| UV_INSTALL_DIR={SKY_UV_INSTALL_DIR} sh;'
|
160
151
|
# Create a separate conda environment for SkyPilot dependencies.
|
161
152
|
f'[ -d {SKY_REMOTE_PYTHON_ENV} ] || '
|
162
153
|
# Do NOT use --system-site-packages here, because if users upgrade any
|
163
154
|
# packages in the base env, they interfere with skypilot dependencies.
|
164
155
|
# Reference: https://github.com/skypilot-org/skypilot/issues/4097
|
165
|
-
f'{
|
156
|
+
f'{SKY_PYTHON_CMD} -m venv {SKY_REMOTE_PYTHON_ENV};'
|
166
157
|
f'echo "$(echo {SKY_REMOTE_PYTHON_ENV})/bin/python" > {SKY_PYTHON_PATH_FILE};'
|
167
158
|
)
|
168
159
|
|
@@ -170,12 +161,15 @@ _sky_version = str(version.parse(sky.__version__))
|
|
170
161
|
RAY_STATUS = f'RAY_ADDRESS=127.0.0.1:{SKY_REMOTE_RAY_PORT} {SKY_RAY_CMD} status'
|
171
162
|
RAY_INSTALLATION_COMMANDS = (
|
172
163
|
'mkdir -p ~/sky_workdir && mkdir -p ~/.sky/sky_app;'
|
164
|
+
# Disable the pip version check to avoid the warning message, which makes
|
165
|
+
# the output hard to read.
|
166
|
+
'export PIP_DISABLE_PIP_VERSION_CHECK=1;'
|
173
167
|
# Print the PATH in provision.log to help debug PATH issues.
|
174
168
|
'echo PATH=$PATH; '
|
175
169
|
# Install setuptools<=69.5.1 to avoid the issue with the latest setuptools
|
176
170
|
# causing the error:
|
177
171
|
# ImportError: cannot import name 'packaging' from 'pkg_resources'"
|
178
|
-
f'{
|
172
|
+
f'{SKY_PIP_CMD} install "setuptools<70"; '
|
179
173
|
# Backward compatibility for ray upgrade (#3248): do not upgrade ray if the
|
180
174
|
# ray cluster is already running, to avoid the ray cluster being restarted.
|
181
175
|
#
|
@@ -189,10 +183,10 @@ RAY_INSTALLATION_COMMANDS = (
|
|
189
183
|
# latest ray port 6380, but those existing cluster launched before #1790
|
190
184
|
# that has ray cluster on the default port 6379 will be upgraded and
|
191
185
|
# restarted.
|
192
|
-
f'{
|
186
|
+
f'{SKY_PIP_CMD} list | grep "ray " | '
|
193
187
|
f'grep {SKY_REMOTE_RAY_VERSION} 2>&1 > /dev/null '
|
194
188
|
f'|| {RAY_STATUS} || '
|
195
|
-
f'{
|
189
|
+
f'{SKY_PIP_CMD} install --exists-action w -U ray[default]=={SKY_REMOTE_RAY_VERSION}; ' # pylint: disable=line-too-long
|
196
190
|
# In some envs, e.g. pip does not have permission to write under /opt/conda
|
197
191
|
# ray package will be installed under ~/.local/bin. If the user's PATH does
|
198
192
|
# not include ~/.local/bin (the pip install will have the output: `WARNING:
|
@@ -208,10 +202,10 @@ RAY_INSTALLATION_COMMANDS = (
|
|
208
202
|
f'which ray > {SKY_RAY_PATH_FILE} || exit 1; }}; ')
|
209
203
|
|
210
204
|
SKYPILOT_WHEEL_INSTALLATION_COMMANDS = (
|
211
|
-
f'{{ {
|
205
|
+
f'{{ {SKY_PIP_CMD} list | grep "skypilot " && '
|
212
206
|
'[ "$(cat ~/.sky/wheels/current_sky_wheel_hash)" == "{sky_wheel_hash}" ]; } || ' # pylint: disable=line-too-long
|
213
|
-
f'{{ {
|
214
|
-
f'{
|
207
|
+
f'{{ {SKY_PIP_CMD} uninstall skypilot -y; '
|
208
|
+
f'{SKY_PIP_CMD} install "$(echo ~/.sky/wheels/{{sky_wheel_hash}}/'
|
215
209
|
f'skypilot-{_sky_version}*.whl)[{{cloud}}, remote]" && '
|
216
210
|
'echo "{sky_wheel_hash}" > ~/.sky/wheels/current_sky_wheel_hash || '
|
217
211
|
'exit 1; }; ')
|
@@ -226,7 +220,7 @@ RAY_SKYPILOT_INSTALLATION_COMMANDS = (
|
|
226
220
|
# The ray installation above can be skipped due to the existing ray cluster
|
227
221
|
# for backward compatibility. In this case, we should not patch the ray
|
228
222
|
# files.
|
229
|
-
f'{
|
223
|
+
f'{SKY_PIP_CMD} list | grep "ray " | '
|
230
224
|
f'grep {SKY_REMOTE_RAY_VERSION} 2>&1 > /dev/null && '
|
231
225
|
f'{{ {SKY_PYTHON_CMD} -c '
|
232
226
|
'"from sky.skylet.ray_patches import patch; patch()" || exit 1; }; ')
|
@@ -403,7 +403,7 @@ available_node_types:
|
|
403
403
|
done
|
404
404
|
{{ conda_installation_commands }}
|
405
405
|
{{ ray_installation_commands }}
|
406
|
-
|
406
|
+
~/skypilot-runtime/bin/python -m pip install skypilot[kubernetes,remote]
|
407
407
|
touch /tmp/ray_skypilot_installation_complete
|
408
408
|
echo "=== Ray and skypilot installation completed ==="
|
409
409
|
|
{skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
sky/__init__.py,sha256=
|
1
|
+
sky/__init__.py,sha256=iM3vq3y59ysi5MEId5G35-3OCeuK0s6QqFeOZFw0TiM,5882
|
2
2
|
sky/admin_policy.py,sha256=hPo02f_A32gCqhUueF0QYy1fMSSKqRwYEg_9FxScN_s,3248
|
3
3
|
sky/authentication.py,sha256=pAdCT60OxxiXI9KXDyP2lQ9u9vMc6aMtq5Xi2h_hbdw,20984
|
4
4
|
sky/check.py,sha256=D3Y3saIFAYVvPxuBHnVgJEO0fUVDxgjwuMBaO-D778k,9472
|
@@ -194,7 +194,7 @@ sky/skylet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
194
194
|
sky/skylet/attempt_skylet.py,sha256=GZ6ITjjA0m-da3IxXXfoHR6n4pjp3X3TOXUqVvSrV0k,2136
|
195
195
|
sky/skylet/autostop_lib.py,sha256=JPDHmByuhoNYXSUHl-OnyeJUkOFWn7gDM1FrS7Kr3E8,4478
|
196
196
|
sky/skylet/configs.py,sha256=UtnpmEL0F9hH6PSjhsps7xgjGZ6qzPOfW1p2yj9tSng,1887
|
197
|
-
sky/skylet/constants.py,sha256=
|
197
|
+
sky/skylet/constants.py,sha256=2zCJpJAZMsqBUMeNtarJYe5768hiAC4EXJti0ENt24A,14539
|
198
198
|
sky/skylet/events.py,sha256=A09E7LmmwzcGrSG0n8K7d3EZ1ZJr1mmmzoGyhnArYJA,12303
|
199
199
|
sky/skylet/job_lib.py,sha256=Lfk3h-NLoi9mLo5-BPur43fUHVKMpa2hR5wEOCZGsB4,43846
|
200
200
|
sky/skylet/log_lib.py,sha256=tFJXRb-DClFhUh6wQ45cSBNtBkdOZCGlVfwDnqKFRgE,20394
|
@@ -228,7 +228,7 @@ sky/templates/jobs-controller.yaml.j2,sha256=Gu3ogFxFYr09VEXP-6zEbrCUOFo1aYxWEjA
|
|
228
228
|
sky/templates/kubernetes-ingress.yml.j2,sha256=73iDklVDWBMbItg0IexCa6_ClXPJOxw7PWz3leku4nE,1340
|
229
229
|
sky/templates/kubernetes-loadbalancer.yml.j2,sha256=IxrNYM366N01bbkJEbZ_UPYxUP8wyVEbRNFHRsBuLsw,626
|
230
230
|
sky/templates/kubernetes-port-forward-proxy-command.sh,sha256=HlG7CPBBedCVBlL9qv0erW_eKm6Irj0LFyaAWuJW_lc,3148
|
231
|
-
sky/templates/kubernetes-ray.yml.j2,sha256=
|
231
|
+
sky/templates/kubernetes-ray.yml.j2,sha256=OBHPdpaO0Q0OxkpaXQgByxrg58MKr-aXbMs2hS1oJEE,28003
|
232
232
|
sky/templates/kubernetes-ssh-jump.yml.j2,sha256=k5W5sOIMppU7dDkJMwPlqsUcb92y7L5_TVG3hkgMy8M,2747
|
233
233
|
sky/templates/lambda-ray.yml.j2,sha256=HyvO_tX2vxwSsc4IFVSqGuIbjLMk0bevP9bcxb8ZQII,4498
|
234
234
|
sky/templates/local-ray.yml.j2,sha256=FNHeyHF6nW9nU9QLIZceUWfvrFTTcO51KqhTnYCEFaA,1185
|
@@ -275,9 +275,9 @@ sky/utils/kubernetes/k8s_gpu_labeler_job.yaml,sha256=k0TBoQ4zgf79-sVkixKSGYFHQ7Z
|
|
275
275
|
sky/utils/kubernetes/k8s_gpu_labeler_setup.yaml,sha256=VLKT2KKimZu1GDg_4AIlIt488oMQvhRZWwsj9vBbPUg,3812
|
276
276
|
sky/utils/kubernetes/rsync_helper.sh,sha256=hyYDaYSNxYaNvzUQBzC8AidB7nDeojizjkzc_CTxycY,1077
|
277
277
|
sky/utils/kubernetes/ssh_jump_lifecycle_manager.py,sha256=RFLJ3k7MR5UN4SKHykQ0lV9SgXumoULpKYIAt1vh-HU,6560
|
278
|
-
skypilot_nightly-1.0.0.
|
279
|
-
skypilot_nightly-1.0.0.
|
280
|
-
skypilot_nightly-1.0.0.
|
281
|
-
skypilot_nightly-1.0.0.
|
282
|
-
skypilot_nightly-1.0.0.
|
283
|
-
skypilot_nightly-1.0.0.
|
278
|
+
skypilot_nightly-1.0.0.dev20241123.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
|
279
|
+
skypilot_nightly-1.0.0.dev20241123.dist-info/METADATA,sha256=alQVoYDEyzmyGT9l_iGHfED1X75i8-kpsgtSHmQf45M,20222
|
280
|
+
skypilot_nightly-1.0.0.dev20241123.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
281
|
+
skypilot_nightly-1.0.0.dev20241123.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
|
282
|
+
skypilot_nightly-1.0.0.dev20241123.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
|
283
|
+
skypilot_nightly-1.0.0.dev20241123.dist-info/RECORD,,
|
File without changes
|
{skypilot_nightly-1.0.0.dev20241122.dist-info → skypilot_nightly-1.0.0.dev20241123.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|