pilot.linkstec 0.0.104__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.
- pilot/create_python/create_python.py +9 -9
- pilot/job/impl/base_job.py +23 -9
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.106.dist-info}/METADATA +1 -1
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.106.dist-info}/RECORD +7 -7
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.106.dist-info}/WHEEL +0 -0
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.106.dist-info}/licenses/LICENSE +0 -0
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.106.dist-info}/top_level.txt +0 -0
|
@@ -34,10 +34,10 @@ def generate_code():
|
|
|
34
34
|
print('Main Unitファイルを作成する')
|
|
35
35
|
sample_unit_file_path = os.path.join(cwd, 'sample', 'child_sample', 'unit.txt')
|
|
36
36
|
replacements_unit = {
|
|
37
|
-
"JOB_PACKAGE":
|
|
38
|
-
"GYOMU_JOB_PACKAGE_000":
|
|
39
|
-
"GYOMU_JOB_PACKAGE_001":
|
|
40
|
-
"GYOMU_JOB_PACKAGE_002":
|
|
37
|
+
"JOB_PACKAGE": config_dto.sub_project_name + '.'+ config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 + '.' + os.path.basename(target_project_sub_job_path).split('.')[0],
|
|
38
|
+
"GYOMU_JOB_PACKAGE_000": config_dto.sub_project_name + '.' + config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 + '.jobs.job_000',
|
|
39
|
+
"GYOMU_JOB_PACKAGE_001": config_dto.sub_project_name + '.' + config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 + '.jobs.job_001',
|
|
40
|
+
"GYOMU_JOB_PACKAGE_002": config_dto.sub_project_name + '.' + config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 + '.jobs.job_002'
|
|
41
41
|
}
|
|
42
42
|
target_project_unit_path = os.path.join(target_project_sub_project_path, config_dto.sub_source_folder + '_' + config_dto.sub_sub_source_folder_1 + '_unit.py' )
|
|
43
43
|
read_replace_create_file(sample_unit_file_path, replacements_unit, Path(target_project_unit_path))
|
|
@@ -45,7 +45,7 @@ def generate_code():
|
|
|
45
45
|
print('Main Controllerファイルを作成する')
|
|
46
46
|
sample_controller_file_path = os.path.join(cwd, 'sample', 'child_sample', 'controller.txt')
|
|
47
47
|
replacements_control = {
|
|
48
|
-
"UNIT_PACKAGE":
|
|
48
|
+
"UNIT_PACKAGE": config_dto.sub_project_name + '.'+ config_dto.sub_source_folder + '.'+ config_dto.sub_sub_source_folder_1 + '.' + os.path.basename(target_project_unit_path).split('.')[0]
|
|
49
49
|
}
|
|
50
50
|
target_project_sub_controller_path = os.path.join(target_project_sub_project_path, config_dto.sub_source_folder + '_' + config_dto.sub_sub_source_folder_1 + '_control.py')
|
|
51
51
|
read_replace_create_file(sample_controller_file_path, replacements_control, Path(target_project_sub_controller_path))
|
|
@@ -59,7 +59,7 @@ def generate_code():
|
|
|
59
59
|
sample_job000_file_path = os.path.join(cwd, 'sample', 'child_sample', 'job' ,'job_000.txt')
|
|
60
60
|
sample_job_sample_file_path = os.path.join(cwd, 'sample', 'child_sample', 'job', 'job_sample.txt')
|
|
61
61
|
replacements_job000 = {
|
|
62
|
-
'JOB_PACKAGE':
|
|
62
|
+
'JOB_PACKAGE': config_dto.sub_project_name + '.'+ config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 + '.' + os.path.basename(target_project_sub_job_path).split('.')[0]
|
|
63
63
|
}
|
|
64
64
|
target_project_job000_path = os.path.join(target_project_sub_project_path, 'jobs','job_000.py')
|
|
65
65
|
target_project_job001_path = os.path.join(target_project_sub_project_path, 'jobs','job_001.py')
|
|
@@ -67,12 +67,12 @@ def generate_code():
|
|
|
67
67
|
read_replace_create_file(sample_job000_file_path, replacements_job000, Path(target_project_job000_path))
|
|
68
68
|
replacements_job001 = {
|
|
69
69
|
'JOB_NAME':'Job_001',
|
|
70
|
-
'JOB_PACKAGE':
|
|
70
|
+
'JOB_PACKAGE': config_dto.sub_project_name + '.'+ config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 + '.' + os.path.basename(target_project_sub_job_path).split('.')[0]
|
|
71
71
|
}
|
|
72
72
|
read_replace_create_file(sample_job_sample_file_path, replacements_job001, Path(target_project_job001_path))
|
|
73
73
|
replacements_job002 = {
|
|
74
74
|
'JOB_NAME': 'Job_002',
|
|
75
|
-
'JOB_PACKAGE':
|
|
75
|
+
'JOB_PACKAGE': config_dto.sub_project_name + '.'+ config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 + '.' + os.path.basename(target_project_sub_job_path).split('.')[0]
|
|
76
76
|
}
|
|
77
77
|
read_replace_create_file(sample_job_sample_file_path, replacements_job002, Path(target_project_job002_path))
|
|
78
78
|
|
|
@@ -84,7 +84,7 @@ def generate_code():
|
|
|
84
84
|
sample_main_controller_file_path = os.path.join(cwd, 'sample', 'main_convert.txt')
|
|
85
85
|
# パラメーター
|
|
86
86
|
replacements = {
|
|
87
|
-
"CONTROLLER_PACKAGE":
|
|
87
|
+
"CONTROLLER_PACKAGE": config_dto.sub_project_name + '.' + config_dto.sub_source_folder + '.' + config_dto.sub_sub_source_folder_1 +'.' + os.path.basename(target_project_sub_controller_path).split('.')[0],
|
|
88
88
|
"PYTHON_CONFIG_PROPERTIES": config_dto.sub_project_name + '_' + config_dto.sub_source_folder + '_' + config_dto.sub_sub_source_folder_1 + '.properties'
|
|
89
89
|
}
|
|
90
90
|
# 目標ファイルパス
|
pilot/job/impl/base_job.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import json
|
|
1
2
|
import os
|
|
2
3
|
import shutil
|
|
3
4
|
|
|
@@ -75,6 +76,16 @@ class BaseJob(JobInterface):
|
|
|
75
76
|
self._content = f.read()
|
|
76
77
|
return self._content
|
|
77
78
|
|
|
79
|
+
def read_file_lines(self):
|
|
80
|
+
with open(self.file_path, 'r', encoding='utf-8') as f:
|
|
81
|
+
_lines = f.readlines()
|
|
82
|
+
return _lines
|
|
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
|
+
|
|
78
89
|
def get_current_step_relative_path(self):
|
|
79
90
|
if not self._file_path:
|
|
80
91
|
return self._file_path
|
|
@@ -174,15 +185,15 @@ class BaseJob(JobInterface):
|
|
|
174
185
|
return False
|
|
175
186
|
|
|
176
187
|
def copy_input_file_to_next_step(self, input_file_path):
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
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)
|
|
186
197
|
|
|
187
198
|
def create_next_step_todo_trg_file_from_input(self, input_file_path):
|
|
188
199
|
"""
|
|
@@ -355,3 +366,6 @@ class BaseJob(JobInterface):
|
|
|
355
366
|
|
|
356
367
|
def get_file_name_without_extension(self, file_name):
|
|
357
368
|
return os.path.splitext(os.path.basename(file_name))[0]
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
@@ -21,7 +21,7 @@ pilot/conver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
21
21
|
pilot/conver/commentRemover.py,sha256=S8uwp9Glp0bdv4EFqf62WIcOTLiJZdracG2FAMKY1EY,3777
|
|
22
22
|
pilot/conver/converfileEncodding.py,sha256=YpPPTf52ujfWn8YlKuKYhSbcToQj34Gs4PmdcUbm040,1586
|
|
23
23
|
pilot/create_python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
pilot/create_python/create_python.py,sha256=
|
|
24
|
+
pilot/create_python/create_python.py,sha256=rXJxJU7gy12cYeT0-T_p65iO3LBRgqHwx1sdAPE7BA0,8725
|
|
25
25
|
pilot/create_python/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
pilot/create_python/config/create_file.py,sha256=wyuM7x2FbAcBk78iU9sv1MKIWudn0bRnSTyAqF-3U6A,310
|
|
27
27
|
pilot/create_python/sample/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -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=
|
|
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.
|
|
77
|
-
pilot_linkstec-0.0.
|
|
78
|
-
pilot_linkstec-0.0.
|
|
79
|
-
pilot_linkstec-0.0.
|
|
80
|
-
pilot_linkstec-0.0.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|