pilot.linkstec 0.0.104__py3-none-any.whl → 0.0.105__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 +8 -0
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.105.dist-info}/METADATA +1 -1
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.105.dist-info}/RECORD +7 -7
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.105.dist-info}/WHEEL +0 -0
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.105.dist-info}/licenses/LICENSE +0 -0
- {pilot_linkstec-0.0.104.dist-info → pilot_linkstec-0.0.105.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
|
@@ -75,6 +75,11 @@ class BaseJob(JobInterface):
|
|
|
75
75
|
self._content = f.read()
|
|
76
76
|
return self._content
|
|
77
77
|
|
|
78
|
+
def read_file_lines(self):
|
|
79
|
+
with open(self.file_path, 'r', encoding='utf-8') as f:
|
|
80
|
+
_lines = f.readlines()
|
|
81
|
+
return _lines
|
|
82
|
+
|
|
78
83
|
def get_current_step_relative_path(self):
|
|
79
84
|
if not self._file_path:
|
|
80
85
|
return self._file_path
|
|
@@ -355,3 +360,6 @@ class BaseJob(JobInterface):
|
|
|
355
360
|
|
|
356
361
|
def get_file_name_without_extension(self, file_name):
|
|
357
362
|
return os.path.splitext(os.path.basename(file_name))[0]
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
@@ -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=5eNe7yY5qE6KRpEd7uDiFQBEx32SWHph5QlKTbbcYPs,14879
|
|
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.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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|