ominfra 0.0.0.dev300__py3-none-any.whl → 0.0.0.dev302__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.
@@ -4,7 +4,7 @@ bx=""
4
4
  for v in "" 3 3.{8..13}; do
5
5
  x="python$v"
6
6
  v=$($x -c "import sys; print((\"%02d\" * 3) % sys.version_info[:3])" 2>/dev/null)
7
- if [ $? -eq 0 ] && ([ -z "$bv" ] || [ "$v" \> "$bv" ]); then
7
+ if [ $? -eq 0 ] && [ "$v" \> 030799 ] && ([ -z "$bv" ] || [ "$v" \> "$bv" ]); then
8
8
  bv=$v
9
9
  bx=$x
10
10
  fi
@@ -224,6 +224,7 @@ class TomlDecodeError(ValueError):
224
224
 
225
225
  def toml_load(fp: ta.BinaryIO, /, *, parse_float: TomlParseFloat = float) -> ta.Dict[str, ta.Any]:
226
226
  """Parse TOML from a binary file object."""
227
+
227
228
  b = fp.read()
228
229
  try:
229
230
  s = b.decode()
@@ -1267,7 +1268,15 @@ class Checks:
1267
1268
  spec = (object,)
1268
1269
  return spec
1269
1270
 
1270
- def isinstance(self, v: ta.Any, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> T: # noqa
1271
+ @ta.overload
1272
+ def isinstance(self, v: ta.Any, spec: ta.Type[T], msg: CheckMessage = None) -> T:
1273
+ ...
1274
+
1275
+ @ta.overload
1276
+ def isinstance(self, v: ta.Any, spec: ta.Any, msg: CheckMessage = None) -> ta.Any:
1277
+ ...
1278
+
1279
+ def isinstance(self, v, spec, msg=None):
1271
1280
  if not isinstance(v, self._unpack_isinstance_spec(spec)):
1272
1281
  self._raise(
1273
1282
  TypeError,
@@ -1279,7 +1288,15 @@ class Checks:
1279
1288
 
1280
1289
  return v
1281
1290
 
1282
- def of_isinstance(self, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
1291
+ @ta.overload
1292
+ def of_isinstance(self, spec: ta.Type[T], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
1293
+ ...
1294
+
1295
+ @ta.overload
1296
+ def of_isinstance(self, spec: ta.Any, msg: CheckMessage = None) -> ta.Callable[[ta.Any], ta.Any]:
1297
+ ...
1298
+
1299
+ def of_isinstance(self, spec, msg=None):
1283
1300
  def inner(v):
1284
1301
  return self.isinstance(v, self._unpack_isinstance_spec(spec), msg)
1285
1302
 
ominfra/scripts/manage.py CHANGED
@@ -1463,6 +1463,7 @@ class TomlDecodeError(ValueError):
1463
1463
 
1464
1464
  def toml_load(fp: ta.BinaryIO, /, *, parse_float: TomlParseFloat = float) -> ta.Dict[str, ta.Any]:
1465
1465
  """Parse TOML from a binary file object."""
1466
+
1466
1467
  b = fp.read()
1467
1468
  try:
1468
1469
  s = b.decode()
@@ -2506,7 +2507,15 @@ class Checks:
2506
2507
  spec = (object,)
2507
2508
  return spec
2508
2509
 
2509
- def isinstance(self, v: ta.Any, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> T: # noqa
2510
+ @ta.overload
2511
+ def isinstance(self, v: ta.Any, spec: ta.Type[T], msg: CheckMessage = None) -> T:
2512
+ ...
2513
+
2514
+ @ta.overload
2515
+ def isinstance(self, v: ta.Any, spec: ta.Any, msg: CheckMessage = None) -> ta.Any:
2516
+ ...
2517
+
2518
+ def isinstance(self, v, spec, msg=None):
2510
2519
  if not isinstance(v, self._unpack_isinstance_spec(spec)):
2511
2520
  self._raise(
2512
2521
  TypeError,
@@ -2518,7 +2527,15 @@ class Checks:
2518
2527
 
2519
2528
  return v
2520
2529
 
2521
- def of_isinstance(self, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2530
+ @ta.overload
2531
+ def of_isinstance(self, spec: ta.Type[T], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2532
+ ...
2533
+
2534
+ @ta.overload
2535
+ def of_isinstance(self, spec: ta.Any, msg: CheckMessage = None) -> ta.Callable[[ta.Any], ta.Any]:
2536
+ ...
2537
+
2538
+ def of_isinstance(self, spec, msg=None):
2522
2539
  def inner(v):
2523
2540
  return self.isinstance(v, self._unpack_isinstance_spec(spec), msg)
2524
2541
 
@@ -4936,7 +4953,7 @@ bx=""
4936
4953
  for v in "" 3 3.{8..13}; do
4937
4954
  x="python$v"
4938
4955
  v=$($x -c "import sys; print((\\"%02d\\" * 3) % sys.version_info[:3])" 2>/dev/null)
4939
- if [ $? -eq 0 ] && ([ -z "$bv" ] || [ "$v" \\> "$bv" ]); then
4956
+ if [ $? -eq 0 ] && [ "$v" \\> 030799 ] && ([ -z "$bv" ] || [ "$v" \\> "$bv" ]); then
4940
4957
  bv=$v
4941
4958
  bx=$x
4942
4959
  fi
@@ -10883,7 +10900,7 @@ class AsyncioSubprocesses(AbstractAsyncSubprocesses):
10883
10900
  async with self.popen(*run.cmd, **kwargs) as proc:
10884
10901
  stdout, stderr = await self.communicate(proc, run.input, run.timeout)
10885
10902
 
10886
- if check and proc.returncode:
10903
+ if run.check and proc.returncode:
10887
10904
  raise subprocess.CalledProcessError(
10888
10905
  proc.returncode,
10889
10906
  run.cmd,
@@ -764,6 +764,7 @@ class TomlDecodeError(ValueError):
764
764
 
765
765
  def toml_load(fp: ta.BinaryIO, /, *, parse_float: TomlParseFloat = float) -> ta.Dict[str, ta.Any]:
766
766
  """Parse TOML from a binary file object."""
767
+
767
768
  b = fp.read()
768
769
  try:
769
770
  s = b.decode()
@@ -2036,7 +2037,15 @@ class Checks:
2036
2037
  spec = (object,)
2037
2038
  return spec
2038
2039
 
2039
- def isinstance(self, v: ta.Any, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> T: # noqa
2040
+ @ta.overload
2041
+ def isinstance(self, v: ta.Any, spec: ta.Type[T], msg: CheckMessage = None) -> T:
2042
+ ...
2043
+
2044
+ @ta.overload
2045
+ def isinstance(self, v: ta.Any, spec: ta.Any, msg: CheckMessage = None) -> ta.Any:
2046
+ ...
2047
+
2048
+ def isinstance(self, v, spec, msg=None):
2040
2049
  if not isinstance(v, self._unpack_isinstance_spec(spec)):
2041
2050
  self._raise(
2042
2051
  TypeError,
@@ -2048,7 +2057,15 @@ class Checks:
2048
2057
 
2049
2058
  return v
2050
2059
 
2051
- def of_isinstance(self, spec: ta.Union[ta.Type[T], tuple], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2060
+ @ta.overload
2061
+ def of_isinstance(self, spec: ta.Type[T], msg: CheckMessage = None) -> ta.Callable[[ta.Any], T]:
2062
+ ...
2063
+
2064
+ @ta.overload
2065
+ def of_isinstance(self, spec: ta.Any, msg: CheckMessage = None) -> ta.Callable[[ta.Any], ta.Any]:
2066
+ ...
2067
+
2068
+ def of_isinstance(self, spec, msg=None):
2052
2069
  def inner(v):
2053
2070
  return self.isinstance(v, self._unpack_isinstance_spec(spec), msg)
2054
2071
 
@@ -4346,6 +4363,9 @@ class IncrementalWriteBuffer:
4346
4363
  # ../../../omlish/io/fdio/handlers.py
4347
4364
 
4348
4365
 
4366
+ ##
4367
+
4368
+
4349
4369
  class FdioHandler(abc.ABC):
4350
4370
  @abc.abstractmethod
4351
4371
  def fd(self) -> int:
@@ -4410,6 +4430,9 @@ class SocketFdioHandler(FdioHandler, abc.ABC):
4410
4430
  # ../../../omlish/io/fdio/kqueue.py
4411
4431
 
4412
4432
 
4433
+ ##
4434
+
4435
+
4413
4436
  KqueueFdioPoller: ta.Optional[ta.Type[FdioPoller]]
4414
4437
  if sys.platform == 'darwin' or sys.platform.startswith('freebsd'):
4415
4438
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ominfra
3
- Version: 0.0.0.dev300
3
+ Version: 0.0.0.dev302
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.dev300
16
- Requires-Dist: omlish==0.0.0.dev300
15
+ Requires-Dist: omdev==0.0.0.dev302
16
+ Requires-Dist: omlish==0.0.0.dev302
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.20; extra == "all"
@@ -107,14 +107,14 @@ ominfra/manage/system/packages.py,sha256=HImCsgzXxcfzAoD2PjrstaSE_qgBWtTFUVb0lTE
107
107
  ominfra/manage/system/platforms.py,sha256=F0bgYzUzCjZ2LbWVvnEq2ya_X_LfRW406LQYFL7bG44,1202
108
108
  ominfra/manage/targets/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  ominfra/manage/targets/bestpython.py,sha256=6_CH_Vm9Am5aD5UV3m8uC-B8bvMNSjVIWicPmFw0aLI,631
110
- ominfra/manage/targets/bestpython.sh,sha256=Hz-8h9ITCoaG8wlfgrY-LCT7xT-UubZKFvQGxI46X9w,328
110
+ ominfra/manage/targets/bestpython.sh,sha256=RTvImgsRv-67D9Ugg5bo7NfpV2MD8zTsLt6aipdLQiQ,350
111
111
  ominfra/manage/targets/connection.py,sha256=rVI1YJxFClcF-sdttqWyIz9_XjPI01GUdwxYck0P1PA,5016
112
112
  ominfra/manage/targets/inject.py,sha256=P4597xWM-V3I_gCt2O71OLhYQkkXtuJvkYRsIbhhMcE,1561
113
113
  ominfra/manage/targets/targets.py,sha256=7GP6UAZyJFEhpkJN6UQdpr_WN3p7C76v-s445y-WB6U,1885
114
114
  ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
- ominfra/scripts/journald2aws.py,sha256=5dnfVtg2r6o-iyWhrwUnlD68hXF4-gaJXndKf5OEIJ0,171278
116
- ominfra/scripts/manage.py,sha256=Qw172y_R1_XvOJPq3ItomTldBEJHOmxmBmrco91iP3s,381713
117
- ominfra/scripts/supervisor.py,sha256=LBu-YXrcrlJrjvquPNBn5iw0GqrqHh9N3uB-E5eTrRs,299907
115
+ ominfra/scripts/journald2aws.py,sha256=pX5hD_O_oteVS4JdQP4n8NATQcVkGCQ1eyxio35ZjBw,171636
116
+ ominfra/scripts/manage.py,sha256=__X7O5I6UHAQDmxYQFR1sPGHGWSmRSdfcYxFKVyakmY,382098
117
+ ominfra/scripts/supervisor.py,sha256=exHXaTr8YApCuDldgCXwttMd8CGsqqf8eUb2Qn-K3sE,300275
118
118
  ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
119
119
  ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
120
120
  ominfra/supervisor/__main__.py,sha256=I0yFw-C08OOiZ3BF6lF1Oiv789EQXu-_j6whDhQUTEA,66
@@ -156,9 +156,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
156
156
  ominfra/tailscale/cli.py,sha256=3FnJbgpLw6gInTfhERd1mDy9ijjMUGxkdYVo43Tnxx4,3555
157
157
  ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
158
158
  ominfra/tools/listresources.py,sha256=auGP1LlbBJSFKUWNvQo_UzA8IsBNZBTMwEkFFRJ4FX4,6185
159
- ominfra-0.0.0.dev300.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
- ominfra-0.0.0.dev300.dist-info/METADATA,sha256=Exivdpa0HEiHAFOsPOocjLeHZqlB6HskvcRxtrv2OVM,753
161
- ominfra-0.0.0.dev300.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
162
- ominfra-0.0.0.dev300.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
- ominfra-0.0.0.dev300.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
- ominfra-0.0.0.dev300.dist-info/RECORD,,
159
+ ominfra-0.0.0.dev302.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
+ ominfra-0.0.0.dev302.dist-info/METADATA,sha256=aX_dGcj9UGMdWLTGyJw6SVr-VxijuSa3H40XaGSbZ2Q,753
161
+ ominfra-0.0.0.dev302.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
162
+ ominfra-0.0.0.dev302.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
+ ominfra-0.0.0.dev302.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
+ ominfra-0.0.0.dev302.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.0)
2
+ Generator: setuptools (80.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5