request-vm-on-golem 0.1.38__py3-none-any.whl → 0.1.39__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: request-vm-on-golem
3
- Version: 0.1.38
3
+ Version: 0.1.39
4
4
  Summary: VM on Golem Requestor CLI - Create and manage virtual machines on the Golem Network
5
5
  Keywords: golem,vm,cloud,decentralized,cli
6
6
  Author: Phillip Jensen
@@ -1,7 +1,7 @@
1
1
  requestor/__init__.py,sha256=OqSUAh1uZBMx7GW0MoSMg967PVdmT8XdPJx3QYjwkak,116
2
2
  requestor/api/main.py,sha256=7utCzFNbh5Ol-vsBWeSwT4lXeHD7zdA-GFZuS3rHMWc,2180
3
3
  requestor/cli/__init__.py,sha256=e3E4oEGxmGj-STPtFkQwg_qIWhR0JAiAQdw3G1hXciU,37
4
- requestor/cli/commands.py,sha256=1ETYhZJWOjzZXtHx4CAMvURX_icO5u-MCZ4e7iMkJag,26484
4
+ requestor/cli/commands.py,sha256=lQCjx6uJH0Gy1mtnByaOG1Szk3kER3Vc6ZpfJqUEcD8,27453
5
5
  requestor/config.py,sha256=O39E-Wa-ewqdC9XP5nvj3zkOs52mevvFMyQGtHaqANk,4668
6
6
  requestor/db/__init__.py,sha256=Gm5DfWls6uvCZZ3HGGnyRHswbUQdeA5OGN8yPwH0hc8,88
7
7
  requestor/db/sqlite.py,sha256=l5pWbx2qlHuar1N_a0B9tVnmumLJY1w5rp3yZ7jmsC0,4146
@@ -18,7 +18,7 @@ requestor/ssh/__init__.py,sha256=hNgSqJ5s1_AwwxVRyFjUqh_LTBpI4Hmzq0F-f_wXN9g,119
18
18
  requestor/ssh/manager.py,sha256=XhZjz7_BRPnmpu-zxqnGHLCq0b2JZ8Xr8zc1OlMNDkc,9355
19
19
  requestor/utils/logging.py,sha256=oFNpO8pJboYM8Wp7g3HOU4HFyBTKypVdY15lUiz1a4I,3721
20
20
  requestor/utils/spinner.py,sha256=PUHJdTD9jpUHur__01_qxXy87WFfNmjQbD_sLG-KlGo,2459
21
- request_vm_on_golem-0.1.38.dist-info/METADATA,sha256=atnrLF9Phe9qcOvZ0S8MJyLAdULykpPKgK_KUls-gew,9950
22
- request_vm_on_golem-0.1.38.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
- request_vm_on_golem-0.1.38.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
24
- request_vm_on_golem-0.1.38.dist-info/RECORD,,
21
+ request_vm_on_golem-0.1.39.dist-info/METADATA,sha256=O_wg13P3E6efitdI5Zxr2urcvky3RZEWpOfgzdzcWlg,9950
22
+ request_vm_on_golem-0.1.39.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
+ request_vm_on_golem-0.1.39.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
24
+ request_vm_on_golem-0.1.39.dist-info/RECORD,,
requestor/cli/commands.py CHANGED
@@ -14,7 +14,28 @@ except ImportError:
14
14
  # Python < 3.8
15
15
  import importlib_metadata as metadata
16
16
 
17
- from ..config import config, ensure_config
17
+ from ..config import config
18
+
19
+ # `ensure_config` is responsible for creating default configuration
20
+ # files and directories on first run. Some unit tests replace the
21
+ # entire `requestor.config` module with a lightweight stub that only
22
+ # provides a `config` object. Importing `ensure_config` in such
23
+ # scenarios would raise an ``ImportError`` which prevents the CLI
24
+ # module from being imported at all. To make the CLI resilient during
25
+ # tests we try to import ``ensure_config`` but fall back to a no-op
26
+ # when it isn't available.
27
+ try:
28
+ from ..config import ensure_config # type: ignore
29
+ except Exception: # pragma: no cover - used only when tests stub the module
30
+ def ensure_config() -> None:
31
+ """Fallback ``ensure_config`` used in tests.
32
+
33
+ When the real configuration module is replaced with a stub the
34
+ CLI should still be importable. The stub simply does nothing
35
+ which is sufficient for the unit tests exercising the CLI
36
+ command mappings.
37
+ """
38
+ pass
18
39
  from ..provider.client import ProviderClient
19
40
  from ..errors import RequestorError
20
41
  from ..utils.logging import setup_logger