morphcloud 0.1.0__tar.gz → 0.1.2__tar.gz
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.
- {morphcloud-0.1.0 → morphcloud-0.1.2}/PKG-INFO +1 -1
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud/runtime.py +4 -3
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud.egg-info/PKG-INFO +1 -1
- {morphcloud-0.1.0 → morphcloud-0.1.2}/setup.py +2 -2
- {morphcloud-0.1.0 → morphcloud-0.1.2}/LICENSE +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/README.md +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud/__init__.py +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud/actions.py +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud/utils.py +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud.egg-info/SOURCES.txt +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud.egg-info/dependency_links.txt +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud.egg-info/entry_points.txt +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud.egg-info/requires.txt +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/morphcloud.egg-info/top_level.txt +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/pyproject.toml +0 -0
- {morphcloud-0.1.0 → morphcloud-0.1.2}/setup.cfg +0 -0
|
@@ -103,7 +103,7 @@ class Snapshot:
|
|
|
103
103
|
|
|
104
104
|
@classmethod
|
|
105
105
|
def _create_from_image(
|
|
106
|
-
|
|
106
|
+
cls, image_id: str, vcpus: int, memory: int, readiness_check: Optional[Dict[str, Any]] = None, **kwargs
|
|
107
107
|
) -> "Snapshot":
|
|
108
108
|
resp = cls.http.post(
|
|
109
109
|
f"{cls.base_url}/snapshot",
|
|
@@ -113,7 +113,7 @@ class Snapshot:
|
|
|
113
113
|
"memory": memory,
|
|
114
114
|
"readiness_check": readiness_check,
|
|
115
115
|
},
|
|
116
|
-
headers=cls.get_headers(),
|
|
116
|
+
headers=cls.get_headers(api_key=kwargs.get("api_key")),
|
|
117
117
|
)
|
|
118
118
|
resp.raise_for_status()
|
|
119
119
|
return cls(**resp.json())
|
|
@@ -385,7 +385,7 @@ class Runtime:
|
|
|
385
385
|
snapshot = next(
|
|
386
386
|
(
|
|
387
387
|
s
|
|
388
|
-
for s in Snapshot.list()
|
|
388
|
+
for s in Snapshot.list(kwargs.get("api_key"))
|
|
389
389
|
if s.digest == snapshot_digest
|
|
390
390
|
),
|
|
391
391
|
None,
|
|
@@ -421,6 +421,7 @@ class Runtime:
|
|
|
421
421
|
vcpus=vcpus,
|
|
422
422
|
memory=memory,
|
|
423
423
|
readiness_check=config.get("readiness_check"),
|
|
424
|
+
api_key=kwargs.get("api_key"),
|
|
424
425
|
)
|
|
425
426
|
snapshot_id = initial_snapshot.id
|
|
426
427
|
|
|
@@ -7,7 +7,7 @@ class PostInstallCommand(install):
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="morphcloud",
|
|
10
|
-
version="0.1.
|
|
10
|
+
version="0.1.2",
|
|
11
11
|
use_scm_version=True,
|
|
12
12
|
packages=find_packages(),
|
|
13
13
|
include_package_data=True,
|
|
@@ -38,4 +38,4 @@ setup(
|
|
|
38
38
|
cmdclass={
|
|
39
39
|
'install': PostInstallCommand,
|
|
40
40
|
},
|
|
41
|
-
)
|
|
41
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|