omdev 0.0.0.dev271__py3-none-any.whl → 0.0.0.dev272__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/.manifests.json +1 -1
- omdev/cli/clicli.py +17 -5
- {omdev-0.0.0.dev271.dist-info → omdev-0.0.0.dev272.dist-info}/METADATA +2 -2
- {omdev-0.0.0.dev271.dist-info → omdev-0.0.0.dev272.dist-info}/RECORD +8 -8
- {omdev-0.0.0.dev271.dist-info → omdev-0.0.0.dev272.dist-info}/WHEEL +0 -0
- {omdev-0.0.0.dev271.dist-info → omdev-0.0.0.dev272.dist-info}/entry_points.txt +0 -0
- {omdev-0.0.0.dev271.dist-info → omdev-0.0.0.dev272.dist-info}/licenses/LICENSE +0 -0
- {omdev-0.0.0.dev271.dist-info → omdev-0.0.0.dev272.dist-info}/top_level.txt +0 -0
omdev/.manifests.json
CHANGED
omdev/cli/clicli.py
CHANGED
@@ -75,6 +75,7 @@ class CliCli(ap.Cli):
|
|
75
75
|
@ap.cmd(
|
76
76
|
ap.arg('--url', default=DEFAULT_REINSTALL_URL),
|
77
77
|
ap.arg('--local', action='store_true'),
|
78
|
+
ap.arg('--no-deps', action='store_true'),
|
78
79
|
ap.arg('extra_deps', nargs='*'),
|
79
80
|
)
|
80
81
|
def reinstall(self) -> None:
|
@@ -82,11 +83,11 @@ class CliCli(ap.Cli):
|
|
82
83
|
|
83
84
|
#
|
84
85
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
)
|
86
|
+
dep_set: set[str] = set(self.args.extra_deps or [])
|
87
|
+
if not self.args.no_deps:
|
88
|
+
root_dists = get_root_dists()
|
89
|
+
dep_set.update(set(root_dists))
|
90
|
+
deps = sorted(dep_set - {install.DEFAULT_CLI_PKG}) # noqa
|
90
91
|
|
91
92
|
#
|
92
93
|
|
@@ -98,6 +99,7 @@ class CliCli(ap.Cli):
|
|
98
99
|
'pip',
|
99
100
|
'install',
|
100
101
|
'--dry-run',
|
102
|
+
install.DEFAULT_CLI_PKG,
|
101
103
|
*deps,
|
102
104
|
])
|
103
105
|
print('Pip install check successful')
|
@@ -136,11 +138,21 @@ class CliCli(ap.Cli):
|
|
136
138
|
|
137
139
|
if self.args.local:
|
138
140
|
install_src = inspect.getsource(install)
|
141
|
+
|
139
142
|
else:
|
140
143
|
url = self.args.url
|
141
144
|
parsed = urllib.parse.urlparse(url)
|
142
145
|
if parsed.scheme not in ('https', 'file'):
|
143
146
|
raise RuntimeError(f'Insecure url schem: {url}')
|
147
|
+
|
148
|
+
reco_cmd = ' '.join([
|
149
|
+
'curl -LsSf',
|
150
|
+
url,
|
151
|
+
'| python3 -',
|
152
|
+
*deps,
|
153
|
+
])
|
154
|
+
print(f'Recovery command:\n\n{reco_cmd}\n')
|
155
|
+
|
144
156
|
with urllib.request.urlopen(urllib.request.Request(url)) as resp: # noqa
|
145
157
|
install_src = resp.read().decode('utf-8')
|
146
158
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: omdev
|
3
|
-
Version: 0.0.0.
|
3
|
+
Version: 0.0.0.dev272
|
4
4
|
Summary: omdev
|
5
5
|
Author: wrmsr
|
6
6
|
License: BSD-3-Clause
|
@@ -12,7 +12,7 @@ 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: omlish==0.0.0.
|
15
|
+
Requires-Dist: omlish==0.0.0.dev272
|
16
16
|
Provides-Extra: all
|
17
17
|
Requires-Dist: black~=25.1; extra == "all"
|
18
18
|
Requires-Dist: pycparser~=2.22; extra == "all"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
omdev/.manifests.json,sha256=
|
1
|
+
omdev/.manifests.json,sha256=6ctfThA3b81KIbdc0sNzL63fepwPCfqzH7uRp0edxfc,10078
|
2
2
|
omdev/__about__.py,sha256=zoyBmj0TF_W82x0PED8gLtrmcYTng6UePKZ_RGiQVGE,1214
|
3
3
|
omdev/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
4
|
omdev/bracepy.py,sha256=I8EdqtDvxzAi3I8TuMEW-RBfwXfqKbwp06CfOdj3L1o,2743
|
@@ -101,7 +101,7 @@ omdev/ci/github/inject.py,sha256=Bfu6L6omd80ei1BbmhkCzmgK1GDWPFG1sCSDzwNNrQw,558
|
|
101
101
|
omdev/cli/__init__.py,sha256=V_l6VP1SZMlJbO-8CJwSuO9TThOy2S_oaPepNYgIrbE,37
|
102
102
|
omdev/cli/__main__.py,sha256=mOJpgc07o0r5luQ1DlX4tk2PqZkgmbwPbdzJ3KmtjgQ,138
|
103
103
|
omdev/cli/_pathhack.py,sha256=kxqb2kHap68Lkh8b211rDbcgj06hidBiAKA3f9posyc,2119
|
104
|
-
omdev/cli/clicli.py,sha256=
|
104
|
+
omdev/cli/clicli.py,sha256=b3ZuzsgTIq3-OR90a2R8eI2vNYHr_S53NdLkcttPkxc,4313
|
105
105
|
omdev/cli/install.py,sha256=C-W171YlIHt4Cfok-nWSMbHwWhqF_PFqq2HixFttYx8,4460
|
106
106
|
omdev/cli/main.py,sha256=dxZFyzKuwRykHHhoKKUA0fUa9QsY0dgdvLHbXNuIPCY,6694
|
107
107
|
omdev/cli/managers.py,sha256=BV98_n30Jj63OJrFgRoVZRfICxMLXEZKoEn4rMj9LV4,1160
|
@@ -254,9 +254,9 @@ omdev/tools/json/rendering.py,sha256=tMcjOW5edfozcMSTxxvF7WVTsbYLoe9bCKFh50qyaGw
|
|
254
254
|
omdev/tools/pawk/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
255
255
|
omdev/tools/pawk/__main__.py,sha256=VCqeRVnqT1RPEoIrqHFSu4PXVMg4YEgF4qCQm90-eRI,66
|
256
256
|
omdev/tools/pawk/pawk.py,sha256=zsEkfQX0jF5bn712uqPAyBSdJt2dno1LH2oeSMNfXQI,11424
|
257
|
-
omdev-0.0.0.
|
258
|
-
omdev-0.0.0.
|
259
|
-
omdev-0.0.0.
|
260
|
-
omdev-0.0.0.
|
261
|
-
omdev-0.0.0.
|
262
|
-
omdev-0.0.0.
|
257
|
+
omdev-0.0.0.dev272.dist-info/licenses/LICENSE,sha256=B_hVtavaA8zCYDW99DYdcpDLKz1n3BBRjZrcbv8uG8c,1451
|
258
|
+
omdev-0.0.0.dev272.dist-info/METADATA,sha256=MXzED4goEK4ZnR5d5caw7-PxnJXkKy13TaaqvN0pLns,1658
|
259
|
+
omdev-0.0.0.dev272.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
260
|
+
omdev-0.0.0.dev272.dist-info/entry_points.txt,sha256=dHLXFmq5D9B8qUyhRtFqTGWGxlbx3t5ejedjrnXNYLU,33
|
261
|
+
omdev-0.0.0.dev272.dist-info/top_level.txt,sha256=1nr7j30fEWgLYHW3lGR9pkdHkb7knv1U1ES1XRNVQ6k,6
|
262
|
+
omdev-0.0.0.dev272.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|