ominfra 0.0.0.dev138__py3-none-any.whl → 0.0.0.dev139__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. ominfra/manage/__init__.py +13 -0
  2. ominfra/manage/{new/main.py → main.py} +6 -6
  3. ominfra/{manage/new/_manage.py → scripts/manage.py} +13 -13
  4. {ominfra-0.0.0.dev138.dist-info → ominfra-0.0.0.dev139.dist-info}/METADATA +3 -3
  5. {ominfra-0.0.0.dev138.dist-info → ominfra-0.0.0.dev139.dist-info}/RECORD +12 -41
  6. ominfra/manage/deploy/_executor.py +0 -1415
  7. ominfra/manage/deploy/configs.py +0 -19
  8. ominfra/manage/deploy/executor/__init__.py +0 -1
  9. ominfra/manage/deploy/executor/base.py +0 -115
  10. ominfra/manage/deploy/executor/concerns/__init__.py +0 -0
  11. ominfra/manage/deploy/executor/concerns/dirs.py +0 -28
  12. ominfra/manage/deploy/executor/concerns/nginx.py +0 -47
  13. ominfra/manage/deploy/executor/concerns/repo.py +0 -17
  14. ominfra/manage/deploy/executor/concerns/supervisor.py +0 -46
  15. ominfra/manage/deploy/executor/concerns/systemd.py +0 -88
  16. ominfra/manage/deploy/executor/concerns/user.py +0 -25
  17. ominfra/manage/deploy/executor/concerns/venv.py +0 -22
  18. ominfra/manage/deploy/executor/main.py +0 -119
  19. ominfra/manage/deploy/poly/__init__.py +0 -1
  20. ominfra/manage/deploy/poly/_main.py +0 -975
  21. ominfra/manage/deploy/poly/base.py +0 -178
  22. ominfra/manage/deploy/poly/configs.py +0 -38
  23. ominfra/manage/deploy/poly/deploy.py +0 -25
  24. ominfra/manage/deploy/poly/main.py +0 -18
  25. ominfra/manage/deploy/poly/nginx.py +0 -60
  26. ominfra/manage/deploy/poly/repo.py +0 -41
  27. ominfra/manage/deploy/poly/runtime.py +0 -39
  28. ominfra/manage/deploy/poly/site.py +0 -11
  29. ominfra/manage/deploy/poly/supervisor.py +0 -64
  30. ominfra/manage/deploy/poly/venv.py +0 -52
  31. ominfra/manage/deploy/remote.py +0 -91
  32. ominfra/manage/manage.py +0 -12
  33. ominfra/manage/new/__init__.py +0 -1
  34. ominfra/manage/new/commands/__init__.py +0 -0
  35. /ominfra/manage/{deploy → commands}/__init__.py +0 -0
  36. /ominfra/manage/{new/commands → commands}/base.py +0 -0
  37. /ominfra/manage/{new/commands → commands}/subprocess.py +0 -0
  38. {ominfra-0.0.0.dev138.dist-info → ominfra-0.0.0.dev139.dist-info}/LICENSE +0 -0
  39. {ominfra-0.0.0.dev138.dist-info → ominfra-0.0.0.dev139.dist-info}/WHEEL +0 -0
  40. {ominfra-0.0.0.dev138.dist-info → ominfra-0.0.0.dev139.dist-info}/entry_points.txt +0 -0
  41. {ominfra-0.0.0.dev138.dist-info → ominfra-0.0.0.dev139.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,13 @@
1
+ # @omlish-lite
2
+ """
3
+ Jobs:
4
+ - globals
5
+ - pkgs
6
+ - pyenv
7
+ - tailscale
8
+ - docker
9
+ - system nginx
10
+ - system service manager - systemd / supervisor
11
+ - users
12
+ - firewall
13
+ """
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env python3
2
- # @omlish-amalg ./_manage.py
2
+ # @omlish-amalg ../scripts/manage.py
3
3
  # ruff: noqa: UP006 UP007
4
4
  """
5
5
  manage.py -s 'docker run -i python:3.12'
@@ -23,10 +23,10 @@ from omlish.lite.marshal import register_opj_marshaler
23
23
  from omlish.lite.marshal import unmarshal_obj
24
24
  from omlish.lite.subprocesses import subprocess_maybe_shell_wrap_exec
25
25
 
26
- from ...pyremote import PyremoteBootstrapDriver
27
- from ...pyremote import PyremoteBootstrapOptions
28
- from ...pyremote import pyremote_bootstrap_finalize
29
- from ...pyremote import pyremote_build_bootstrap_cmd
26
+ from ..pyremote import PyremoteBootstrapDriver
27
+ from ..pyremote import PyremoteBootstrapOptions
28
+ from ..pyremote import pyremote_bootstrap_finalize
29
+ from ..pyremote import pyremote_build_bootstrap_cmd
30
30
  from .commands.base import Command
31
31
  from .commands.subprocess import SubprocessCommand
32
32
 
@@ -140,7 +140,7 @@ def _get_amalg_src(*, amalg_file: ta.Optional[str]) -> str:
140
140
  return _get_self_src()
141
141
 
142
142
  import importlib.resources
143
- return importlib.resources.read_text(__package__, '_manage.py')
143
+ return importlib.resources.files(__package__.split('.')[0] + '.scripts').joinpath('manage.py').read_text()
144
144
 
145
145
 
146
146
  ##
@@ -2,7 +2,7 @@
2
2
  # noinspection DuplicatedCode
3
3
  # @omlish-lite
4
4
  # @omlish-script
5
- # @omlish-amalg-output main.py
5
+ # @omlish-amalg-output ../manage/main.py
6
6
  # ruff: noqa: N802 UP006 UP007 UP036
7
7
  """
8
8
  manage.py -s 'docker run -i python:3.12'
@@ -52,10 +52,10 @@ if sys.version_info < (3, 8):
52
52
  CommandInputT = ta.TypeVar('CommandInputT', bound='Command.Input')
53
53
  CommandOutputT = ta.TypeVar('CommandOutputT', bound='Command.Output')
54
54
 
55
- # ../../../omlish/lite/cached.py
55
+ # ../../omlish/lite/cached.py
56
56
  T = ta.TypeVar('T')
57
57
 
58
- # ../../../omlish/lite/check.py
58
+ # ../../omlish/lite/check.py
59
59
  SizedT = ta.TypeVar('SizedT', bound=ta.Sized)
60
60
 
61
61
 
@@ -81,7 +81,7 @@ class Command(abc.ABC, ta.Generic[CommandInputT, CommandOutputT]):
81
81
 
82
82
 
83
83
  ########################################
84
- # ../../../pyremote.py
84
+ # ../../pyremote.py
85
85
  """
86
86
  Basically this: https://mitogen.networkgenomics.com/howitworks.html
87
87
  """
@@ -526,7 +526,7 @@ class PyremoteBootstrapDriver:
526
526
 
527
527
 
528
528
  ########################################
529
- # ../../../../omlish/lite/cached.py
529
+ # ../../../omlish/lite/cached.py
530
530
 
531
531
 
532
532
  class _cached_nullary: # noqa
@@ -551,7 +551,7 @@ def cached_nullary(fn): # ta.Callable[..., T]) -> ta.Callable[..., T]:
551
551
 
552
552
 
553
553
  ########################################
554
- # ../../../../omlish/lite/check.py
554
+ # ../../../omlish/lite/check.py
555
555
 
556
556
 
557
557
  def check_isinstance(v: ta.Any, spec: ta.Union[ta.Type[T], tuple]) -> T:
@@ -648,7 +648,7 @@ def check_non_empty(v: SizedT) -> SizedT:
648
648
 
649
649
 
650
650
  ########################################
651
- # ../../../../omlish/lite/json.py
651
+ # ../../../omlish/lite/json.py
652
652
 
653
653
 
654
654
  ##
@@ -679,7 +679,7 @@ json_dumps_compact: ta.Callable[..., str] = functools.partial(json.dumps, **JSON
679
679
 
680
680
 
681
681
  ########################################
682
- # ../../../../omlish/lite/reflect.py
682
+ # ../../../omlish/lite/reflect.py
683
683
 
684
684
 
685
685
  _GENERIC_ALIAS_TYPES = (
@@ -734,7 +734,7 @@ def deep_subclasses(cls: ta.Type[T]) -> ta.Iterator[ta.Type[T]]:
734
734
 
735
735
 
736
736
  ########################################
737
- # ../../../../omlish/lite/logs.py
737
+ # ../../../omlish/lite/logs.py
738
738
  """
739
739
  TODO:
740
740
  - translate json keys
@@ -1004,7 +1004,7 @@ def configure_standard_logging(
1004
1004
 
1005
1005
 
1006
1006
  ########################################
1007
- # ../../../../omlish/lite/marshal.py
1007
+ # ../../../omlish/lite/marshal.py
1008
1008
  """
1009
1009
  TODO:
1010
1010
  - pickle stdlib objs? have to pin to 3.8 pickle protocol, will be cross-version
@@ -1351,7 +1351,7 @@ def unmarshal_obj(o: ta.Any, ty: ta.Union[ta.Type[T], ta.Any]) -> T:
1351
1351
 
1352
1352
 
1353
1353
  ########################################
1354
- # ../../../../omlish/lite/runtime.py
1354
+ # ../../../omlish/lite/runtime.py
1355
1355
 
1356
1356
 
1357
1357
  @cached_nullary
@@ -1368,7 +1368,7 @@ def check_runtime_version() -> None:
1368
1368
 
1369
1369
 
1370
1370
  ########################################
1371
- # ../../../../omlish/lite/subprocesses.py
1371
+ # ../../../omlish/lite/subprocesses.py
1372
1372
 
1373
1373
 
1374
1374
  ##
@@ -1671,7 +1671,7 @@ def _get_amalg_src(*, amalg_file: ta.Optional[str]) -> str:
1671
1671
  return _get_self_src()
1672
1672
 
1673
1673
  import importlib.resources
1674
- return importlib.resources.read_text(__package__, '_manage.py')
1674
+ return importlib.resources.files(__package__.split('.')[0] + '.scripts').joinpath('manage.py').read_text()
1675
1675
 
1676
1676
 
1677
1677
  ##
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ominfra
3
- Version: 0.0.0.dev138
3
+ Version: 0.0.0.dev139
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.dev138
16
- Requires-Dist: omlish==0.0.0.dev138
15
+ Requires-Dist: omdev==0.0.0.dev139
16
+ Requires-Dist: omlish==0.0.0.dev139
17
17
  Provides-Extra: all
18
18
  Requires-Dist: paramiko~=3.5; extra == "all"
19
19
  Requires-Dist: asyncssh~=2.18; extra == "all"
@@ -27,43 +27,14 @@ ominfra/journald/fields.py,sha256=NjjVn7GW4jkcGdyiiizVjEfQqSFnolXYk3kDcSQcMmc,12
27
27
  ominfra/journald/genmessages.py,sha256=rLTS-K2v7otNOtTz4RoOEVYCm0fQuuBzf47e0T61tA8,1857
28
28
  ominfra/journald/messages.py,sha256=Wr7TjWMOySc0WnKwp_-idR8RfeKlbyJQ_KkELr0VB70,2192
29
29
  ominfra/journald/tailer.py,sha256=5abcFMfgi7fnY9ZEQe2ZVobaJxjQkeu6d9Kagw33a1w,33525
30
- ominfra/manage/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
31
- ominfra/manage/manage.py,sha256=BttL8LFEknHZE_h2Pt5dAqbfUkv6qy43WI0raXBZ1a8,151
32
- ominfra/manage/deploy/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
- ominfra/manage/deploy/_executor.py,sha256=amAnQWG5PBrsYVqd7K6xILyq88mhTUZucTWtSenceTE,35466
34
- ominfra/manage/deploy/configs.py,sha256=qi0kwT7G2NH7dXLOQic-u6R3yeadup_QtvrjwWIggbM,435
35
- ominfra/manage/deploy/remote.py,sha256=WHHElLmYk6wEDC4R8s_jHi1z71CCuV3soqF3elzIWEM,2145
36
- ominfra/manage/deploy/executor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
37
- ominfra/manage/deploy/executor/base.py,sha256=AjpUT1iPsJHrDNzcflZ9IazpClmWZaGjYxE0NIBazoQ,2815
38
- ominfra/manage/deploy/executor/main.py,sha256=U5p-78koTjYP_JzcE8DfwXEtGNS6nJMn3LiBiofF8a0,2641
39
- ominfra/manage/deploy/executor/concerns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
40
- ominfra/manage/deploy/executor/concerns/dirs.py,sha256=Iqhva6v8nIPhMkhJFsr5lUsbTMgu-cWYv7nDwHrMSmY,696
41
- ominfra/manage/deploy/executor/concerns/nginx.py,sha256=mIL25l6PCPleUbHK2_9cS5FU19ODcT6gVLrUqN43gf8,1541
42
- ominfra/manage/deploy/executor/concerns/repo.py,sha256=mlTqxjWKGPTE8McJ41tUqwdCaFeMxqxczbMH-8LDR0Y,500
43
- ominfra/manage/deploy/executor/concerns/supervisor.py,sha256=KuMutAOwQjcOrng3ROYjwUErWPg7_Urf0Bvde20xi2s,1796
44
- ominfra/manage/deploy/executor/concerns/systemd.py,sha256=MtsSEToEa1HNouern_JukcYTnypw_i00VyKs9lJkXu4,2861
45
- ominfra/manage/deploy/executor/concerns/user.py,sha256=j5LDfQXquIp-eEM7t6aShsrYoQrM_ILXZycTmTcRVxA,686
46
- ominfra/manage/deploy/executor/concerns/venv.py,sha256=jbRriqJHO4r9Zyo5Hfl_qVmcU6Qm6UgrouBroKcPn2g,775
47
- ominfra/manage/deploy/poly/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
48
- ominfra/manage/deploy/poly/_main.py,sha256=Qc66G51CqQUt03rqT2u96p7H73UJnvxm7IhAAWNbMsE,24192
49
- ominfra/manage/deploy/poly/base.py,sha256=1dGuzWxi2Z6Hm6-YlkVxPk9r3In2aCJ0p8lGR-QQI_s,4166
50
- ominfra/manage/deploy/poly/configs.py,sha256=9bzWdbxhOk_Q4KokDjmRz254KHnUU71Vl1frLlhQyU4,584
51
- ominfra/manage/deploy/poly/deploy.py,sha256=tMYKslXLjstcv86siRt5j37USsS0Wd6lsfeGRE26zio,544
52
- ominfra/manage/deploy/poly/main.py,sha256=nHTE6oRfdQzoMAK6VNypVumFU6R8C-nAIlnCJKaqxU8,472
53
- ominfra/manage/deploy/poly/nginx.py,sha256=9PZu-7oOiyrjBzL4SyczyJwoq4a1lBhSfyFLhE9BgkE,1842
54
- ominfra/manage/deploy/poly/repo.py,sha256=nqhIhOreAQ4JcOgIQmCwjZ7EWnIMj7B9N7b8uko24sc,1205
55
- ominfra/manage/deploy/poly/runtime.py,sha256=G66AI-a27Wi6QYpG3M0ryqI7c5MnJkXt-_j9Qi8UiUk,1066
56
- ominfra/manage/deploy/poly/site.py,sha256=QJwDDJoVm2-kxi4bxIrp-mn4y2qDLuW3CAUax3W8gv8,239
57
- ominfra/manage/deploy/poly/supervisor.py,sha256=zkl6VQBcAZaMAhyR9DbbbqULcgFCDZoe9S_vP-mMFQ8,2289
58
- ominfra/manage/deploy/poly/venv.py,sha256=BoipDEa4NTeodjf3L57KJfq9eGKLagFNKwD8pS4yrzA,1552
59
- ominfra/manage/new/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
60
- ominfra/manage/new/_manage.py,sha256=4dunrnkHpCn-c0Qtf2mxr5ocZ2_InZf7oWSaEWrbICw,43797
61
- ominfra/manage/new/main.py,sha256=m2faeXJbyDDR-smXOQKNIgRorsWYtOXYJOlL_q_5s34,5094
62
- ominfra/manage/new/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
63
- ominfra/manage/new/commands/base.py,sha256=TTrHL213jf-ClVqToiNHuxQey1Yf6052E8u3E9hAf7Q,574
64
- ominfra/manage/new/commands/subprocess.py,sha256=GpbD-cTorgCRg203lCl81HAh-NBYA6ObKa5ZP2ss9rg,1884
30
+ ominfra/manage/__init__.py,sha256=YqHcYMfmo04OoVNYc6Ykc1I8WaJot44skwhm9DcnmXE,166
31
+ ominfra/manage/main.py,sha256=D-wxBsGi-EBBpKBC1hhLCr8PkJxLs1Vj9CAsSwisn-k,5141
32
+ ominfra/manage/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
33
+ ominfra/manage/commands/base.py,sha256=TTrHL213jf-ClVqToiNHuxQey1Yf6052E8u3E9hAf7Q,574
34
+ ominfra/manage/commands/subprocess.py,sha256=GpbD-cTorgCRg203lCl81HAh-NBYA6ObKa5ZP2ss9rg,1884
65
35
  ominfra/scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
36
  ominfra/scripts/journald2aws.py,sha256=kCyeyCo53GRoCKAdVAe0aGkgmINxi8IBcUfRXphACek,131618
37
+ ominfra/scripts/manage.py,sha256=xgDqnBWLdLogvu2R5e3Pgg3Dc9M2P_6QN1-7MQE5dnY,43817
67
38
  ominfra/scripts/supervisor.py,sha256=3rhnR5gT3MxqFW9ew5ePYioTDLvEcM2nlYmvbGBCvzI,245884
68
39
  ominfra/supervisor/LICENSE.txt,sha256=yvqaMNsDhWxziHa9ien6qCW1SkZv-DQlAg96XjfSee8,1746
69
40
  ominfra/supervisor/__init__.py,sha256=Y3l4WY4JRi2uLG6kgbGp93fuGfkxkKwZDvhsa0Rwgtk,15
@@ -106,9 +77,9 @@ ominfra/tailscale/api.py,sha256=C5-t_b6jZXUWcy5k8bXm7CFnk73pSdrlMOgGDeGVrpw,1370
106
77
  ominfra/tailscale/cli.py,sha256=DSGp4hn5xwOW-l_u_InKlSF6kIobxtUtVssf_73STs0,3567
107
78
  ominfra/tools/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
79
  ominfra/tools/listresources.py,sha256=4qVg5txsb10EHhvqXXeM6gJ2jx9LbroEnPydDv1uXs0,6176
109
- ominfra-0.0.0.dev138.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
110
- ominfra-0.0.0.dev138.dist-info/METADATA,sha256=eyC6k2kjxqRdu8PLufNmlTvtZOsyBCvxnppRs00qx7w,731
111
- ominfra-0.0.0.dev138.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
112
- ominfra-0.0.0.dev138.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
113
- ominfra-0.0.0.dev138.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
114
- ominfra-0.0.0.dev138.dist-info/RECORD,,
80
+ ominfra-0.0.0.dev139.dist-info/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
81
+ ominfra-0.0.0.dev139.dist-info/METADATA,sha256=f4A84661QYB6jEMis-4rQWqm5ZajlCBBJ7y367ojJVM,731
82
+ ominfra-0.0.0.dev139.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
83
+ ominfra-0.0.0.dev139.dist-info/entry_points.txt,sha256=kgecQ2MgGrM9qK744BoKS3tMesaC3yjLnl9pa5CRczg,37
84
+ ominfra-0.0.0.dev139.dist-info/top_level.txt,sha256=E-b2OHkk_AOBLXHYZQ2EOFKl-_6uOGd8EjeG-Zy6h_w,8
85
+ ominfra-0.0.0.dev139.dist-info/RECORD,,