ScriptCollection 4.0.64__py3-none-any.whl → 4.0.66__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.
Potentially problematic release.
This version of ScriptCollection might be problematic. Click here for more details.
- ScriptCollection/SCLog.py +2 -2
- ScriptCollection/ScriptCollectionCore.py +2 -3
- ScriptCollection/TFCPS/Docker/TFCPS_CodeUnitSpecific_Docker.py +2 -2
- ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py +2 -2
- ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py +2 -2
- ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py +2 -2
- ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py +2 -2
- ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py +2 -3
- {scriptcollection-4.0.64.dist-info → scriptcollection-4.0.66.dist-info}/METADATA +1 -1
- {scriptcollection-4.0.64.dist-info → scriptcollection-4.0.66.dist-info}/RECORD +13 -13
- {scriptcollection-4.0.64.dist-info → scriptcollection-4.0.66.dist-info}/WHEEL +0 -0
- {scriptcollection-4.0.64.dist-info → scriptcollection-4.0.66.dist-info}/entry_points.txt +0 -0
- {scriptcollection-4.0.64.dist-info → scriptcollection-4.0.66.dist-info}/top_level.txt +0 -0
ScriptCollection/SCLog.py
CHANGED
|
@@ -36,8 +36,8 @@ class SCLog:
|
|
|
36
36
|
self.print_as_color = print_as_color
|
|
37
37
|
|
|
38
38
|
@GeneralUtilities.check_arguments
|
|
39
|
-
def log_exception(self, message: str, ex: Exception,
|
|
40
|
-
self.log(f"Exception: {message}; Exception-details: {str(ex)}; Traceback:
|
|
39
|
+
def log_exception(self, message: str, ex: Exception,loglevel:LogLevel = LogLevel.Error):
|
|
40
|
+
self.log(f"Exception: {message}; Exception-details: {str(ex)}; Traceback: {traceback.format_exc()}", loglevel)
|
|
41
41
|
|
|
42
42
|
@GeneralUtilities.check_arguments
|
|
43
43
|
def log(self, message: str, loglevel: LogLevel = None):
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import traceback
|
|
2
1
|
from datetime import timedelta, datetime
|
|
3
2
|
import json
|
|
4
3
|
import binascii
|
|
@@ -36,7 +35,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
|
|
|
36
35
|
from .ProgramRunnerPopen import ProgramRunnerPopen
|
|
37
36
|
from .SCLog import SCLog, LogLevel
|
|
38
37
|
|
|
39
|
-
version = "4.0.
|
|
38
|
+
version = "4.0.66"
|
|
40
39
|
__version__ = version
|
|
41
40
|
|
|
42
41
|
|
|
@@ -2465,7 +2464,7 @@ OCR-content:
|
|
|
2465
2464
|
result = 0
|
|
2466
2465
|
return result
|
|
2467
2466
|
except Exception as e:
|
|
2468
|
-
self.log.log_exception(f"Error while running action \"{name_of_task}\".", e,
|
|
2467
|
+
self.log.log_exception(f"Error while running action \"{name_of_task}\".", e, LogLevel.Error)
|
|
2469
2468
|
return 1
|
|
2470
2469
|
finally:
|
|
2471
2470
|
self.log.log(f"Finished action \"{name_of_task}\".", LogLevel.Information)
|
|
@@ -77,9 +77,9 @@ class TFCPS_CodeUnitSpecific_Docker_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
|
77
77
|
pass#TODO
|
|
78
78
|
|
|
79
79
|
def get_dependencies(self)->list[Dependency]:
|
|
80
|
-
|
|
80
|
+
return []#TODO
|
|
81
81
|
|
|
82
|
-
def set_dependency_version(self,name:str,new_version:str)->
|
|
82
|
+
def set_dependency_version(self,name:str,new_version:str)->None:
|
|
83
83
|
raise ValueError(f"Operation is not implemented.")
|
|
84
84
|
|
|
85
85
|
class TFCPS_CodeUnitSpecific_Docker_CLI:
|
|
@@ -467,9 +467,9 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
|
467
467
|
|
|
468
468
|
|
|
469
469
|
def get_dependencies(self)->list[Dependency]:
|
|
470
|
-
|
|
470
|
+
return []#TODO
|
|
471
471
|
|
|
472
|
-
def set_dependency_version(self,name:str,new_version:str)->
|
|
472
|
+
def set_dependency_version(self,name:str,new_version:str)->None:
|
|
473
473
|
raise ValueError(f"Operation is not implemented.")
|
|
474
474
|
|
|
475
475
|
|
|
@@ -114,9 +114,9 @@ class TFCPS_CodeUnitSpecific_Flutter_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
def get_dependencies(self)->list[Dependency]:
|
|
117
|
-
|
|
117
|
+
return []#TODO
|
|
118
118
|
|
|
119
|
-
def set_dependency_version(self,name:str,new_version:str)->
|
|
119
|
+
def set_dependency_version(self,name:str,new_version:str)->None:
|
|
120
120
|
raise ValueError(f"Operation is not implemented.")
|
|
121
121
|
|
|
122
122
|
class TFCPS_CodeUnitSpecific_Flutter_CLI:
|
|
@@ -114,9 +114,9 @@ class TFCPS_CodeUnitSpecific_NodeJS_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
def get_dependencies(self)->list[Dependency]:
|
|
117
|
-
|
|
117
|
+
return []#TODO
|
|
118
118
|
|
|
119
|
-
def set_dependency_version(self,name:str,new_version:str)->
|
|
119
|
+
def set_dependency_version(self,name:str,new_version:str)->None:
|
|
120
120
|
raise ValueError(f"Operation is not implemented.")
|
|
121
121
|
|
|
122
122
|
class TFCPS_CodeUnitSpecific_NodeJS_CLI:
|
|
@@ -102,9 +102,9 @@ class TFCPS_CodeUnitSpecific_Python_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
def get_dependencies(self)->list[Dependency]:
|
|
105
|
-
|
|
105
|
+
return []#TODO
|
|
106
106
|
|
|
107
|
-
def set_dependency_version(self,name:str,new_version:str)->
|
|
107
|
+
def set_dependency_version(self,name:str,new_version:str)->None:
|
|
108
108
|
raise ValueError(f"Operation is not implemented.")
|
|
109
109
|
|
|
110
110
|
class TFCPS_CodeUnitSpecific_Python_CLI:
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import os
|
|
2
|
-
import traceback
|
|
3
2
|
from pathlib import Path
|
|
4
3
|
import shutil
|
|
5
4
|
import re
|
|
@@ -61,7 +60,7 @@ class TFCPS_CodeUnitSpecific_Base(ABC):
|
|
|
61
60
|
raise ValueError(f"Operation is abstract.")
|
|
62
61
|
|
|
63
62
|
@abstractmethod
|
|
64
|
-
def set_dependency_version(self,name:str,new_version:str)->
|
|
63
|
+
def set_dependency_version(self,name:str,new_version:str)->None:
|
|
65
64
|
raise ValueError(f"Operation is abstract.")
|
|
66
65
|
|
|
67
66
|
def update_dependencies(self):
|
|
@@ -107,7 +106,7 @@ class TFCPS_CodeUnitSpecific_Base(ABC):
|
|
|
107
106
|
xmlschema.validate(codeunit_file, schemaLocation)
|
|
108
107
|
# TODO check if the properties codeunithastestablesourcecode, codeunithasupdatabledependencies, throwexceptionifcodeunitfilecannotbevalidated, developmentState and description exist and the values are valid
|
|
109
108
|
except Exception as exception:
|
|
110
|
-
self._protected_sc.log.log_exception(f'Codeunitfile "{codeunit_file}" can not be validated due to the following exception:', exception,
|
|
109
|
+
self._protected_sc.log.log_exception(f'Codeunitfile "{codeunit_file}" can not be validated due to the following exception:', exception,LogLevel.Warning)
|
|
111
110
|
|
|
112
111
|
# check codeunit-name
|
|
113
112
|
codeunit_name_in_codeunit_file = root.xpath('//cps:codeunit/cps:name/text()', namespaces=namespaces)[0]
|
|
@@ -8,10 +8,10 @@ ScriptCollection/ProgramRunnerBase.py,sha256=4A2eQgSg_rRgQcgSi-LYtUlM-uSQEpS7qFW
|
|
|
8
8
|
ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrRjAPIwT5Y,37
|
|
9
9
|
ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
|
|
10
10
|
ScriptCollection/ProgramRunnerSudo.py,sha256=_khC3xuTdrPoLluBJZWfldltmmuKltABJPcbjZSFW-4,4835
|
|
11
|
-
ScriptCollection/SCLog.py,sha256=
|
|
12
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
|
11
|
+
ScriptCollection/SCLog.py,sha256=fNi-7pcoXoYiAHUNvqeZQ-I-nW8vLuu4NHs3DP31I58,4529
|
|
12
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=_5ZX2INPlq9YMJb6SLHej_wLJ68x3tFaR4Gy9muThEI,142330
|
|
13
13
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
14
|
-
ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=
|
|
14
|
+
ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=6SU_FjmzsDsirbe_ZG1U4-BAqVlGduuT3G-4d7OtvZo,25723
|
|
15
15
|
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=m3bZZCoKV0mxME6HtDa3BAsGD4DSbiSp4XkqKOJyc9Y,7369
|
|
16
16
|
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=f9oGnopuzn3iDHC1AksU7Qr60LbDe0eLjYeXGiDPhAk,7526
|
|
17
17
|
ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=bcJlfI062Eoq7MOIhun-_iNG7SdO1ZIuC_cylaoLI1s,6332
|
|
@@ -21,21 +21,21 @@ ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=nNS8NavE7MKUOkisH5h8RZa9dcH
|
|
|
21
21
|
ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=CxdwUklhZVuJGp0vcokoH_KMXFzmlUlZwj77xFYijho,2242
|
|
22
22
|
ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=w-eRd9i1bROioCisZyLVQcJybItBu-E2S5Ubj7L_3nQ,85065
|
|
23
23
|
ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
24
|
-
ScriptCollection/TFCPS/Docker/TFCPS_CodeUnitSpecific_Docker.py,sha256=
|
|
24
|
+
ScriptCollection/TFCPS/Docker/TFCPS_CodeUnitSpecific_Docker.py,sha256=XYWdCnrdzxz2UrAc2h5mC7pHZiyjSU3MwOBwHza-Gs8,5461
|
|
25
25
|
ScriptCollection/TFCPS/Docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
26
|
ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationBase.py,sha256=bT6Gd5pQpZCw4OQz6HWkPCSn5z__eUUEisABLDSxd0o,200
|
|
27
27
|
ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationGenerate.py,sha256=QyjOfMY22JWCvKjMelHiDWbJiWqotOfebpJpgDUaoO4,237
|
|
28
28
|
ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationNoGenerate.py,sha256=i0zEGehj0sttxjjZtoq2KFSKp_ulxVyWp_ZgAhIY_So,241
|
|
29
|
-
ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=
|
|
29
|
+
ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=pDP9Qq-PaiHc_L3p_IQDOAhijADhR3RphM6LzUsT1WI,31161
|
|
30
30
|
ScriptCollection/TFCPS/DotNet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
31
|
-
ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=
|
|
31
|
+
ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=_Bbq6z_ehImsK9XPwXS8jfARNRQlQmqjABvvP2RfWgs,7197
|
|
32
32
|
ScriptCollection/TFCPS/Flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
33
|
-
ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256
|
|
33
|
+
ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=H5xz6UlO-rrPBKOagL1dyobXcYCddm3HBhQDbH_gsY4,6883
|
|
34
34
|
ScriptCollection/TFCPS/NodeJS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
35
|
-
ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=
|
|
35
|
+
ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=JkjispP8-iHvFgNjNEvBmRKRi3Tqp-mTNJ4aeUzMWGA,7088
|
|
36
36
|
ScriptCollection/TFCPS/Python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
37
|
-
scriptcollection-4.0.
|
|
38
|
-
scriptcollection-4.0.
|
|
39
|
-
scriptcollection-4.0.
|
|
40
|
-
scriptcollection-4.0.
|
|
41
|
-
scriptcollection-4.0.
|
|
37
|
+
scriptcollection-4.0.66.dist-info/METADATA,sha256=ZX-HEQEl35JwGdt2BCqXP8o7_z5Lw9ls_-MkUjWhRS8,7688
|
|
38
|
+
scriptcollection-4.0.66.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
39
|
+
scriptcollection-4.0.66.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
|
|
40
|
+
scriptcollection-4.0.66.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
41
|
+
scriptcollection-4.0.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|