lockss-turtles 0.6.0.dev12__py3-none-any.whl → 0.6.0.dev14__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.
@@ -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-dev12'
8
+ __version__ = '0.6.0-dev14'
9
9
 
10
10
  __copyright__ = '''
11
11
  Copyright (c) 2000-2025, Board of Trustees of Leland Stanford Jr. University
@@ -132,11 +132,11 @@ class DirectoryPluginRegistryLayout(BasePluginRegistryLayout):
132
132
  file_naming_convention: Optional[PluginRegistryLayoutFileNamingConvention] = Field(BasePluginRegistryLayout.FILE_NAMING_CONVENTION_DEFAULT, **BasePluginRegistryLayout.FILE_NAMING_CONVENTION_FIELD)
133
133
 
134
134
  def _copy_jar(self, src_path: Path, dst_path: Path, interactive: bool=False) -> None:
135
- basename = dst_path.name
136
- subprocess.run(['cp', str(src_path), str(dst_path)], check=True, cwd=self.get_path())
135
+ dst_dir, basename = dst_path.parent, dst_path.name
136
+ subprocess.run(['cp', str(src_path), str(dst_path)], check=True, cwd=dst_dir)
137
137
  if subprocess.run('command -v selinuxenabled > /dev/null && selinuxenabled && command -v chcon > /dev/null', shell=True).returncode == 0:
138
138
  cmd = ['chcon', '-t', 'httpd_sys_content_t', basename]
139
- subprocess.run(cmd, check=True, cwd=self.get_path())
139
+ subprocess.run(cmd, check=True, cwd=dst_dir)
140
140
 
141
141
 
142
142
  class RcsPluginRegistryLayout(DirectoryPluginRegistryLayout):
@@ -144,13 +144,13 @@ class RcsPluginRegistryLayout(DirectoryPluginRegistryLayout):
144
144
  file_naming_convention: Optional[PluginRegistryLayoutFileNamingConvention] = Field(BasePluginRegistryLayout.FILE_NAMING_CONVENTION_DEFAULT, **BasePluginRegistryLayout.FILE_NAMING_CONVENTION_FIELD)
145
145
 
146
146
  def _copy_jar(self, src_path: Path, dst_path: Path, interactive: bool=False) -> None:
147
- basename = dst_path.name
147
+ dst_dir, basename = dst_path.parent, dst_path.name
148
148
  plugin = Plugin.from_jar(src_path)
149
- rcs_path = dst_path.joinpath('RCS', f'{basename},v')
149
+ rcs_path = dst_dir.joinpath('RCS', f'{basename},v')
150
150
  # Maybe do co -l before the parent's copy
151
151
  if dst_path.exists() and rcs_path.is_file():
152
152
  cmd = ['co', '-l', basename]
153
- subprocess.run(cmd, check=True, cwd=self.get_path())
153
+ subprocess.run(cmd, check=True, cwd=dst_dir)
154
154
  # Do the parent's copy
155
155
  super()._copy_jar(src_path, dst_path)
156
156
  # Do ci -u after the parent's copy
@@ -158,7 +158,7 @@ class RcsPluginRegistryLayout(DirectoryPluginRegistryLayout):
158
158
  if not rcs_path.is_file():
159
159
  cmd.append(f'-t-{plugin.get_name()}')
160
160
  cmd.append(basename)
161
- subprocess.run(cmd, check=True, cwd=self.get_path())
161
+ subprocess.run(cmd, check=True, cwd=dst_dir)
162
162
 
163
163
 
164
164
  PluginRegistryLayout = Annotated[Union[DirectoryPluginRegistryLayout, RcsPluginRegistryLayout], Field(discriminator='type')]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: lockss-turtles
3
- Version: 0.6.0.dev12
3
+ Version: 0.6.0.dev14
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
@@ -1,15 +1,15 @@
1
- lockss/turtles/__init__.py,sha256=HZJC-QfLMTrz6DrRmBGPqviJ-q_RtPQ2CReRq6qQr_A,1744
1
+ lockss/turtles/__init__.py,sha256=hUjYC7qFHhlnjyhcbwLh9SWARTounp6hnf3O6Lv6j8Y,1744
2
2
  lockss/turtles/__main__.py,sha256=825geLIwXS0LKRqxifJXlLaAZrY8nllXfHzw5ch5ysM,1624
3
3
  lockss/turtles/app.py,sha256=7jC9fhVxfG9RDM8_yLxWzZ2cx_9HOzFZX3aJ9Np2hbg,13410
4
4
  lockss/turtles/cli.py,sha256=pLZAG1hmYarCp0R4vHSJcTs3G1umk2esvaLhM5JX7rg,18435
5
5
  lockss/turtles/plugin.py,sha256=re44YVlzXVU8azDshxn7oHw1GdTQLLQgYwkvZlur-60,5384
6
- lockss/turtles/plugin_registry.py,sha256=8DRAAxLJZ4nVQ5K_sX95sbsjc6OpdxARCdJnkbBUnE4,11901
6
+ lockss/turtles/plugin_registry.py,sha256=VmvUI6Mx6Jk7fr1L3RfJ4jB6lppCHUm-2PjzwoqxBFk,11920
7
7
  lockss/turtles/plugin_set.py,sha256=hKUXOSRyhHxxcMWE3I69Wykod32Ig871oeJsMTvbXfU,11291
8
8
  lockss/turtles/util.py,sha256=wGCrw_YySvyqaCzT0PItzXpkLHOCMMC_DQHhGU7zudI,2500
9
9
  unittest/lockss/turtles/__init__.py,sha256=hrgWx4GaP-hhPBuRlbLndJnOQmZicKCLaP-dQTCu1sQ,3162
10
10
  unittest/lockss/turtles/test_plugin_set.py,sha256=i-VM8mvrPuW2KqUlh2HPVRtgh3-F7RhmRAwcvhwpoDA,3354
11
- lockss_turtles-0.6.0.dev12.dist-info/LICENSE,sha256=O9ONND4uDxY_jucI4jZDf2liAk05ScEJaYu-Al7EOdQ,1506
12
- lockss_turtles-0.6.0.dev12.dist-info/METADATA,sha256=e7XQj4k4oEAej9LGlFMOv-mxx8EnPJVDsPYAu6Iq7-4,39611
13
- lockss_turtles-0.6.0.dev12.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
14
- lockss_turtles-0.6.0.dev12.dist-info/entry_points.txt,sha256=25BAVFSBRKWAWiXIGZgcr1ypt2mV7nj31Jl8WcNZZOk,51
15
- lockss_turtles-0.6.0.dev12.dist-info/RECORD,,
11
+ lockss_turtles-0.6.0.dev14.dist-info/LICENSE,sha256=O9ONND4uDxY_jucI4jZDf2liAk05ScEJaYu-Al7EOdQ,1506
12
+ lockss_turtles-0.6.0.dev14.dist-info/METADATA,sha256=QERB55qsxPppMaH403Ztmx-D_9LimXphXSu4p0k0BCc,39611
13
+ lockss_turtles-0.6.0.dev14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
14
+ lockss_turtles-0.6.0.dev14.dist-info/entry_points.txt,sha256=25BAVFSBRKWAWiXIGZgcr1ypt2mV7nj31Jl8WcNZZOk,51
15
+ lockss_turtles-0.6.0.dev14.dist-info/RECORD,,