lockss-turtles 0.6.0.dev8__tar.gz → 0.6.0.dev10__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.dev8
3
+ Version: 0.6.0.dev10
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
@@ -28,7 +28,7 @@
28
28
 
29
29
  [project]
30
30
  name = "lockss-turtles"
31
- version = "0.6.0-dev8" # Always change in __init__.py, and at release time in README.rst and CHANGELOG.rst
31
+ version = "0.6.0-dev10" # 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"
@@ -5,7 +5,7 @@ Library and command line tool to manage LOCKSS plugin sets and LOCKSS plugin
5
5
  registries.
6
6
  """
7
7
 
8
- __version__ = '0.6.0-dev8'
8
+ __version__ = '0.6.0-dev10'
9
9
 
10
10
  __copyright__ = '''
11
11
  Copyright (c) 2000-2025, Board of Trustees of Leland Stanford Jr. University
@@ -107,7 +107,7 @@ class TurtlesApp(object):
107
107
  with plugin_registry_path.open('r') as fpr:
108
108
  for yaml_obj in yaml.safe_load_all(fpr):
109
109
  if isinstance(yaml_obj, dict) and yaml_obj.get('kind') in PluginRegistryKind.__args__:
110
- plugin_registry = PluginRegistry(**yaml_obj).initialize(plugin_registry_path)
110
+ plugin_registry = PluginRegistry(**yaml_obj).initialize(plugin_registry_path.parent)
111
111
  self._plugin_registries.append(plugin_registry)
112
112
  return self
113
113
 
@@ -118,7 +118,7 @@ class TurtlesApp(object):
118
118
  with plugin_registry_catalog_path.open('r') as fprc:
119
119
  for yaml_obj in yaml.safe_load_all(fprc):
120
120
  if isinstance(yaml_obj, dict) and yaml_obj.get('kind') in PluginRegistryCatalogKind.__args__:
121
- plugin_registry_catalog = PluginRegistryCatalog(**yaml_obj).initialize(plugin_registry_catalog_path)
121
+ plugin_registry_catalog = PluginRegistryCatalog(**yaml_obj).initialize(plugin_registry_catalog_path.parent)
122
122
  self._plugin_registry_catalogs.append(plugin_registry_catalog)
123
123
  for plugin_registry_file in plugin_registry_catalog.get_plugin_registry_files():
124
124
  self.load_plugin_registries(plugin_registry_catalog_path.joinpath(plugin_registry_file))
@@ -131,7 +131,7 @@ class TurtlesApp(object):
131
131
  with plugin_set_catalog_path.open('r') as fpsc:
132
132
  for yaml_obj in yaml.safe_load_all(fpsc):
133
133
  if isinstance(yaml_obj, dict) and yaml_obj.get('kind') in PluginSetCatalogKind.__args__:
134
- plugin_set_catalog = PluginSetCatalog(**yaml_obj).initialize(plugin_set_catalog_path)
134
+ plugin_set_catalog = PluginSetCatalog(**yaml_obj).initialize(plugin_set_catalog_path.parent)
135
135
  self._plugin_set_catalogs.append(plugin_set_catalog)
136
136
  for plugin_set_file in plugin_set_catalog.get_plugin_set_files():
137
137
  self.load_plugin_sets(plugin_set_catalog_path.joinpath(plugin_set_file))
@@ -144,7 +144,7 @@ class TurtlesApp(object):
144
144
  with plugin_set_path.open('r') as fps:
145
145
  for yaml_obj in yaml.safe_load_all(fps):
146
146
  if isinstance(yaml_obj, dict) and yaml_obj.get('kind') in PluginSetKind.__args__:
147
- plugin_set = PluginSet(**yaml_obj).initialize(plugin_set_path)
147
+ plugin_set = PluginSet(**yaml_obj).initialize(plugin_set_path.parent)
148
148
  self._plugin_sets.append(plugin_set)
149
149
  return self
150
150
 
@@ -153,7 +153,7 @@ class TurtlesApp(object):
153
153
  if self._plugin_signing_credentials:
154
154
  raise ValueError(f'Plugin signing credentials already loaded from: {self._plugin_signing_credentials.get_root()!s}')
155
155
  with plugin_signing_credentials_path.open('r') as fpsc:
156
- self._plugin_signing_credentials = PluginSigningCredentials(**yaml.safe_load(fpsc)).initialize(plugin_signing_credentials_path)
156
+ self._plugin_signing_credentials = PluginSigningCredentials(**yaml.safe_load(fpsc)).initialize(plugin_signing_credentials_path.parent)
157
157
  return self
158
158
 
159
159
  def release_plugin(self, plugin_ids: list[PluginIdentifier], layer_ids: list[PluginRegistryLayerIdentifier], interactive: bool=False) -> dict[str, list[tuple[str, str, Path, Plugin]]]:
@@ -199,7 +199,7 @@ class PluginRegistry(BaseModelWithRoot):
199
199
  id: PluginRegistryIdentifier = Field(title='Plugin Registry Identifier', description='An identifier for the plugin set')
200
200
  name: str = Field(title='Plugin Registry Name', description='A name for the plugin set')
201
201
  layout: PluginRegistryLayout = Field(title='Plugin Registry Layout', description='A layout for the plugin registry')
202
- layers: list[PluginRegistryLayer] = Field(min_length=1, title='Plugin Registry Layers', description="A non-empty list of plugin registry layers", alias='plugin-registry-layers')
202
+ layers: list[PluginRegistryLayer] = Field(min_length=1, title='Plugin Registry Layers', description="A non-empty list of plugin registry layers")
203
203
  plugin_identifiers: list[PluginIdentifier] = Field(min_length=1, title='Plugin Identifiers', description="A non-empty list of plugin identifiers", alias='plugin-identifiers')
204
204
  suppressed_plugin_identifiers: list[PluginIdentifier] = Field([], title='Suppressed Plugin Identifiers', description="A list of suppressed plugin identifiers", alias='suppressed-plugin-identifiers')
205
205