omdev 0.0.0.dev388__py3-none-any.whl → 0.0.0.dev389__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.
omdev/scripts/ci.py CHANGED
@@ -11076,15 +11076,15 @@ class CoroHttpServerSocketHandler(SocketHandler_):
11076
11076
 
11077
11077
 
11078
11078
  ########################################
11079
- # ../../../omlish/subprocesses/async_.py
11079
+ # ../../../omlish/subprocesses/asyncs.py
11080
11080
 
11081
11081
 
11082
11082
  ##
11083
11083
 
11084
11084
 
11085
- class _AbstractAsyncSubprocesses(BaseSubprocesses):
11085
+ class AbstractAsyncSubprocesses(BaseSubprocesses):
11086
11086
  @abc.abstractmethod
11087
- async def run_(self, run: SubprocessRun) -> SubprocessRunOutput:
11087
+ def run_(self, run: SubprocessRun) -> ta.Awaitable[SubprocessRunOutput]:
11088
11088
  raise NotImplementedError
11089
11089
 
11090
11090
  def run(
@@ -11107,31 +11107,41 @@ class _AbstractAsyncSubprocesses(BaseSubprocesses):
11107
11107
 
11108
11108
  #
11109
11109
 
11110
- @abc.abstractmethod
11111
11110
  async def check_call(
11112
11111
  self,
11113
11112
  *cmd: str,
11114
11113
  stdout: ta.Any = sys.stderr,
11115
11114
  **kwargs: ta.Any,
11116
11115
  ) -> None:
11117
- raise NotImplementedError
11116
+ await self.run(
11117
+ *cmd,
11118
+ stdout=stdout,
11119
+ check=True,
11120
+ **kwargs,
11121
+ )
11118
11122
 
11119
- @abc.abstractmethod
11120
11123
  async def check_output(
11121
11124
  self,
11122
11125
  *cmd: str,
11126
+ stdout: ta.Any = subprocess.PIPE,
11123
11127
  **kwargs: ta.Any,
11124
11128
  ) -> bytes:
11125
- raise NotImplementedError
11126
-
11127
- #
11129
+ return check.not_none((await self.run(
11130
+ *cmd,
11131
+ stdout=stdout,
11132
+ check=True,
11133
+ **kwargs,
11134
+ )).stdout)
11128
11135
 
11129
11136
  async def check_output_str(
11130
11137
  self,
11131
11138
  *cmd: str,
11132
11139
  **kwargs: ta.Any,
11133
11140
  ) -> str:
11134
- return (await self.check_output(*cmd, **kwargs)).decode().strip()
11141
+ return (await self.check_output(
11142
+ *cmd,
11143
+ **kwargs,
11144
+ )).decode().strip()
11135
11145
 
11136
11146
  #
11137
11147
 
@@ -11166,10 +11176,6 @@ class _AbstractAsyncSubprocesses(BaseSubprocesses):
11166
11176
  return ret.decode().strip()
11167
11177
 
11168
11178
 
11169
- class AbstractAsyncSubprocesses(_AbstractAsyncSubprocesses, abc.ABC):
11170
- pass
11171
-
11172
-
11173
11179
  ########################################
11174
11180
  # ../../../omlish/subprocesses/sync.py
11175
11181
  """
@@ -11290,6 +11296,8 @@ class Subprocesses(AbstractSubprocesses):
11290
11296
  stderr=proc.stderr, # noqa
11291
11297
  )
11292
11298
 
11299
+ #
11300
+
11293
11301
  def check_call(
11294
11302
  self,
11295
11303
  *cmd: str,
@@ -11853,25 +11861,6 @@ class AsyncioSubprocesses(AbstractAsyncSubprocesses):
11853
11861
  stderr=stderr,
11854
11862
  )
11855
11863
 
11856
- #
11857
-
11858
- async def check_call(
11859
- self,
11860
- *cmd: str,
11861
- stdout: ta.Any = sys.stderr,
11862
- **kwargs: ta.Any,
11863
- ) -> None:
11864
- with self.prepare_and_wrap(*cmd, stdout=stdout, check=True, **kwargs) as (cmd, kwargs): # noqa
11865
- await self.run(*cmd, **kwargs)
11866
-
11867
- async def check_output(
11868
- self,
11869
- *cmd: str,
11870
- **kwargs: ta.Any,
11871
- ) -> bytes:
11872
- with self.prepare_and_wrap(*cmd, stdout=subprocess.PIPE, check=True, **kwargs) as (cmd, kwargs): # noqa
11873
- return check.not_none((await self.run(*cmd, **kwargs)).stdout)
11874
-
11875
11864
 
11876
11865
  asyncio_subprocesses = AsyncioSubprocesses()
11877
11866
 
omdev/scripts/interp.py CHANGED
@@ -4535,15 +4535,15 @@ class InterpResolver:
4535
4535
 
4536
4536
 
4537
4537
  ########################################
4538
- # ../../../omlish/subprocesses/async_.py
4538
+ # ../../../omlish/subprocesses/asyncs.py
4539
4539
 
4540
4540
 
4541
4541
  ##
4542
4542
 
4543
4543
 
4544
- class _AbstractAsyncSubprocesses(BaseSubprocesses):
4544
+ class AbstractAsyncSubprocesses(BaseSubprocesses):
4545
4545
  @abc.abstractmethod
4546
- async def run_(self, run: SubprocessRun) -> SubprocessRunOutput:
4546
+ def run_(self, run: SubprocessRun) -> ta.Awaitable[SubprocessRunOutput]:
4547
4547
  raise NotImplementedError
4548
4548
 
4549
4549
  def run(
@@ -4566,31 +4566,41 @@ class _AbstractAsyncSubprocesses(BaseSubprocesses):
4566
4566
 
4567
4567
  #
4568
4568
 
4569
- @abc.abstractmethod
4570
4569
  async def check_call(
4571
4570
  self,
4572
4571
  *cmd: str,
4573
4572
  stdout: ta.Any = sys.stderr,
4574
4573
  **kwargs: ta.Any,
4575
4574
  ) -> None:
4576
- raise NotImplementedError
4575
+ await self.run(
4576
+ *cmd,
4577
+ stdout=stdout,
4578
+ check=True,
4579
+ **kwargs,
4580
+ )
4577
4581
 
4578
- @abc.abstractmethod
4579
4582
  async def check_output(
4580
4583
  self,
4581
4584
  *cmd: str,
4585
+ stdout: ta.Any = subprocess.PIPE,
4582
4586
  **kwargs: ta.Any,
4583
4587
  ) -> bytes:
4584
- raise NotImplementedError
4585
-
4586
- #
4588
+ return check.not_none((await self.run(
4589
+ *cmd,
4590
+ stdout=stdout,
4591
+ check=True,
4592
+ **kwargs,
4593
+ )).stdout)
4587
4594
 
4588
4595
  async def check_output_str(
4589
4596
  self,
4590
4597
  *cmd: str,
4591
4598
  **kwargs: ta.Any,
4592
4599
  ) -> str:
4593
- return (await self.check_output(*cmd, **kwargs)).decode().strip()
4600
+ return (await self.check_output(
4601
+ *cmd,
4602
+ **kwargs,
4603
+ )).decode().strip()
4594
4604
 
4595
4605
  #
4596
4606
 
@@ -4625,10 +4635,6 @@ class _AbstractAsyncSubprocesses(BaseSubprocesses):
4625
4635
  return ret.decode().strip()
4626
4636
 
4627
4637
 
4628
- class AbstractAsyncSubprocesses(_AbstractAsyncSubprocesses, abc.ABC):
4629
- pass
4630
-
4631
-
4632
4638
  ########################################
4633
4639
  # ../../../omlish/asyncs/asyncio/subprocesses.py
4634
4640
 
@@ -4821,25 +4827,6 @@ class AsyncioSubprocesses(AbstractAsyncSubprocesses):
4821
4827
  stderr=stderr,
4822
4828
  )
4823
4829
 
4824
- #
4825
-
4826
- async def check_call(
4827
- self,
4828
- *cmd: str,
4829
- stdout: ta.Any = sys.stderr,
4830
- **kwargs: ta.Any,
4831
- ) -> None:
4832
- with self.prepare_and_wrap(*cmd, stdout=stdout, check=True, **kwargs) as (cmd, kwargs): # noqa
4833
- await self.run(*cmd, **kwargs)
4834
-
4835
- async def check_output(
4836
- self,
4837
- *cmd: str,
4838
- **kwargs: ta.Any,
4839
- ) -> bytes:
4840
- with self.prepare_and_wrap(*cmd, stdout=subprocess.PIPE, check=True, **kwargs) as (cmd, kwargs): # noqa
4841
- return check.not_none((await self.run(*cmd, **kwargs)).stdout)
4842
-
4843
4830
 
4844
4831
  asyncio_subprocesses = AsyncioSubprocesses()
4845
4832
 
@@ -6985,15 +6985,15 @@ class InterpResolver:
6985
6985
 
6986
6986
 
6987
6987
  ########################################
6988
- # ../../../omlish/subprocesses/async_.py
6988
+ # ../../../omlish/subprocesses/asyncs.py
6989
6989
 
6990
6990
 
6991
6991
  ##
6992
6992
 
6993
6993
 
6994
- class _AbstractAsyncSubprocesses(BaseSubprocesses):
6994
+ class AbstractAsyncSubprocesses(BaseSubprocesses):
6995
6995
  @abc.abstractmethod
6996
- async def run_(self, run: SubprocessRun) -> SubprocessRunOutput:
6996
+ def run_(self, run: SubprocessRun) -> ta.Awaitable[SubprocessRunOutput]:
6997
6997
  raise NotImplementedError
6998
6998
 
6999
6999
  def run(
@@ -7016,31 +7016,41 @@ class _AbstractAsyncSubprocesses(BaseSubprocesses):
7016
7016
 
7017
7017
  #
7018
7018
 
7019
- @abc.abstractmethod
7020
7019
  async def check_call(
7021
7020
  self,
7022
7021
  *cmd: str,
7023
7022
  stdout: ta.Any = sys.stderr,
7024
7023
  **kwargs: ta.Any,
7025
7024
  ) -> None:
7026
- raise NotImplementedError
7025
+ await self.run(
7026
+ *cmd,
7027
+ stdout=stdout,
7028
+ check=True,
7029
+ **kwargs,
7030
+ )
7027
7031
 
7028
- @abc.abstractmethod
7029
7032
  async def check_output(
7030
7033
  self,
7031
7034
  *cmd: str,
7035
+ stdout: ta.Any = subprocess.PIPE,
7032
7036
  **kwargs: ta.Any,
7033
7037
  ) -> bytes:
7034
- raise NotImplementedError
7035
-
7036
- #
7038
+ return check.not_none((await self.run(
7039
+ *cmd,
7040
+ stdout=stdout,
7041
+ check=True,
7042
+ **kwargs,
7043
+ )).stdout)
7037
7044
 
7038
7045
  async def check_output_str(
7039
7046
  self,
7040
7047
  *cmd: str,
7041
7048
  **kwargs: ta.Any,
7042
7049
  ) -> str:
7043
- return (await self.check_output(*cmd, **kwargs)).decode().strip()
7050
+ return (await self.check_output(
7051
+ *cmd,
7052
+ **kwargs,
7053
+ )).decode().strip()
7044
7054
 
7045
7055
  #
7046
7056
 
@@ -7075,10 +7085,6 @@ class _AbstractAsyncSubprocesses(BaseSubprocesses):
7075
7085
  return ret.decode().strip()
7076
7086
 
7077
7087
 
7078
- class AbstractAsyncSubprocesses(_AbstractAsyncSubprocesses, abc.ABC):
7079
- pass
7080
-
7081
-
7082
7088
  ########################################
7083
7089
  # ../../../omlish/subprocesses/sync.py
7084
7090
  """
@@ -7199,6 +7205,8 @@ class Subprocesses(AbstractSubprocesses):
7199
7205
  stderr=proc.stderr, # noqa
7200
7206
  )
7201
7207
 
7208
+ #
7209
+
7202
7210
  def check_call(
7203
7211
  self,
7204
7212
  *cmd: str,
@@ -7466,25 +7474,6 @@ class AsyncioSubprocesses(AbstractAsyncSubprocesses):
7466
7474
  stderr=stderr,
7467
7475
  )
7468
7476
 
7469
- #
7470
-
7471
- async def check_call(
7472
- self,
7473
- *cmd: str,
7474
- stdout: ta.Any = sys.stderr,
7475
- **kwargs: ta.Any,
7476
- ) -> None:
7477
- with self.prepare_and_wrap(*cmd, stdout=stdout, check=True, **kwargs) as (cmd, kwargs): # noqa
7478
- await self.run(*cmd, **kwargs)
7479
-
7480
- async def check_output(
7481
- self,
7482
- *cmd: str,
7483
- **kwargs: ta.Any,
7484
- ) -> bytes:
7485
- with self.prepare_and_wrap(*cmd, stdout=subprocess.PIPE, check=True, **kwargs) as (cmd, kwargs): # noqa
7486
- return check.not_none((await self.run(*cmd, **kwargs)).stdout)
7487
-
7488
7477
 
7489
7478
  asyncio_subprocesses = AsyncioSubprocesses()
7490
7479
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: omdev
3
- Version: 0.0.0.dev388
3
+ Version: 0.0.0.dev389
4
4
  Summary: omdev
5
5
  Author: wrmsr
6
6
  License-Expression: BSD-3-Clause
@@ -14,7 +14,7 @@ Classifier: Programming Language :: Python :: 3.13
14
14
  Requires-Python: >=3.13
15
15
  Description-Content-Type: text/markdown
16
16
  License-File: LICENSE
17
- Requires-Dist: omlish==0.0.0.dev388
17
+ Requires-Dist: omlish==0.0.0.dev389
18
18
  Provides-Extra: all
19
19
  Requires-Dist: black~=25.1; extra == "all"
20
20
  Requires-Dist: pycparser~=2.22; extra == "all"
@@ -265,9 +265,9 @@ omdev/pyproject/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
265
265
  omdev/pyproject/resources/docker-dev.sh,sha256=DHkz5D18jok_oDolfg2mqrvGRWFoCe9GQo04dR1czcc,838
266
266
  omdev/pyproject/resources/python.sh,sha256=rFaN4SiJ9hdLDXXsDTwugI6zsw6EPkgYMmtacZeTbvw,749
267
267
  omdev/scripts/__init__.py,sha256=MKCvUAEQwsIvwLixwtPlpBqmkMXLCnjjXyAXvVpDwVk,91
268
- omdev/scripts/ci.py,sha256=a5-VsXAdhiYQrmzjOnbGAwFpIqjf-IhCKzYQ680FhUY,362941
269
- omdev/scripts/interp.py,sha256=EUuFfIu_YMSZYU8HFshPfs9L_urVOHCZXrDkmVvIL9w,158933
270
- omdev/scripts/pyproject.py,sha256=_UBZ4Fgq9zfSQJOLt1DN6az2-g5sjySD1VoNP-Fr7Xc,270431
268
+ omdev/scripts/ci.py,sha256=sReH_mR0BiE3-KPBD2VVEyKrUJNJhcTF0oeSm7pmyyg,362502
269
+ omdev/scripts/interp.py,sha256=2xNG-ObiPC-F5eV_nTHq2u-V3Hyuo_6KblPFCBhm2mA,158487
270
+ omdev/scripts/pyproject.py,sha256=DL5q2gsnGChTTuzSHn1PprW2kl3ti_K60JXnKLZdA40,269992
271
271
  omdev/scripts/slowcat.py,sha256=lssv4yrgJHiWfOiHkUut2p8E8Tq32zB-ujXESQxFFHY,2728
272
272
  omdev/scripts/tmpexec.py,sha256=WTYcf56Tj2qjYV14AWmV8SfT0u6Y8eIU6cKgQRvEK3c,1442
273
273
  omdev/tokens/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -316,9 +316,9 @@ omdev/tools/jsonview/resources/jsonview.js,sha256=faDvXDOXKvEvjOuIlz4D3F2ReQXb_b
316
316
  omdev/tools/pawk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
317
317
  omdev/tools/pawk/__main__.py,sha256=VCqeRVnqT1RPEoIrqHFSu4PXVMg4YEgF4qCQm90-eRI,66
318
318
  omdev/tools/pawk/pawk.py,sha256=ao5mdrpiSU4AZ8mBozoEaV3UVlmVTnRG9wD9XP70MZE,11429
319
- omdev-0.0.0.dev388.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
320
- omdev-0.0.0.dev388.dist-info/METADATA,sha256=f0CxDi_EE0SYkBXRhslWdFj4lprdCk2RLZARO_qytXw,5094
321
- omdev-0.0.0.dev388.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
322
- omdev-0.0.0.dev388.dist-info/entry_points.txt,sha256=dHLXFmq5D9B8qUyhRtFqTGWGxlbx3t5ejedjrnXNYLU,33
323
- omdev-0.0.0.dev388.dist-info/top_level.txt,sha256=1nr7j30fEWgLYHW3lGR9pkdHkb7knv1U1ES1XRNVQ6k,6
324
- omdev-0.0.0.dev388.dist-info/RECORD,,
319
+ omdev-0.0.0.dev389.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
320
+ omdev-0.0.0.dev389.dist-info/METADATA,sha256=9nmPj3rMVeLBxcT3m6KA9J2nOGX79pWwEzg6Dxr3Kqw,5094
321
+ omdev-0.0.0.dev389.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
322
+ omdev-0.0.0.dev389.dist-info/entry_points.txt,sha256=dHLXFmq5D9B8qUyhRtFqTGWGxlbx3t5ejedjrnXNYLU,33
323
+ omdev-0.0.0.dev389.dist-info/top_level.txt,sha256=1nr7j30fEWgLYHW3lGR9pkdHkb7knv1U1ES1XRNVQ6k,6
324
+ omdev-0.0.0.dev389.dist-info/RECORD,,