ScriptCollection 4.0.54__py3-none-any.whl → 4.0.56__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.
- ScriptCollection/ScriptCollectionCore.py +10 -5
- ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py +4 -4
- {scriptcollection-4.0.54.dist-info → scriptcollection-4.0.56.dist-info}/METADATA +1 -1
- {scriptcollection-4.0.54.dist-info → scriptcollection-4.0.56.dist-info}/RECORD +7 -7
- {scriptcollection-4.0.54.dist-info → scriptcollection-4.0.56.dist-info}/WHEEL +0 -0
- {scriptcollection-4.0.54.dist-info → scriptcollection-4.0.56.dist-info}/entry_points.txt +0 -0
- {scriptcollection-4.0.54.dist-info → scriptcollection-4.0.56.dist-info}/top_level.txt +0 -0
@@ -36,7 +36,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
|
|
36
36
|
from .ProgramRunnerPopen import ProgramRunnerPopen
|
37
37
|
from .SCLog import SCLog, LogLevel
|
38
38
|
|
39
|
-
version = "4.0.
|
39
|
+
version = "4.0.56"
|
40
40
|
__version__ = version
|
41
41
|
|
42
42
|
|
@@ -1831,13 +1831,18 @@ class ScriptCollectionCore:
|
|
1831
1831
|
|
1832
1832
|
@GeneralUtilities.check_arguments
|
1833
1833
|
def run_with_epew(self, program: str, argument: str = "", working_directory: str = None, print_errors_as_information: bool = False, log_file: str = None, timeoutInSeconds: int = 600, addLogOverhead: bool = False, title: str = None, log_namespace: str = "", arguments_for_log: list[str] = None, throw_exception_if_exitcode_is_not_zero: bool = True, custom_argument: object = None, interactive: bool = False,print_live_output:bool=False,encode_argument_in_base64:bool=False) -> tuple[int, str, str, int]:
|
1834
|
-
epew_argument=
|
1834
|
+
epew_argument=["-p",program ,"-w", working_directory]
|
1835
1835
|
if encode_argument_in_base64:
|
1836
|
+
if arguments_for_log is None:
|
1837
|
+
arguments_for_log=epew_argument+["-a",f"\"{argument}\""]
|
1836
1838
|
base64_bytes = base64.b64encode(argument)
|
1837
1839
|
base64_string = base64_bytes.decode('utf-8')
|
1838
|
-
|
1839
|
-
|
1840
|
-
|
1840
|
+
epew_argument=epew_argument+["-a",base64_string,"-b"]
|
1841
|
+
else:
|
1842
|
+
epew_argument=epew_argument+["-a",argument]
|
1843
|
+
if arguments_for_log is None:
|
1844
|
+
arguments_for_log=epew_argument
|
1845
|
+
return self.run_program_argsasarray("epew", epew_argument, working_directory, print_errors_as_information, log_file, timeoutInSeconds, addLogOverhead, title, log_namespace, arguments_for_log, throw_exception_if_exitcode_is_not_zero, custom_argument, interactive,print_live_output=print_live_output)
|
1841
1846
|
|
1842
1847
|
|
1843
1848
|
# </run programs>
|
@@ -14,13 +14,13 @@ class TFCPS_CodeUnitSpecific_NodeJS_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
14
14
|
|
15
15
|
@GeneralUtilities.check_arguments
|
16
16
|
def build(self) -> None:
|
17
|
-
self._protected_sc.run_with_epew("npm", "run build", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic)
|
17
|
+
self._protected_sc.run_with_epew("npm", "run build", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic,encode_argument_in_base64=True)
|
18
18
|
self.standardized_tasks_build_bom_for_node_project()
|
19
19
|
self.copy_source_files_to_output_directory()
|
20
20
|
|
21
21
|
@GeneralUtilities.check_arguments
|
22
22
|
def linting(self) -> None:
|
23
|
-
self._protected_sc.run_with_epew("npm", "run lint", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic)
|
23
|
+
self._protected_sc.run_with_epew("npm", "run lint", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic,encode_argument_in_base64=True)
|
24
24
|
|
25
25
|
@GeneralUtilities.check_arguments
|
26
26
|
def do_common_tasks(self,current_codeunit_version:str)-> None:
|
@@ -50,7 +50,7 @@ class TFCPS_CodeUnitSpecific_NodeJS_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
50
50
|
repository_folder = os.path.dirname(codeunit_folder)
|
51
51
|
|
52
52
|
# run testcases
|
53
|
-
self._protected_sc.run_with_epew("npm", f"run test-{self.get_target_environment_type()}", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic)
|
53
|
+
self._protected_sc.run_with_epew("npm", f"run test-{self.get_target_environment_type()}", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic,encode_argument_in_base64=True)
|
54
54
|
|
55
55
|
# rename file
|
56
56
|
coverage_folder = os.path.join(codeunit_folder, "Other", "Artifacts", "TestCoverage")
|
@@ -109,7 +109,7 @@ class TFCPS_CodeUnitSpecific_NodeJS_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
109
109
|
@GeneralUtilities.check_arguments
|
110
110
|
def standardized_tasks_build_bom_for_node_project(self) -> None:
|
111
111
|
relative_path_to_bom_file = f"Other/Artifacts/BOM/{os.path.basename(self.get_codeunit_folder())}.{self.tfcps_Tools_General.get_version_of_codeunit(self.get_codeunit_file())}.sbom.xml"
|
112
|
-
self._protected_sc.run_with_epew("cyclonedx-npm", f"--output-format xml --output-file {relative_path_to_bom_file}", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic)
|
112
|
+
self._protected_sc.run_with_epew("cyclonedx-npm", f"--output-format xml --output-file {relative_path_to_bom_file}", self.get_codeunit_folder(),print_live_output=self._protected_sc.log.loglevel==LogLevel.Diagnostic,encode_argument_in_base64=True)
|
113
113
|
self._protected_sc.format_xml_file(self.get_codeunit_folder()+"/"+relative_path_to_bom_file)
|
114
114
|
|
115
115
|
class TFCPS_CodeUnitSpecific_NodeJS_CLI:
|
@@ -9,7 +9,7 @@ ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrR
|
|
9
9
|
ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
|
10
10
|
ScriptCollection/ProgramRunnerSudo.py,sha256=_khC3xuTdrPoLluBJZWfldltmmuKltABJPcbjZSFW-4,4835
|
11
11
|
ScriptCollection/SCLog.py,sha256=dxGOI4E9lG5v9jk_LajXCkM5nghliCDV8YB8Ihn160s,4541
|
12
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
12
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=ID-HdV1FR7zj8efo7R-wjZqy5HOnC2tHy7QhjOd5KQQ,142366
|
13
13
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
14
14
|
ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=VyoVQPQ5t3VmRsR599tzsjRlnL42Hj3kubMmeoTQW7A,25441
|
15
15
|
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=m3bZZCoKV0mxME6HtDa3BAsGD4DSbiSp4XkqKOJyc9Y,7369
|
@@ -31,12 +31,12 @@ ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=XLAtSvYKq4
|
|
31
31
|
ScriptCollection/TFCPS/DotNet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
32
32
|
ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=TIR95f6TVOnW25ieX9q4RUi1FogbYEfrlZOcZ1aE014,6969
|
33
33
|
ScriptCollection/TFCPS/Flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
34
|
-
ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=
|
34
|
+
ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=aF53bvcuZiDDiv1KZvZ0I-aiNLvYVP0pOHiRKCU6FHM,6655
|
35
35
|
ScriptCollection/TFCPS/NodeJS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
36
36
|
ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=q7msAxCb5VIZ-xhFg1MfzUvWomQRKYldqmW42KFhyMU,6868
|
37
37
|
ScriptCollection/TFCPS/Python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
38
|
-
scriptcollection-4.0.
|
39
|
-
scriptcollection-4.0.
|
40
|
-
scriptcollection-4.0.
|
41
|
-
scriptcollection-4.0.
|
42
|
-
scriptcollection-4.0.
|
38
|
+
scriptcollection-4.0.56.dist-info/METADATA,sha256=b_jZM7qsB4DU3PPAMA9voA-A-WKXQjOxKnu28ZtGehQ,7688
|
39
|
+
scriptcollection-4.0.56.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
40
|
+
scriptcollection-4.0.56.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
|
41
|
+
scriptcollection-4.0.56.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
42
|
+
scriptcollection-4.0.56.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|