pilot.linkstec 0.0.105__py3-none-any.whl → 0.0.106__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.
@@ -1,3 +1,4 @@
1
+ import json
1
2
  import os
2
3
  import shutil
3
4
 
@@ -80,6 +81,11 @@ class BaseJob(JobInterface):
80
81
  _lines = f.readlines()
81
82
  return _lines
82
83
 
84
+ def read_json_file(self,json_file_path):
85
+ with open(json_file_path, 'r', encoding='utf-8') as json_file:
86
+ data = json.load(json_file) # 解析 JSON 文件内容
87
+ return data
88
+
83
89
  def get_current_step_relative_path(self):
84
90
  if not self._file_path:
85
91
  return self._file_path
@@ -179,15 +185,15 @@ class BaseJob(JobInterface):
179
185
  return False
180
186
 
181
187
  def copy_input_file_to_next_step(self, input_file_path):
182
- """
183
- input_file_pathで指定されたファイルを、next stepフォルダにコピーする。
184
- コピー先に同名ファイルがあればNone、存在しなければコピー先ファイルパスを返す。
185
- """
186
- if not input_file_path or not self.next_step:
187
- return None
188
- base_dir = os.path.join(self.config_dto.work_space, self.current_step)
189
- step_dir = os.path.join(self.config_dto.work_space, self.next_step)
190
- return self._copy_file_to_step_dir(input_file_path, base_dir, step_dir)
188
+ """
189
+ input_file_pathで指定されたファイルを、next stepフォルダにコピーする。
190
+ コピー先に同名ファイルがあればNone、存在しなければコピー先ファイルパスを返す。
191
+ """
192
+ if not input_file_path or not self.next_step:
193
+ return None
194
+ base_dir = os.path.join(self.config_dto.work_space, self.current_step)
195
+ step_dir = os.path.join(self.config_dto.work_space, self.next_step)
196
+ return self._copy_file_to_step_dir(input_file_path, base_dir, step_dir)
191
197
 
192
198
  def create_next_step_todo_trg_file_from_input(self, input_file_path):
193
199
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.105
3
+ Version: 0.0.106
4
4
  Summary: pilot of the ship, a tool for managing and deploying Python projects.
5
5
  Author-email: wanglr <wanglr1980@gmail.com>
6
6
  License-Expression: MIT
@@ -61,7 +61,7 @@ pilot/job/base/program/cobol/convert/spitPreDigit.py,sha256=uGmIKOSaxNmPkzy45i0w
61
61
  pilot/job/base/program/java/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  pilot/job/base/program/java/generateDetailDesignPrompt.py,sha256=JcXxRQeJPpFNhli1nWOOxh8ZTdp_IN3-OoFQahHprjs,5651
63
63
  pilot/job/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
- pilot/job/impl/base_job.py,sha256=5eNe7yY5qE6KRpEd7uDiFQBEx32SWHph5QlKTbbcYPs,14879
64
+ pilot/job/impl/base_job.py,sha256=r3h3wLz3a767rtP9r_HZWXlNW8He8XVUhmZP1wkVha0,15066
65
65
  pilot/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  pilot/logging/logger.py,sha256=TF7eGr3w8GK5v4sf71lDt97uVoBtCgqrZuCdbMmeQBU,1815
67
67
  pilot/prompt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -73,8 +73,8 @@ pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
73
73
  pilot/unit/impl/base_unit.py,sha256=h6PMtd4ja0wa6mttFeI7rsv92yy96UgfLIU0QSs6Dmk,2108
74
74
  pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
75
75
  pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
76
- pilot_linkstec-0.0.105.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
77
- pilot_linkstec-0.0.105.dist-info/METADATA,sha256=Q4TkY6m5_U2I58qREtylkFfAf7ibJvz_p7N9YBJX_nc,680
78
- pilot_linkstec-0.0.105.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
79
- pilot_linkstec-0.0.105.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
80
- pilot_linkstec-0.0.105.dist-info/RECORD,,
76
+ pilot_linkstec-0.0.106.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
77
+ pilot_linkstec-0.0.106.dist-info/METADATA,sha256=ht4Bs-HFXqZGwoF5tZB2hOhmz1w6HtgXwSymvDbP9Aw,680
78
+ pilot_linkstec-0.0.106.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
79
+ pilot_linkstec-0.0.106.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
80
+ pilot_linkstec-0.0.106.dist-info/RECORD,,