lockss-turtles 0.4.0.dev4__tar.gz → 0.5.0.dev1__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.
Files changed (19) hide show
  1. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/CHANGELOG.rst +9 -1
  2. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/PKG-INFO +15 -11
  3. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/README.rst +9 -5
  4. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/pyproject.toml +5 -5
  5. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/__init__.py +1 -1
  6. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/plugin.py +7 -0
  7. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/plugin_set.py +7 -3
  8. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/LICENSE +0 -0
  9. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/__main__.py +0 -0
  10. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/app.py +0 -0
  11. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/cli.py +0 -0
  12. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/plugin_registry.py +0 -0
  13. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/resources/__init__.py +0 -0
  14. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/resources/plugin-registry-catalog-schema.json +0 -0
  15. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/resources/plugin-registry-schema.json +0 -0
  16. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/resources/plugin-set-catalog-schema.json +0 -0
  17. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/resources/plugin-set-schema.json +0 -0
  18. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/resources/plugin-signing-credentials-schema.json +0 -0
  19. {lockss_turtles-0.4.0.dev4 → lockss_turtles-0.5.0.dev1}/src/lockss/turtles/util.py +0 -0
@@ -3,11 +3,19 @@ Release Notes
3
3
  =============
4
4
 
5
5
  -----
6
- 0.4.0
6
+ 0.5.0
7
7
  -----
8
8
 
9
9
  Released: ?
10
10
 
11
+ * **Features**
12
+
13
+ -----
14
+ 0.4.0
15
+ -----
16
+
17
+ Released: 2023-05-17
18
+
11
19
  * **Features**
12
20
 
13
21
  * ``directory`` plugin registry layout now has the same file naming convention option as ``rcs``.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lockss-turtles
3
- Version: 0.4.0.dev4
3
+ Version: 0.5.0.dev1
4
4
  Summary: Tool to manage LOCKSS plugin sets and LOCKSS plugin registries
5
5
  Home-page: https://www.lockss.org/
6
6
  License: BSD-3-Clause
7
7
  Author: Thib Guicherd-Callin
8
8
  Author-email: thib@cs.stanford.edu
9
- Requires-Python: >=3.7,<4.0
9
+ Requires-Python: >=3.8,<4.0
10
10
  Classifier: Development Status :: 5 - Production/Stable
11
11
  Classifier: Environment :: Console
12
12
  Classifier: Intended Audience :: Developers
@@ -14,16 +14,16 @@ Classifier: Intended Audience :: System Administrators
14
14
  Classifier: License :: OSI Approved :: BSD License
15
15
  Classifier: Operating System :: POSIX :: Linux
16
16
  Classifier: Programming Language :: Python :: 3
17
- Classifier: Programming Language :: Python :: 3.7
18
17
  Classifier: Programming Language :: Python :: 3.8
19
18
  Classifier: Programming Language :: Python :: 3.9
20
19
  Classifier: Programming Language :: Python :: 3.10
21
20
  Classifier: Programming Language :: Python :: 3.11
21
+ Classifier: Programming Language :: Python :: 3.12
22
22
  Classifier: Topic :: Utilities
23
23
  Requires-Dist: java-manifest (>=1.1.0,<2.0.0)
24
- Requires-Dist: jsonschema (>=4.17.3,<5.0.0)
25
- Requires-Dist: pyyaml (>=6.0,<7.0)
26
- Requires-Dist: rich-argparse (>=1.1.0,<2.0.0)
24
+ Requires-Dist: jsonschema (>=4.23.0,<5.0.0)
25
+ Requires-Dist: pyyaml (>=6.0.2,<7.0.0)
26
+ Requires-Dist: rich-argparse (>=1.5.2,<2.0.0)
27
27
  Requires-Dist: tabulate (>=0.9.0,<0.10.0)
28
28
  Requires-Dist: xdg (>=6.0.0,<7.0.0)
29
29
  Project-URL: Repository, https://github.com/lockss/lockss-turtles
@@ -33,7 +33,7 @@ Description-Content-Type: text/x-rst
33
33
  Turtles
34
34
  =======
35
35
 
36
- .. |RELEASE| replace:: 0.4.0-dev4
36
+ .. |RELEASE| replace:: 0.5.0-dev1
37
37
  .. |RELEASE_DATE| replace:: ?
38
38
 
39
39
  .. |HELP| replace:: ``--help/-h``
@@ -49,6 +49,10 @@ Turtles
49
49
  .. |PRODUCTION| replace:: ``--production/-p``
50
50
  .. |TESTING| replace:: ``--testing/-t``
51
51
 
52
+ .. image:: https://assets.lockss.org/images/logos/turtles/turtles_128x128.png
53
+ :alt: Turtles logo
54
+ :align: right
55
+
52
56
  Turtles is a tool to manage LOCKSS plugin sets and LOCKSS plugin registries.
53
57
 
54
58
  **Latest release:** |RELEASE| (|RELEASE_DATE|)
@@ -830,7 +834,7 @@ The command needs:
830
834
 
831
835
  * A `Plugin Registry Catalog`_, either from the |PLUGIN_REGISTRY_CATALOG| option or from ``plugin-signing-credentials.yaml`` in the `Configuration Files`_.
832
836
 
833
- * One or more plugin registry layer IDs, from the `Plugin Registry Layer Options`_ (|IDENTIFIER| options, |IDENTIFIERS| options, and alternatively, |TESTING| options, |PRODUCTION| option).
837
+ * One or more plugin registry layer IDs, from the `Plugin Registry Layer Options`_ (|LAYER| options, |LAYERS| options, and alternatively, |TESTING| options, |PRODUCTION| option).
834
838
 
835
839
  * One or more JAR paths. The list of JAR paths to process is derived from:
836
840
 
@@ -880,7 +884,7 @@ The ``license`` command displays the license terms for Turtles and exits.
880
884
  ``release-plugin`` (``rp``)
881
885
  ---------------------------
882
886
 
883
- The ``release-plugin`` command is used for `Building Plugins`_ and `Deploying Plugins`, being essentially `build-plugin`_ followed by `deploy-plugin`_. It has its own |HELP| option::
887
+ The ``release-plugin`` command is used for `Building Plugins`_ and `Deploying Plugins`_, being essentially `build-plugin`_ followed by `deploy-plugin`_. It has its own |HELP| option::
884
888
 
885
889
  usage: turtles release-plugin [-h] [--output-format FMT] [--password PASS]
886
890
  [--plugin-registry-catalog FILE]
@@ -1020,9 +1024,9 @@ Plugin Registry Layer Options
1020
1024
 
1021
1025
  Commands that are `Deploying Plugins`_ expect one or more plugin registry layer IDs. The list of plugin registry layer IDs to target is derived from:
1022
1026
 
1023
- * The plugin registry layer IDs listed as |JAR| options.
1027
+ * The plugin registry layer IDs listed as |LAYER| options.
1024
1028
 
1025
- * The plugin registry layer IDs found in the files listed as |JARS| options.
1029
+ * The plugin registry layer IDs found in the files listed as |LAYERS| options.
1026
1030
 
1027
1031
  As a convenience, the following synonyms also exist:
1028
1032
 
@@ -2,7 +2,7 @@
2
2
  Turtles
3
3
  =======
4
4
 
5
- .. |RELEASE| replace:: 0.4.0-dev4
5
+ .. |RELEASE| replace:: 0.5.0-dev1
6
6
  .. |RELEASE_DATE| replace:: ?
7
7
 
8
8
  .. |HELP| replace:: ``--help/-h``
@@ -18,6 +18,10 @@ Turtles
18
18
  .. |PRODUCTION| replace:: ``--production/-p``
19
19
  .. |TESTING| replace:: ``--testing/-t``
20
20
 
21
+ .. image:: https://assets.lockss.org/images/logos/turtles/turtles_128x128.png
22
+ :alt: Turtles logo
23
+ :align: right
24
+
21
25
  Turtles is a tool to manage LOCKSS plugin sets and LOCKSS plugin registries.
22
26
 
23
27
  **Latest release:** |RELEASE| (|RELEASE_DATE|)
@@ -799,7 +803,7 @@ The command needs:
799
803
 
800
804
  * A `Plugin Registry Catalog`_, either from the |PLUGIN_REGISTRY_CATALOG| option or from ``plugin-signing-credentials.yaml`` in the `Configuration Files`_.
801
805
 
802
- * One or more plugin registry layer IDs, from the `Plugin Registry Layer Options`_ (|IDENTIFIER| options, |IDENTIFIERS| options, and alternatively, |TESTING| options, |PRODUCTION| option).
806
+ * One or more plugin registry layer IDs, from the `Plugin Registry Layer Options`_ (|LAYER| options, |LAYERS| options, and alternatively, |TESTING| options, |PRODUCTION| option).
803
807
 
804
808
  * One or more JAR paths. The list of JAR paths to process is derived from:
805
809
 
@@ -849,7 +853,7 @@ The ``license`` command displays the license terms for Turtles and exits.
849
853
  ``release-plugin`` (``rp``)
850
854
  ---------------------------
851
855
 
852
- The ``release-plugin`` command is used for `Building Plugins`_ and `Deploying Plugins`, being essentially `build-plugin`_ followed by `deploy-plugin`_. It has its own |HELP| option::
856
+ The ``release-plugin`` command is used for `Building Plugins`_ and `Deploying Plugins`_, being essentially `build-plugin`_ followed by `deploy-plugin`_. It has its own |HELP| option::
853
857
 
854
858
  usage: turtles release-plugin [-h] [--output-format FMT] [--password PASS]
855
859
  [--plugin-registry-catalog FILE]
@@ -989,9 +993,9 @@ Plugin Registry Layer Options
989
993
 
990
994
  Commands that are `Deploying Plugins`_ expect one or more plugin registry layer IDs. The list of plugin registry layer IDs to target is derived from:
991
995
 
992
- * The plugin registry layer IDs listed as |JAR| options.
996
+ * The plugin registry layer IDs listed as |LAYER| options.
993
997
 
994
- * The plugin registry layer IDs found in the files listed as |JARS| options.
998
+ * The plugin registry layer IDs found in the files listed as |LAYERS| options.
995
999
 
996
1000
  As a convenience, the following synonyms also exist:
997
1001
 
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "lockss-turtles"
3
- version = "0.4.0-dev4"
3
+ version = "0.5.0-dev1"
4
4
  description = "Tool to manage LOCKSS plugin sets and LOCKSS plugin registries"
5
5
  license = "BSD-3-Clause"
6
6
  authors = [
@@ -25,11 +25,11 @@ include = [
25
25
  ]
26
26
 
27
27
  [tool.poetry.dependencies]
28
- python = "^3.7"
28
+ python = "^3.8"
29
29
  java-manifest = "^1.1.0"
30
- jsonschema = "^4.17.3"
31
- pyyaml = "^6.0"
32
- rich-argparse = "^1.1.0"
30
+ jsonschema = "^4.23.0"
31
+ pyyaml = "^6.0.2"
32
+ rich-argparse = "^1.5.2"
33
33
  tabulate = "^0.9.0"
34
34
  xdg = "^6.0.0"
35
35
 
@@ -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.4.0-dev4'
31
+ __version__ = '0.5.0-dev1'
32
32
 
33
33
  __copyright__ = '''
34
34
  Copyright (c) 2000-2023, Board of Trustees of Leland Stanford Jr. University
@@ -87,6 +87,13 @@ class Plugin(object):
87
87
  if tag != 'map':
88
88
  raise RuntimeError(f'{plugin_path!s}: invalid root element: {tag}')
89
89
 
90
+ def get_aux_packages(self):
91
+ def _get_aux_packages_result(r):
92
+ if r.tag != 'list':
93
+ raise ValueError(f'plugin_aux_packages expects <list>, was <{r.tag}>')
94
+ return [x.text for x in r.findall('string')]
95
+ return self._only_one('plugin_aux_packages', result=_get_aux_packages_result) or []
96
+
90
97
  def get_identifier(self):
91
98
  return self._only_one('plugin_identifier')
92
99
 
@@ -160,15 +160,19 @@ class AntPluginSet(PluginSet):
160
160
 
161
161
  # Returns (jar_path, plugin)
162
162
  def _little_build(self, plugin_id, keystore_path, keystore_alias, keystore_password=None):
163
- plugin = self.make_plugin(plugin_id)
163
+ cur_id = plugin_id
164
164
  # Get all directories for jarplugin -d
165
165
  dirs = list()
166
- cur_id = plugin_id
167
166
  while cur_id is not None:
167
+ cur_plugin = self.make_plugin(cur_id)
168
168
  cur_dir = Plugin.id_to_dir(cur_id)
169
169
  if cur_dir not in dirs:
170
170
  dirs.append(cur_dir)
171
- cur_id = self.make_plugin(cur_id).get_parent_identifier()
171
+ for aux_package in cur_plugin.get_aux_packages():
172
+ aux_dir = Plugin.id_to_dir(f'{aux_package}.FAKEPlugin')
173
+ if aux_dir not in dirs:
174
+ dirs.append(aux_dir)
175
+ cur_id = cur_plugin.get_parent_identifier()
172
176
  # Invoke jarplugin
173
177
  jar_fstr = Plugin.id_to_file(plugin_id)
174
178
  jar_path = self.get_root_path().joinpath('plugins/jars', f'{plugin_id}.jar')