ominfra 0.0.0.dev35__py3-none-any.whl → 0.0.0.dev37__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.
@@ -163,6 +163,11 @@ def check_non_empty_str(v: ta.Optional[str]) -> str:
163
163
  return v
164
164
 
165
165
 
166
+ def check_state(v: bool, msg: str = 'Illegal state') -> None:
167
+ if not v:
168
+ raise ValueError(msg)
169
+
170
+
166
171
  ########################################
167
172
  # ../../../../omlish/lite/json.py
168
173
 
@@ -246,6 +246,11 @@ def check_non_empty_str(v: ta.Optional[str]) -> str:
246
246
  return v
247
247
 
248
248
 
249
+ def check_state(v: bool, msg: str = 'Illegal state') -> None:
250
+ if not v:
251
+ raise ValueError(msg)
252
+
253
+
249
254
  ########################################
250
255
  # ../../../omlish/lite/json.py
251
256
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ominfra
3
- Version: 0.0.0.dev35
3
+ Version: 0.0.0.dev37
4
4
  Summary: ominfra
5
5
  Author: wrmsr
6
6
  License: BSD-3-Clause
@@ -12,8 +12,8 @@ Classifier: Operating System :: OS Independent
12
12
  Classifier: Operating System :: POSIX
13
13
  Requires-Python: ~=3.12
14
14
  License-File: LICENSE
15
- Requires-Dist: omdev ==0.0.0.dev35
16
- Requires-Dist: omlish ==0.0.0.dev35
15
+ Requires-Dist: omdev ==0.0.0.dev37
16
+ Requires-Dist: omlish ==0.0.0.dev37
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko ~=3.5 ; extra == 'all'
19
19
  Requires-Dist: asyncssh ~=2.17 ; (python_version < "3.13") and extra == 'all'
@@ -7,7 +7,7 @@ ominfra/clouds/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  ominfra/clouds/aws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
8
  ominfra/clouds/aws/auth.py,sha256=EW3lK1U0hnjXkTn1KWJeuv9GG0ibbKdvgLD0P6HJtwo,5502
9
9
  ominfra/deploy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- ominfra/deploy/_executor.py,sha256=HN1ECyB1UYdCFaXgrMpvsRwGm_niYkmSG034IEjO-W0,32398
10
+ ominfra/deploy/_executor.py,sha256=3mUpHetUu9POcV3nLu8NlVnK4-jzRYHVnnT8uyZPfSA,32506
11
11
  ominfra/deploy/configs.py,sha256=qi0kwT7G2NH7dXLOQic-u6R3yeadup_QtvrjwWIggbM,435
12
12
  ominfra/deploy/remote.py,sha256=6ACmpXU1uBdyGs3Xsp97ktKFq30cJlzN9LRWNUWlGY4,2144
13
13
  ominfra/deploy/executor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
@@ -36,14 +36,14 @@ ominfra/deploy/poly/venv.py,sha256=BoipDEa4NTeodjf3L57KJfq9eGKLagFNKwD8pS4yrzA,1
36
36
  ominfra/manage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
37
  ominfra/manage/manage.py,sha256=BttL8LFEknHZE_h2Pt5dAqbfUkv6qy43WI0raXBZ1a8,151
38
38
  ominfra/pyremote/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
39
- ominfra/pyremote/_runcommands.py,sha256=bjplV7Yopny9NfotGQRvCXn7laBKt2VRROTQbnDOy70,26234
39
+ ominfra/pyremote/_runcommands.py,sha256=gxmbQYUwi51ekiVtwciY18_8Vx7pzgeIycAgaZeTxlQ,26342
40
40
  ominfra/pyremote/bootstrap.py,sha256=RvMO3YGaN1E4sgUi1JEtiPak8cjvqtc_vRCq1yqbeZg,3370
41
41
  ominfra/pyremote/runcommands.py,sha256=bviS0_TDIoZVAe4h-_iavbvJtVSFu8lnk7fQ5iasCWE,1571
42
42
  ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
43
43
  ominfra/tools/listresources.py,sha256=4LhqZcBHVIAME0ulYKjPJV1tVKKBevPSGKaJXbxTBbI,5917
44
- ominfra-0.0.0.dev35.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
45
- ominfra-0.0.0.dev35.dist-info/METADATA,sha256=S7AEJoZGyrUh3cU2zz3cz-PHsuuhWjxtnGtZUqWP0gU,799
46
- ominfra-0.0.0.dev35.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
47
- ominfra-0.0.0.dev35.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
48
- ominfra-0.0.0.dev35.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
49
- ominfra-0.0.0.dev35.dist-info/RECORD,,
44
+ ominfra-0.0.0.dev37.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
45
+ ominfra-0.0.0.dev37.dist-info/METADATA,sha256=bmYDNLUAbDmbY2h3Otc0_1LlFFEmbZBCGKS3cSH2CUE,799
46
+ ominfra-0.0.0.dev37.dist-info/WHEEL,sha256=GV9aMThwP_4oNCtvEC2ec3qUYutgWeAzklro_0m4WJQ,91
47
+ ominfra-0.0.0.dev37.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
48
+ ominfra-0.0.0.dev37.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
49
+ ominfra-0.0.0.dev37.dist-info/RECORD,,