skypilot-nightly 1.0.0.dev20241101__py3-none-any.whl → 1.0.0.dev20241103__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/clouds/kubernetes.py +2 -2
- sky/clouds/service_catalog/kubernetes_catalog.py +13 -1
- sky/skylet/constants.py +4 -6
- {skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.dist-info}/METADATA +1 -1
- {skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.dist-info}/RECORD +10 -10
- {skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.dist-info}/LICENSE +0 -0
- {skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.dist-info}/WHEEL +0 -0
- {skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.dist-info}/entry_points.txt +0 -0
- {skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.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 = '0f0008d41ecf4919b169541fb86a4ec60d1485ab'
|
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.dev20241103'
|
39
39
|
__root_dir__ = os.path.dirname(os.path.abspath(__file__))
|
40
40
|
|
41
41
|
|
sky/clouds/kubernetes.py
CHANGED
@@ -68,8 +68,8 @@ class Kubernetes(clouds.Cloud):
|
|
68
68
|
'Kubernetes.',
|
69
69
|
}
|
70
70
|
|
71
|
-
IMAGE_CPU = 'skypilot:cpu-ubuntu-2004'
|
72
|
-
IMAGE_GPU = 'skypilot:gpu-ubuntu-2004'
|
71
|
+
IMAGE_CPU = 'skypilot:custom-cpu-ubuntu-2004'
|
72
|
+
IMAGE_GPU = 'skypilot:custom-gpu-ubuntu-2004'
|
73
73
|
|
74
74
|
PROVISIONER_VERSION = clouds.ProvisionerVersion.SKYPILOT
|
75
75
|
STATUS_VERSION = clouds.StatusVersion.SKYPILOT
|
@@ -8,12 +8,15 @@ import typing
|
|
8
8
|
from typing import Dict, List, Optional, Set, Tuple
|
9
9
|
|
10
10
|
from sky import check as sky_check
|
11
|
+
from sky import sky_logging
|
11
12
|
from sky.adaptors import common as adaptors_common
|
12
13
|
from sky.clouds import Kubernetes
|
13
14
|
from sky.clouds.service_catalog import CloudFilter
|
14
15
|
from sky.clouds.service_catalog import common
|
15
16
|
from sky.provision.kubernetes import utils as kubernetes_utils
|
16
17
|
|
18
|
+
logger = sky_logging.init_logger(__name__)
|
19
|
+
|
17
20
|
if typing.TYPE_CHECKING:
|
18
21
|
import pandas as pd
|
19
22
|
else:
|
@@ -31,7 +34,16 @@ _image_df = common.read_catalog('kubernetes/images.csv',
|
|
31
34
|
|
32
35
|
def get_image_id_from_tag(tag: str, region: Optional[str]) -> Optional[str]:
|
33
36
|
"""Returns the image id from the tag."""
|
34
|
-
|
37
|
+
global _image_df
|
38
|
+
image_id = common.get_image_id_from_tag_impl(_image_df, tag, region)
|
39
|
+
if image_id is None:
|
40
|
+
# Refresh the image catalog and try again, if the image tag is not
|
41
|
+
# found.
|
42
|
+
logger.debug('Refreshing the image catalog and trying again.')
|
43
|
+
_image_df = common.read_catalog('kubernetes/images.csv',
|
44
|
+
pull_frequency_hours=0)
|
45
|
+
image_id = common.get_image_id_from_tag_impl(_image_df, tag, region)
|
46
|
+
return image_id
|
35
47
|
|
36
48
|
|
37
49
|
def is_image_tag_valid(tag: str, region: Optional[str]) -> bool:
|
sky/skylet/constants.py
CHANGED
@@ -44,9 +44,6 @@ SKY_PIP_CMD = f'{SKY_PYTHON_CMD} -m pip'
|
|
44
44
|
# We need to add SKY_PYTHON_CMD before ray executable because:
|
45
45
|
# The ray executable is a python script with a header like:
|
46
46
|
# #!/opt/conda/bin/python3
|
47
|
-
# When we create the skypilot-runtime venv, the previously installed ray
|
48
|
-
# executable will be reused (due to --system-site-packages), and that will cause
|
49
|
-
# running ray CLI commands to use the wrong python executable.
|
50
47
|
SKY_RAY_CMD = (f'{SKY_PYTHON_CMD} $([ -s {SKY_RAY_PATH_FILE} ] && '
|
51
48
|
f'cat {SKY_RAY_PATH_FILE} 2> /dev/null || which ray)')
|
52
49
|
# Separate env for SkyPilot runtime dependencies.
|
@@ -152,10 +149,11 @@ CONDA_INSTALLATION_COMMANDS = (
|
|
152
149
|
f'conda create -y -n {SKY_REMOTE_PYTHON_ENV_NAME} python=3.10 && '
|
153
150
|
f'conda activate {SKY_REMOTE_PYTHON_ENV_NAME};'
|
154
151
|
# Create a separate conda environment for SkyPilot dependencies.
|
155
|
-
# We use --system-site-packages to reuse the system site packages to avoid
|
156
|
-
# the overhead of installing the same packages in the new environment.
|
157
152
|
f'[ -d {SKY_REMOTE_PYTHON_ENV} ] || '
|
158
|
-
|
153
|
+
# Do NOT use --system-site-packages here, because if users upgrade any
|
154
|
+
# packages in the base env, they interfere with skypilot dependencies.
|
155
|
+
# Reference: https://github.com/skypilot-org/skypilot/issues/4097
|
156
|
+
f'{SKY_PYTHON_CMD} -m venv {SKY_REMOTE_PYTHON_ENV};'
|
159
157
|
f'echo "$(echo {SKY_REMOTE_PYTHON_ENV})/bin/python" > {SKY_PYTHON_PATH_FILE};'
|
160
158
|
)
|
161
159
|
|
{skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.dist-info}/RECORD
RENAMED
@@ -1,4 +1,4 @@
|
|
1
|
-
sky/__init__.py,sha256=
|
1
|
+
sky/__init__.py,sha256=nBXtc3ubXGSUD2bIPeP83PN_AmpHMuamC01nE-Lp04s,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
|
@@ -48,7 +48,7 @@ sky/clouds/cudo.py,sha256=UiY273Sln7VOYDYx93yWiWH_RLlOKZ2cm7mA31ld4A8,13094
|
|
48
48
|
sky/clouds/fluidstack.py,sha256=ufve4wXo_VmaEkxqTw2Jnt-DORBDRnqUPU1kB_mD89s,12383
|
49
49
|
sky/clouds/gcp.py,sha256=BjCehW3s0IYkRDdEEDm0vYWXQDpOV8KU98OMVRPnQNg,54676
|
50
50
|
sky/clouds/ibm.py,sha256=w8bo1EIY_YWYNu0fy-OpAyr6DZviU0tpIXUsiV01rVE,21423
|
51
|
-
sky/clouds/kubernetes.py,sha256=
|
51
|
+
sky/clouds/kubernetes.py,sha256=tYjQFatOQmgtRzMt3J54CxM0w2ZPQwAo5SyyYkBcW9Y,28657
|
52
52
|
sky/clouds/lambda_cloud.py,sha256=ExL_uixdFrF9qSL5JYXpaOXCZ9_eOA2q444kcmBHBXQ,12644
|
53
53
|
sky/clouds/oci.py,sha256=sHJrVhUhOKvJ-skbd2ZJ82IR63OXp43krmyPpM8BZqw,27084
|
54
54
|
sky/clouds/paperspace.py,sha256=4cjNua6jpuxmfidvLY4tSRX1oj_QaaHDinPMunGplyU,10868
|
@@ -65,7 +65,7 @@ sky/clouds/service_catalog/cudo_catalog.py,sha256=V_takvL6dWTGQaTLCEvjKIotCDPnMu
|
|
65
65
|
sky/clouds/service_catalog/fluidstack_catalog.py,sha256=21-cvrYEYTIi7n3ZNF2e7_0QX-PF4BkhlVJUWQOvKrY,5059
|
66
66
|
sky/clouds/service_catalog/gcp_catalog.py,sha256=v_5fsB3dB9oD8U7lBKnCe5ii6AUWEOiQjNarMnU_qLA,24379
|
67
67
|
sky/clouds/service_catalog/ibm_catalog.py,sha256=1iK0KvbI82U7sySb7chr-qm_16x3tTnZ6nIo7o76ouc,4493
|
68
|
-
sky/clouds/service_catalog/kubernetes_catalog.py,sha256=
|
68
|
+
sky/clouds/service_catalog/kubernetes_catalog.py,sha256=5ilQ-JK1ZS2EZp8GpCKok0H3S1fdI_aAznzIDWCY1NY,9110
|
69
69
|
sky/clouds/service_catalog/lambda_catalog.py,sha256=2R-ccu63BbdvO6X80MtxiniA-jLewXb6I0Ye1rYD9fY,5302
|
70
70
|
sky/clouds/service_catalog/oci_catalog.py,sha256=DQaP0iQlxZEHWJs862ilynUfUEQDIjCGltS7kSadgYo,8572
|
71
71
|
sky/clouds/service_catalog/paperspace_catalog.py,sha256=MOlfoGRChjEwMzu4nRAho8DrIwwUJ3QlRzrMA1RLqvE,3789
|
@@ -190,7 +190,7 @@ sky/skylet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
190
190
|
sky/skylet/attempt_skylet.py,sha256=GZ6ITjjA0m-da3IxXXfoHR6n4pjp3X3TOXUqVvSrV0k,2136
|
191
191
|
sky/skylet/autostop_lib.py,sha256=JPDHmByuhoNYXSUHl-OnyeJUkOFWn7gDM1FrS7Kr3E8,4478
|
192
192
|
sky/skylet/configs.py,sha256=UtnpmEL0F9hH6PSjhsps7xgjGZ6qzPOfW1p2yj9tSng,1887
|
193
|
-
sky/skylet/constants.py,sha256=
|
193
|
+
sky/skylet/constants.py,sha256=TL-O0ZoxA1ZeNvKXzzA_UyIMXsma7flbsDZ1N_o9dKg,14468
|
194
194
|
sky/skylet/events.py,sha256=A09E7LmmwzcGrSG0n8K7d3EZ1ZJr1mmmzoGyhnArYJA,12303
|
195
195
|
sky/skylet/job_lib.py,sha256=jqJ4D3UeG6fNMm8xPtdWclnrVHQb6WiRqb1nrBp8TPg,35200
|
196
196
|
sky/skylet/log_lib.py,sha256=Jyj3h2yMBlheFX53AabXEiPaKyCbu06hLEhay5_ZRN0,18734
|
@@ -274,9 +274,9 @@ sky/utils/kubernetes/k8s_gpu_labeler_job.yaml,sha256=k0TBoQ4zgf79-sVkixKSGYFHQ7Z
|
|
274
274
|
sky/utils/kubernetes/k8s_gpu_labeler_setup.yaml,sha256=VLKT2KKimZu1GDg_4AIlIt488oMQvhRZWwsj9vBbPUg,3812
|
275
275
|
sky/utils/kubernetes/rsync_helper.sh,sha256=hyYDaYSNxYaNvzUQBzC8AidB7nDeojizjkzc_CTxycY,1077
|
276
276
|
sky/utils/kubernetes/ssh_jump_lifecycle_manager.py,sha256=RFLJ3k7MR5UN4SKHykQ0lV9SgXumoULpKYIAt1vh-HU,6560
|
277
|
-
skypilot_nightly-1.0.0.
|
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.
|
277
|
+
skypilot_nightly-1.0.0.dev20241103.dist-info/LICENSE,sha256=emRJAvE7ngL6x0RhQvlns5wJzGI3NEQ_WMjNmd9TZc4,12170
|
278
|
+
skypilot_nightly-1.0.0.dev20241103.dist-info/METADATA,sha256=AgcbkZ5EGiJRw2TnR0vmtqgCNBvgu1wMNcY3B4OBucc,19708
|
279
|
+
skypilot_nightly-1.0.0.dev20241103.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
280
|
+
skypilot_nightly-1.0.0.dev20241103.dist-info/entry_points.txt,sha256=StA6HYpuHj-Y61L2Ze-hK2IcLWgLZcML5gJu8cs6nU4,36
|
281
|
+
skypilot_nightly-1.0.0.dev20241103.dist-info/top_level.txt,sha256=qA8QuiNNb6Y1OF-pCUtPEr6sLEwy2xJX06Bd_CrtrHY,4
|
282
|
+
skypilot_nightly-1.0.0.dev20241103.dist-info/RECORD,,
|
File without changes
|
{skypilot_nightly-1.0.0.dev20241101.dist-info → skypilot_nightly-1.0.0.dev20241103.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|