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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: morphcloud
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A CLI tool for creating, managing, and interacting with Morph Cloud Runtimes.
5
5
  Home-page: https://github.com/morph-labs/morphcloud
6
6
  Author: Morph Labs
@@ -103,7 +103,7 @@ class Snapshot:
103
103
 
104
104
  @classmethod
105
105
  def _create_from_image(
106
- cls, image_id: str, vcpus: int, memory: int, readiness_check: Optional[Dict[str, Any]] = None
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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: morphcloud
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: A CLI tool for creating, managing, and interacting with Morph Cloud Runtimes.
5
5
  Home-page: https://github.com/morph-labs/morphcloud
6
6
  Author: Morph Labs
@@ -7,7 +7,7 @@ class PostInstallCommand(install):
7
7
 
8
8
  setup(
9
9
  name="morphcloud",
10
- version="0.1.0",
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