lockss-turtles 0.6.0.dev21__tar.gz → 0.6.0.dev22__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lockss-turtles
3
- Version: 0.6.0.dev21
3
+ Version: 0.6.0.dev22
4
4
  Summary: Library and command line tool to manage LOCKSS plugin sets and LOCKSS plugin registries
5
5
  License: BSD-3-Clause
6
6
  Author: Thib Guicherd-Callin
@@ -34,7 +34,7 @@ Description-Content-Type: text/x-rst
34
34
  Turtles
35
35
  =======
36
36
 
37
- .. |RELEASE| replace:: 0.6.0-dev20
37
+ .. |RELEASE| replace:: 0.6.0-dev22
38
38
  .. |RELEASE_DATE| replace:: ?
39
39
 
40
40
  .. |HELP| replace:: ``--help/-h``
@@ -2,7 +2,7 @@
2
2
  Turtles
3
3
  =======
4
4
 
5
- .. |RELEASE| replace:: 0.6.0-dev20
5
+ .. |RELEASE| replace:: 0.6.0-dev22
6
6
  .. |RELEASE_DATE| replace:: ?
7
7
 
8
8
  .. |HELP| replace:: ``--help/-h``
@@ -28,7 +28,7 @@
28
28
 
29
29
  [project]
30
30
  name = "lockss-turtles"
31
- version = "0.6.0-dev21" # Always change in __init__.py, and at release time in README.rst and CHANGELOG.rst
31
+ version = "0.6.0-dev22" # Always change in __init__.py, and at release time in README.rst and CHANGELOG.rst
32
32
  description = "Library and command line tool to manage LOCKSS plugin sets and LOCKSS plugin registries"
33
33
  license = { text = "BSD-3-Clause" }
34
34
  readme = "README.rst"
@@ -6,7 +6,7 @@ registries.
6
6
  """
7
7
 
8
8
  #: This package's version.
9
- __version__ = '0.6.0-dev21'
9
+ __version__ = '0.6.0-dev22'
10
10
 
11
11
  #: This package's copyright.
12
12
  __copyright__ = '''
@@ -144,22 +144,18 @@ class PluginJarOptions(BaseModel):
144
144
 
145
145
 
146
146
  class NonInteractiveOptions(BaseModel):
147
- non_interactive: Optional[bool] = Field(False, description='(plugin signing credentials) disallow interactive prompts')
147
+ non_interactive: Optional[bool] = Field(False,
148
+ description='(plugin signing credentials) disallow interactive prompts')
148
149
 
149
150
 
150
- class BuildPluginCommand(OutputFormatOptions, NonInteractiveOptions, PluginBuildingOptions, PluginIdentifierOptions):
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 ReleasePluginCommand(OutputFormatOptions, NonInteractiveOptions, PluginDeploymentOptions, PluginBuildingOptions, PluginIdentifierOptions):
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: