lockss-turtles 0.6.0.dev21__py3-none-any.whl → 0.6.0.dev23__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.
- lockss/turtles/__init__.py +1 -1
- lockss/turtles/cli.py +12 -16
- lockss/turtles/plugin_registry.py +468 -44
- lockss/turtles/plugin_set.py +325 -79
- lockss/turtles/util.py +44 -3
- lockss_turtles-0.6.0.dev23.dist-info/METADATA +64 -0
- lockss_turtles-0.6.0.dev23.dist-info/RECORD +15 -0
- lockss_turtles-0.6.0.dev21.dist-info/METADATA +0 -1042
- lockss_turtles-0.6.0.dev21.dist-info/RECORD +0 -15
- {lockss_turtles-0.6.0.dev21.dist-info → lockss_turtles-0.6.0.dev23.dist-info}/LICENSE +0 -0
- {lockss_turtles-0.6.0.dev21.dist-info → lockss_turtles-0.6.0.dev23.dist-info}/WHEEL +0 -0
- {lockss_turtles-0.6.0.dev21.dist-info → lockss_turtles-0.6.0.dev23.dist-info}/entry_points.txt +0 -0
lockss/turtles/__init__.py
CHANGED
lockss/turtles/cli.py
CHANGED
|
@@ -144,22 +144,18 @@ class PluginJarOptions(BaseModel):
|
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
class NonInteractiveOptions(BaseModel):
|
|
147
|
-
non_interactive: Optional[bool] = Field(False,
|
|
147
|
+
non_interactive: Optional[bool] = Field(False,
|
|
148
|
+
description='(plugin signing credentials) disallow interactive prompts')
|
|
148
149
|
|
|
149
150
|
|
|
150
|
-
class
|
|
151
|
-
pass
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
class DeployPluginCommand(OutputFormatOptions, NonInteractiveOptions, PluginDeploymentOptions, PluginJarOptions):
|
|
155
|
-
pass
|
|
151
|
+
class TurtlesCommand(BaseModel):
|
|
156
152
|
|
|
153
|
+
class BuildPluginCommand(OutputFormatOptions, NonInteractiveOptions, PluginBuildingOptions, PluginIdentifierOptions): pass
|
|
157
154
|
|
|
158
|
-
class
|
|
159
|
-
pass
|
|
155
|
+
class DeployPluginCommand(OutputFormatOptions, NonInteractiveOptions, PluginDeploymentOptions, PluginJarOptions): pass
|
|
160
156
|
|
|
157
|
+
class ReleasePluginCommand(OutputFormatOptions, NonInteractiveOptions, PluginDeploymentOptions, PluginBuildingOptions, PluginIdentifierOptions): pass
|
|
161
158
|
|
|
162
|
-
class TurtlesCommand(BaseModel):
|
|
163
159
|
bp: Optional[BuildPluginCommand] = Field(description='synonym for: build-plugin')
|
|
164
160
|
build_plugin: Optional[BuildPluginCommand] = Field(description='build plugins', alias='build-plugin')
|
|
165
161
|
copyright: Optional[StringCommand.type(__copyright__)] = Field(description=COPYRIGHT_DESCRIPTION)
|
|
@@ -237,10 +233,10 @@ class TurtlesCli(BaseCli[TurtlesCommand]):
|
|
|
237
233
|
# if len(result) > 0:
|
|
238
234
|
# self._tabulate(title, result, headers)
|
|
239
235
|
|
|
240
|
-
def _bp(self, build_plugin_command: BuildPluginCommand) -> None:
|
|
236
|
+
def _bp(self, build_plugin_command: TurtlesCommand.BuildPluginCommand) -> None:
|
|
241
237
|
return self._build_plugin(build_plugin_command)
|
|
242
238
|
|
|
243
|
-
def _build_plugin(self, build_plugin_command: BuildPluginCommand) -> None:
|
|
239
|
+
def _build_plugin(self, build_plugin_command: TurtlesCommand.BuildPluginCommand) -> None:
|
|
244
240
|
errs = []
|
|
245
241
|
for psc in build_plugin_command.get_plugin_set_catalogs():
|
|
246
242
|
try:
|
|
@@ -276,7 +272,7 @@ class TurtlesCli(BaseCli[TurtlesCommand]):
|
|
|
276
272
|
def _copyright(self, string_command: StringCommand) -> None:
|
|
277
273
|
self._do_string_command(string_command)
|
|
278
274
|
|
|
279
|
-
def _deploy_plugin(self, deploy_plugin_command: DeployPluginCommand) -> None:
|
|
275
|
+
def _deploy_plugin(self, deploy_plugin_command: TurtlesCommand.DeployPluginCommand) -> None:
|
|
280
276
|
errs = []
|
|
281
277
|
for prc in deploy_plugin_command.get_plugin_registry_catalogs():
|
|
282
278
|
try:
|
|
@@ -307,7 +303,7 @@ class TurtlesCli(BaseCli[TurtlesCommand]):
|
|
|
307
303
|
def _do_string_command(self, string_command: StringCommand) -> None:
|
|
308
304
|
string_command()
|
|
309
305
|
|
|
310
|
-
def _dp(self, deploy_plugin_command: DeployPluginCommand) -> None:
|
|
306
|
+
def _dp(self, deploy_plugin_command: TurtlesCommand.DeployPluginCommand) -> None:
|
|
311
307
|
return self._deploy_plugin(deploy_plugin_command)
|
|
312
308
|
|
|
313
309
|
def _license(self, string_command: StringCommand) -> None:
|
|
@@ -322,7 +318,7 @@ class TurtlesCli(BaseCli[TurtlesCommand]):
|
|
|
322
318
|
self._parser.error('no plugin signing password specified while in non-interactive mode')
|
|
323
319
|
self._app.set_password(lambda: _p)
|
|
324
320
|
|
|
325
|
-
def _release_plugin(self, release_plugin_command: ReleasePluginCommand) -> None:
|
|
321
|
+
def _release_plugin(self, release_plugin_command: TurtlesCommand.ReleasePluginCommand) -> None:
|
|
326
322
|
errs = []
|
|
327
323
|
for psc in release_plugin_command.get_plugin_set_catalogs():
|
|
328
324
|
try:
|
|
@@ -371,7 +367,7 @@ class TurtlesCli(BaseCli[TurtlesCommand]):
|
|
|
371
367
|
headers=['Plugin identifier', 'Plugin version', 'Plugin registry', 'Plugin registry layer', 'Deployed JAR'],
|
|
372
368
|
tablefmt=release_plugin_command.output_format))
|
|
373
369
|
|
|
374
|
-
def _rp(self, release_plugin_command: ReleasePluginCommand) -> None:
|
|
370
|
+
def _rp(self, release_plugin_command: TurtlesCommand.ReleasePluginCommand) -> None:
|
|
375
371
|
self._release_plugin(release_plugin_command)
|
|
376
372
|
|
|
377
373
|
def _version(self, string_command: StringCommand) -> None:
|