batchfetch 1.3.2__tar.gz → 1.3.3__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.1
2
2
  Name: batchfetch
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Efficiently clone and pull multiple Git repositories.
5
5
  Home-page: https://github.com/jamescherti/batchfetch
6
6
  Author: James Cherti
@@ -88,9 +88,6 @@ class TaskBase:
88
88
  if key in self.options:
89
89
  return self.options[key]
90
90
 
91
- if key in self.global_options_values:
92
- return self.global_options_values[key]
93
-
94
91
  raise KeyError(f"The item '{key}' was not found in '{self.values}")
95
92
 
96
93
 
@@ -98,9 +95,9 @@ class TaskBatchFetch(TaskBase):
98
95
  """Plugin downloader base class."""
99
96
 
100
97
  def __init__(self, data: Dict[str, Any], options: Dict[str, Any]):
101
- new_options = {"exec_before": [],
102
- "exec_after": [],
103
- "ignore_untracked": []}
98
+ new_options: Dict[str, Any] = {"exec_before": [],
99
+ "exec_after": [],
100
+ "ignore_untracked": []}
104
101
  new_options.update(options)
105
102
  options = new_options
106
103
 
@@ -160,7 +157,8 @@ class TaskBatchFetch(TaskBase):
160
157
  self._local_task_exec(cmd, cwd=str(cwd))
161
158
 
162
159
  # Local
163
- cmd = self["exec_before"]
160
+ cmd = self._item_values["exec_before"] if "exec_before" \
161
+ in self._item_values else None
164
162
  if cmd:
165
163
  self._local_task_exec(cmd, cwd=str(cwd))
166
164
 
@@ -176,7 +174,8 @@ class TaskBatchFetch(TaskBase):
176
174
  self._local_task_exec(cmd, cwd=str(cwd))
177
175
 
178
176
  # Local
179
- cmd = self["exec_after"]
177
+ cmd = self._item_values["exec_after"] if "exec_after" \
178
+ in self._item_values else None
180
179
  if cmd:
181
180
  self._local_task_exec(cmd, cwd=str(cwd))
182
181
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: batchfetch
3
- Version: 1.3.2
3
+ Version: 1.3.3
4
4
  Summary: Efficiently clone and pull multiple Git repositories.
5
5
  Home-page: https://github.com/jamescherti/batchfetch
6
6
  Author: James Cherti
@@ -22,7 +22,7 @@ from setuptools import find_packages, setup
22
22
 
23
23
  setup(
24
24
  name="batchfetch",
25
- version="1.3.2",
25
+ version="1.3.3",
26
26
  packages=find_packages(),
27
27
  description="Efficiently clone and pull multiple Git repositories.",
28
28
  license="GPLv3",
File without changes
File without changes
File without changes