ScriptCollection 4.0.65__py3-none-any.whl → 4.0.67__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.

@@ -112,9 +112,9 @@ class GeneralUtilities:
112
112
  @staticmethod
113
113
  @check_arguments
114
114
  def string_to_lines(string: str, add_empty_lines: bool = True, adapt_lines: bool = True) -> list[str]:
115
- result = list()
115
+ result : list[str] = list[str]()
116
+ lines : list[str] = list[str]()
116
117
  if (string is not None):
117
- lines = list()
118
118
  if ("\n" in string):
119
119
  lines = string.split("\n")
120
120
  else:
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.65"
38
+ version = "4.0.67"
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)
@@ -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
@@ -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.65
3
+ Version: 4.0.67
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
@@ -1,17 +1,17 @@
1
1
  ScriptCollection/AnionBuildPlatform.py,sha256=olCBNO6dG4F9ZAFERE8DlgDf7ViiftQ6Vza9SctU4aU,12527
2
2
  ScriptCollection/CertificateUpdater.py,sha256=GXPxmYaW-ufOqsiP9kUYdtI6eNg1-GzrrCqsZdwW_HY,9199
3
3
  ScriptCollection/Executables.py,sha256=oAC4lr7V0DF3fHabk44cKVkEiIMt5761VPYYHeme0kQ,42066
4
- ScriptCollection/GeneralUtilities.py,sha256=DVW6cDu_7f6-z-ZnOMtfNQreVsO2Dr81Wj-O02DJ3tw,49694
4
+ ScriptCollection/GeneralUtilities.py,sha256=aii_LlDoVfhSvhRLYugFdpwk7VU5kFHyiEbXn95juco,49724
5
5
  ScriptCollection/ImageUpdater.py,sha256=0KPybKb_9IALhSTNflST-mewQVZ4kvXzNtfcN0-Ut8k,29215
6
6
  ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZfT89mU,1395
7
7
  ScriptCollection/ProgramRunnerBase.py,sha256=4A2eQgSg_rRgQcgSi-LYtUlM-uSQEpS7qFWn0tWt4uo,2171
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=Qdb4lPTN635rZJNrXXZ_lJTRj7A2LIGwJcZW7rrzUW0,142342
11
+ ScriptCollection/SCLog.py,sha256=fNi-7pcoXoYiAHUNvqeZQ-I-nW8vLuu4NHs3DP31I58,4529
12
+ ScriptCollection/ScriptCollectionCore.py,sha256=ef-7VD8cuRczDYeihJPD037yPjpDpEhJptYe7yBkgcQ,142330
13
13
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=-ECpybMjuh0cxUTWEDiSA9CUlQQTSRFmDLsPhgnFbp0,25750
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
@@ -34,8 +34,8 @@ ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=H5xz6UlO-r
34
34
  ScriptCollection/TFCPS/NodeJS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
35
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.65.dist-info/METADATA,sha256=ZRfs0Gnlolwk7L63WMiOIKBTsQXOgphvo2A09HTMc3o,7688
38
- scriptcollection-4.0.65.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
- scriptcollection-4.0.65.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
40
- scriptcollection-4.0.65.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
41
- scriptcollection-4.0.65.dist-info/RECORD,,
37
+ scriptcollection-4.0.67.dist-info/METADATA,sha256=lS81Z5HSvM0LuEMQgJG65ICKOkUR8iwMnrYS4oL8uTg,7688
38
+ scriptcollection-4.0.67.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
39
+ scriptcollection-4.0.67.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
40
+ scriptcollection-4.0.67.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
41
+ scriptcollection-4.0.67.dist-info/RECORD,,