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 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, current_traceback:traceback,loglevel:LogLevel=LogLevel.Error):
40
- self.log(f"Exception: {message}; Exception-details: {str(ex)}; Traceback: {current_traceback.format_exc()}", loglevel)
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.64"
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, traceback)
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
- raise ValueError(f"Operation is not implemented.")
80
+ return []#TODO
81
81
 
82
- def set_dependency_version(self,name:str,new_version:str)->list[Dependency]:
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
- raise ValueError(f"Operation is not implemented.")
470
+ return []#TODO
471
471
 
472
- def set_dependency_version(self,name:str,new_version:str)->list[Dependency]:
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
- raise ValueError(f"Operation is not implemented.")
117
+ return []#TODO
118
118
 
119
- def set_dependency_version(self,name:str,new_version:str)->list[Dependency]:
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
- raise ValueError(f"Operation is not implemented.")
117
+ return []#TODO
118
118
 
119
- def set_dependency_version(self,name:str,new_version:str)->list[Dependency]:
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
- raise ValueError(f"Operation is not implemented.")
105
+ return []#TODO
106
106
 
107
- def set_dependency_version(self,name:str,new_version:str)->list[Dependency]:
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)->list[Dependency]:
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,traceback,LogLevel.Warning)
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]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 4.0.64
3
+ Version: 4.0.66
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Home-page: https://github.com/anionDev/ScriptCollection
6
6
  Author: Marius Göcke
@@ -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=RnX7sKEqr9f9JtJi0_lfb7DXyN8YqKKvmRmoNN-yRcI,4565
12
- ScriptCollection/ScriptCollectionCore.py,sha256=fEa6D28_HC8F0EK5StbKuH-a1wSt8WlGBBQv2v84XVw,142342
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=Zt8Yh4twfbQjKP4ZsTqTxLY5UhPTAXFW15A9IReV8gQ,25762
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=MEmsZUHDVus2TN7-ZxNQyW5DQp7j75z8DEvv55OSIzw,5509
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=4XE1wXi-8VfLpAXJ5GGmYzzGverIPQamnybWKs2ur2o,31209
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=2c-3Ii4Ipc9F0AjkzZU66evAvwPMpISqQ6ApKgeF_T4,7245
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=-dK1rtfpf1zCufobUmftc8ImUFskeGPADej-a7Dxbl8,6931
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=5hIkOnXi8mwDFLDUpESVhYxJJrGKYhvjRWVepmcBxNw,7136
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.64.dist-info/METADATA,sha256=BYBRzdYRace9-7eDq1Y0CfLVatuH1nkctWTgmnTuIG4,7688
38
- scriptcollection-4.0.64.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
- scriptcollection-4.0.64.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
40
- scriptcollection-4.0.64.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
41
- scriptcollection-4.0.64.dist-info/RECORD,,
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,,