ominfra 0.0.0.dev364__py3-none-any.whl → 0.0.0.dev366__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.
ominfra/scripts/manage.py CHANGED
@@ -4360,6 +4360,31 @@ class LinuxOsRelease:
4360
4360
  ##
4361
4361
 
4362
4362
 
4363
+ @ta.overload
4364
+ def path_dirname(p: str, n: int = 1) -> str:
4365
+ ...
4366
+
4367
+
4368
+ @ta.overload
4369
+ def path_dirname(p: bytes, n: int = 1) -> bytes:
4370
+ ...
4371
+
4372
+
4373
+ def path_dirname(p, n=1):
4374
+ if isinstance(p, bytes):
4375
+ sep: ta.Any = b'/'
4376
+ else:
4377
+ sep = '/'
4378
+ p = os.fspath(p)
4379
+ i = -1
4380
+ for _ in range(n):
4381
+ i = p.rindex(sep, 0, i)
4382
+ head = p[:i + 1]
4383
+ if head and head != sep * len(head):
4384
+ head = head.rstrip(sep)
4385
+ return head
4386
+
4387
+
4363
4388
  def abs_real_path(p: str) -> str:
4364
4389
  return os.path.abspath(os.path.realpath(p))
4365
4390
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ominfra
3
- Version: 0.0.0.dev364
3
+ Version: 0.0.0.dev366
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.13
14
14
  License-File: LICENSE
15
- Requires-Dist: omdev==0.0.0.dev364
16
- Requires-Dist: omlish==0.0.0.dev364
15
+ Requires-Dist: omdev==0.0.0.dev366
16
+ Requires-Dist: omlish==0.0.0.dev366
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.21; extra == "all"
@@ -113,7 +113,7 @@ ominfra/manage/targets/inject.py,sha256=3M4wBkxtvymq_yhiotHlTN8iydELMjVCndyp9Bq-
113
113
  ominfra/manage/targets/targets.py,sha256=WmasYmL6xfAI7F0XvDhScFdBVxkqPkmo_gRgABmmkGA,1891
114
114
  ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
115
  ominfra/scripts/journald2aws.py,sha256=4OP1vqQE0Ry_uVgqlYPlYqRG6Q081A0YcmRNxs7oXoo,171924
116
- ominfra/scripts/manage.py,sha256=mKN4o3tjAupNITfrjjZufJZotDN54boMHloH_9ww5ig,390094
116
+ ominfra/scripts/manage.py,sha256=Ze0_y2EzuKua5MJNBnu-uRY9zo66jDl0AW6xoI5pf1w,390543
117
117
  ominfra/scripts/supervisor.py,sha256=cJaEII4eaHSAFTrQuec2YhYQE0n3EkPAUFn5GE7oivQ,304409
118
118
  ominfra/supervisor/LICENSE.txt,sha256=ZrHY15PVR98y26Yg6iQfa-SXnUaYTDhrUsPVcEO5OKM,1874
119
119
  ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
@@ -156,9 +156,9 @@ ominfra/tailscale/api.py,sha256=XASv9C_CWI-u-yX5jVzhJrkJhlwQRkYQWQQG1uJwAd8,1375
156
156
  ominfra/tailscale/cli.py,sha256=zRV7-tKB7kBah1oTVZlol-vwx1FBlnfzYAPGkeU5jX4,3543
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.dev364.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
- ominfra-0.0.0.dev364.dist-info/METADATA,sha256=U_iuk-WFrHAC1ZNJQbgVdBFqnjIF4V3_CNqnoDUSfHs,753
161
- ominfra-0.0.0.dev364.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
- ominfra-0.0.0.dev364.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
- ominfra-0.0.0.dev364.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
- ominfra-0.0.0.dev364.dist-info/RECORD,,
159
+ ominfra-0.0.0.dev366.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
160
+ ominfra-0.0.0.dev366.dist-info/METADATA,sha256=pz8G-31AJTbLgZdc_YnSoPeV_ihKByM6hk2eb8Dp2cc,753
161
+ ominfra-0.0.0.dev366.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
162
+ ominfra-0.0.0.dev366.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
163
+ ominfra-0.0.0.dev366.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
164
+ ominfra-0.0.0.dev366.dist-info/RECORD,,