lockss-turtles 0.3.0.dev3__py3-none-any.whl → 0.3.0.dev5__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/app.py +1 -1
- lockss/turtles/cli.py +5 -5
- {lockss_turtles-0.3.0.dev3.dist-info → lockss_turtles-0.3.0.dev5.dist-info}/METADATA +16 -18
- {lockss_turtles-0.3.0.dev3.dist-info → lockss_turtles-0.3.0.dev5.dist-info}/RECORD +8 -8
- {lockss_turtles-0.3.0.dev3.dist-info → lockss_turtles-0.3.0.dev5.dist-info}/LICENSE +0 -0
- {lockss_turtles-0.3.0.dev3.dist-info → lockss_turtles-0.3.0.dev5.dist-info}/WHEEL +0 -0
- {lockss_turtles-0.3.0.dev3.dist-info → lockss_turtles-0.3.0.dev5.dist-info}/entry_points.txt +0 -0
lockss/turtles/__init__.py
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
29
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
30
30
|
|
|
31
|
-
__version__ = '0.3.0-
|
|
31
|
+
__version__ = '0.3.0-dev5'
|
|
32
32
|
|
|
33
33
|
__copyright__ = '''\
|
|
34
34
|
Copyright (c) 2000-2023, Board of Trustees of Leland Stanford Jr. University
|
lockss/turtles/app.py
CHANGED
|
@@ -120,7 +120,7 @@ class TurtlesApp(object):
|
|
|
120
120
|
def load_plugin_signing_credentials(self, plugin_signing_credentials_path=None):
|
|
121
121
|
if self._plugin_signing_credentials is None:
|
|
122
122
|
plugin_signing_credentials_path = _path(plugin_signing_credentials_path) if plugin_signing_credentials_path else self._select_file(TurtlesApp.PLUGIN_SIGNING_CREDENTIALS)
|
|
123
|
-
plugin_signing_credentials_schema_path = importlib.resources.path(lockss.turtles.resources, TurtlesApp.
|
|
123
|
+
plugin_signing_credentials_schema_path = importlib.resources.path(lockss.turtles.resources, TurtlesApp.PLUGIN_SIGNING_CREDENTIALS_SCHEMA)
|
|
124
124
|
self._plugin_signing_credentials = _load_and_validate(plugin_signing_credentials_schema_path, plugin_signing_credentials_path)
|
|
125
125
|
|
|
126
126
|
# Returns plugin_id -> list of (registry_id, layer_id, dst_path, plugin)
|
lockss/turtles/cli.py
CHANGED
|
@@ -132,7 +132,7 @@ class TurtlesCli(object):
|
|
|
132
132
|
def _build_plugin(self):
|
|
133
133
|
# Prerequisites
|
|
134
134
|
self._app.load_plugin_sets(self._args.plugin_set_catalog)
|
|
135
|
-
self._app.load_plugin_signing_credentials(self._args.
|
|
135
|
+
self._app.load_plugin_signing_credentials(self._args.plugin_signing_credentials)
|
|
136
136
|
self._obtain_password()
|
|
137
137
|
# Action
|
|
138
138
|
# ... plugin_id -> (set_id, jar_path, plugin)
|
|
@@ -228,7 +228,7 @@ class TurtlesCli(object):
|
|
|
228
228
|
type=Path,
|
|
229
229
|
help=f'load plugin set catalog from %(metavar)s (default: {" or ".join(map(str, self._app.default_plugin_set_catalogs()))})')
|
|
230
230
|
|
|
231
|
-
def
|
|
231
|
+
def _make_option_plugin_signing_credentials(self, container):
|
|
232
232
|
container.add_argument('--plugin-signing-credentials', '-c',
|
|
233
233
|
metavar='FILE',
|
|
234
234
|
type=Path,
|
|
@@ -330,7 +330,7 @@ class TurtlesCli(object):
|
|
|
330
330
|
self._make_options_identifiers(parser)
|
|
331
331
|
self._make_option_password(parser)
|
|
332
332
|
self._make_option_plugin_set_catalog(parser)
|
|
333
|
-
self.
|
|
333
|
+
self._make_option_plugin_signing_credentials(parser)
|
|
334
334
|
|
|
335
335
|
def _make_parser_copyright(self, container):
|
|
336
336
|
parser = container.add_parser('copyright',
|
|
@@ -365,7 +365,7 @@ class TurtlesCli(object):
|
|
|
365
365
|
self._make_option_password(parser)
|
|
366
366
|
self._make_option_plugin_registry_catalog(parser)
|
|
367
367
|
self._make_option_plugin_set_catalog(parser)
|
|
368
|
-
self.
|
|
368
|
+
self._make_option_plugin_signing_credentials(parser)
|
|
369
369
|
self._make_option_production(parser)
|
|
370
370
|
self._make_option_testing(parser)
|
|
371
371
|
|
|
@@ -394,7 +394,7 @@ class TurtlesCli(object):
|
|
|
394
394
|
# Prerequisites
|
|
395
395
|
self._app.load_plugin_sets(self._args.plugin_set_catalog)
|
|
396
396
|
self._app.load_plugin_registries(self._args.plugin_registries)
|
|
397
|
-
self._app.load_plugin_signing_credentials(self._args.
|
|
397
|
+
self._app.load_plugin_signing_credentials(self._args.plugin_signing_credentials)
|
|
398
398
|
self._obtain_password()
|
|
399
399
|
# Action
|
|
400
400
|
# ... plugin_id -> list of (registry_id, layer_id, dst_path, plugin)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: lockss-turtles
|
|
3
|
-
Version: 0.3.0.
|
|
3
|
+
Version: 0.3.0.dev5
|
|
4
4
|
Summary: Tool to manage LOCKSS plugin sets and LOCKSS plugin repositories
|
|
5
5
|
Home-page: https://www.lockss.org/
|
|
6
6
|
License: BSD-3-Clause
|
|
@@ -47,9 +47,7 @@ Turtles
|
|
|
47
47
|
|
|
48
48
|
Turtles is a tool to manage LOCKSS plugin sets and LOCKSS plugin registries.
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
**Latest release:** 0.3.0-dev3 (2023-03-06)
|
|
50
|
+
**Latest release:** 0.3.0-dev5 (2023-03-06)
|
|
53
51
|
|
|
54
52
|
-------------
|
|
55
53
|
Prerequisites
|
|
@@ -75,20 +73,6 @@ You can install it with ``pip``, in your native environment or in a virtual envi
|
|
|
75
73
|
|
|
76
74
|
The installation process adds a ``turtles`` executable to the ``PATH``; you can check that the installation is functional by running ``turtles version`` or ``turtles --help``.
|
|
77
75
|
|
|
78
|
-
-------------------
|
|
79
|
-
Configuration Files
|
|
80
|
-
-------------------
|
|
81
|
-
|
|
82
|
-
All Turtles configuration files are YAML files and have a top-level ``kind`` key that declares what kind of configuration file it is.
|
|
83
|
-
|
|
84
|
-
Some Turtles commands require a `Plugin Set Catalog`_, `Plugin Registry Catalog`_, or `Plugin Signing Credentials`_. You can specify the configuration file to use via the appropriate command line option (for example |PLUGIN_SET_CATALOG|). Otherwise, Turtles will look for then appropriate configuration file (for example ``plugin-set-catalog.yaml``) in several standard directories, in this order:
|
|
85
|
-
|
|
86
|
-
* ``$XDG_CONFIG_HOME/lockss.turtles`` (by default ``$HOME/.config/lockss.turtles``)
|
|
87
|
-
|
|
88
|
-
* ``/usr/local/share/lockss.turtles``
|
|
89
|
-
|
|
90
|
-
* ``/etc/lockss.turtles``
|
|
91
|
-
|
|
92
76
|
----------
|
|
93
77
|
Invocation
|
|
94
78
|
----------
|
|
@@ -105,6 +89,20 @@ Help messages and this document use ``turtles`` throughout, but the two invocati
|
|
|
105
89
|
|
|
106
90
|
Turtles uses `Commands`_, in the style of programs like ``git``, ``dnf``/``yum``, ``apt``/``apt-get``, and the like. You can see the list of available `Commands`_ by invoking ``turtles --help``.
|
|
107
91
|
|
|
92
|
+
-------------------
|
|
93
|
+
Configuration Files
|
|
94
|
+
-------------------
|
|
95
|
+
|
|
96
|
+
All Turtles configuration files are YAML files and have a top-level ``kind`` key that declares what kind of configuration file it is.
|
|
97
|
+
|
|
98
|
+
Some Turtles commands require a `Plugin Set Catalog`_, `Plugin Registry Catalog`_, or `Plugin Signing Credentials`_. You can specify the configuration file to use via the appropriate command line option (for example |PLUGIN_SET_CATALOG|). Otherwise, Turtles will look for then appropriate configuration file (for example ``plugin-set-catalog.yaml``) in several standard directories, in this order:
|
|
99
|
+
|
|
100
|
+
* ``$XDG_CONFIG_HOME/lockss.turtles`` (by default ``$HOME/.config/lockss.turtles``)
|
|
101
|
+
|
|
102
|
+
* ``/usr/local/share/lockss.turtles``
|
|
103
|
+
|
|
104
|
+
* ``/etc/lockss.turtles``
|
|
105
|
+
|
|
108
106
|
----------------
|
|
109
107
|
Building Plugins
|
|
110
108
|
----------------
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
CHANGELOG.rst,sha256=uYlYvT8u-qqVvvzC2HmoEwuEX2cPInwDeSCAVCmKIXI,2562
|
|
2
|
-
lockss/turtles/__init__.py,sha256=
|
|
2
|
+
lockss/turtles/__init__.py,sha256=6MjW8Emk7z2veehytkLvKw-l5VF-7kPOPvc2WibR_uU,3162
|
|
3
3
|
lockss/turtles/__main__.py,sha256=57NMiI-NAibLExMX0Y6QApQhaDUblHTQqCDSiWBVt6k,1633
|
|
4
|
-
lockss/turtles/app.py,sha256=
|
|
5
|
-
lockss/turtles/cli.py,sha256=
|
|
4
|
+
lockss/turtles/app.py,sha256=G6Qe3d6gvgH2nyHn-mU5VR5zaN9E1Wn7Wx5JdeUVCDM,9043
|
|
5
|
+
lockss/turtles/cli.py,sha256=oZKVy-Ri6OAiJj27bcTqQPDbCfoJvTTaBuYDky5YFcA,21155
|
|
6
6
|
lockss/turtles/plugin.py,sha256=nj1K02oPPLH2XSJjRTqpJjCuS0Cf9by2lm9sPgleKMc,4279
|
|
7
7
|
lockss/turtles/plugin_registry.py,sha256=I5l17hb3-J8-fBSYpKKdU-eV_WMmsdpYt3ul_mHRPEE,9013
|
|
8
8
|
lockss/turtles/plugin_set.py,sha256=hnJfBK76YpfmbF0vMvkqIWi6EyKRzyvVG4yjwLFYGRc,10316
|
|
@@ -13,8 +13,8 @@ lockss/turtles/resources/plugin-set-catalog-schema.json,sha256=UbB0BCd9jdROGyXf2
|
|
|
13
13
|
lockss/turtles/resources/plugin-set-schema.json,sha256=EeptOiipJdWwfLIxUHXap59Hbq32UXzT2MpI2eADM1U,2338
|
|
14
14
|
lockss/turtles/resources/plugin-signing-credentials-schema.json,sha256=VLld14jOMG8V_ru0jtQD5GunNDNLp2MoRGMSZg9xVn8,753
|
|
15
15
|
lockss/turtles/util.py,sha256=g3pGADgnmaQce3pNrpA1VjuSlNUJUAITyPyM6pNdVOA,2430
|
|
16
|
-
lockss_turtles-0.3.0.
|
|
17
|
-
lockss_turtles-0.3.0.
|
|
18
|
-
lockss_turtles-0.3.0.
|
|
19
|
-
lockss_turtles-0.3.0.
|
|
20
|
-
lockss_turtles-0.3.0.
|
|
16
|
+
lockss_turtles-0.3.0.dev5.dist-info/LICENSE,sha256=ArAnVWK-WhSxCVQWDF_PWBETwjSZ35HfugnUJPqPXyg,1506
|
|
17
|
+
lockss_turtles-0.3.0.dev5.dist-info/METADATA,sha256=T40immViulkYLk5Wrg4UYqMjY8x8nCrUGw30ComPFXM,31911
|
|
18
|
+
lockss_turtles-0.3.0.dev5.dist-info/WHEEL,sha256=kLuE8m1WYU0Ig0_YEGrXyTtiJvKPpLpDEiChiNyei5Y,88
|
|
19
|
+
lockss_turtles-0.3.0.dev5.dist-info/entry_points.txt,sha256=25BAVFSBRKWAWiXIGZgcr1ypt2mV7nj31Jl8WcNZZOk,51
|
|
20
|
+
lockss_turtles-0.3.0.dev5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{lockss_turtles-0.3.0.dev3.dist-info → lockss_turtles-0.3.0.dev5.dist-info}/entry_points.txt
RENAMED
|
File without changes
|