ScriptCollection 4.3.13__py3-none-any.whl → 4.3.15__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/SCLog.py CHANGED
@@ -23,6 +23,7 @@ class SCLog:
23
23
  add_overhead_to_logfile: bool = None
24
24
  print_as_color: bool = None
25
25
  add_milliseconds_to_logfile_entry: bool = None
26
+ subnamespace:str=None
26
27
 
27
28
  def __init__(self, log_file: str = None, loglevel: LogLevel = None, print_as_color: bool = True):
28
29
  self.log_file = log_file
@@ -59,6 +60,8 @@ class SCLog:
59
60
  part1: str = GeneralUtilities.empty_string
60
61
  part2: str = GeneralUtilities.empty_string
61
62
  part3: str = "] "
63
+ if GeneralUtilities.string_has_content(self.subnamespace):
64
+ part3 = part3 + f"[{self.subnamespace}] "
62
65
  part4: str = message
63
66
 
64
67
  if loglevel == LogLevel.Warning and not message.startswith("Warning: "):
@@ -37,7 +37,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
37
37
  from .ProgramRunnerPopen import ProgramRunnerPopen
38
38
  from .SCLog import SCLog, LogLevel
39
39
 
40
- version = "4.3.13"
40
+ version = "4.3.15"
41
41
  __version__ = version
42
42
 
43
43
  class VSCodeWorkspaceShellTask:
@@ -151,5 +151,5 @@ class TFCPS_CodeUnit_BuildCodeUnit:
151
151
 
152
152
  @GeneralUtilities.check_arguments
153
153
  def update_dependencies(self) -> None:
154
- self.sc.log.log("Update dependencies...")
154
+ self.sc.log.log("Update dependencies for codeunit...")
155
155
  self.sc.run_program(GeneralUtilities.get_python_executable(), "UpdateDependencies.py", os.path.join(self.codeunit_folder, "Other"),print_live_output=True)
@@ -436,7 +436,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
436
436
  @GeneralUtilities.check_arguments
437
437
  def update_dependencies(self) -> None:
438
438
  repository=self.repository
439
- self.sc.log.log("Update dependencies...")
439
+ self.sc.log.log("Update dependencies for product...")
440
440
  self.update_year_in_license_file()
441
441
  self.sc.assert_is_git_repository(repository)
442
442
  self.sc.assert_no_uncommitted_changes(repository)
@@ -448,10 +448,12 @@ class TFCPS_CodeUnit_BuildCodeUnits:
448
448
  self.sc.log.log(f"Update dependencies of codeunit {codeunit_name}...")
449
449
  codeunit_folder=os.path.join(repository,codeunit_name)
450
450
  tFCPS_CodeUnit_BuildCodeUnit:TFCPS_CodeUnit_BuildCodeUnit = TFCPS_CodeUnit_BuildCodeUnit(codeunit_folder,self.sc.log.loglevel,"QualityCheck",None,True,False)
451
- tFCPS_CodeUnit_BuildCodeUnit.build_codeunit()#ensure requirements for updating are there (some programming-languages needs this)
451
+ if self.sc.git_repository_has_uncommitted_changes(repository):
452
+ tFCPS_CodeUnit_BuildCodeUnit.build_codeunit()#ensure requirements for updating are there (some programming-languages needs this)
452
453
  if self.tfcps_tools_general.codeunit_has_updatable_dependencies(os.path.join(codeunit_folder,f"{codeunit_name}.codeunit.xml")):
453
454
  self.sc.run_program(GeneralUtilities.get_python_executable(),"UpdateDependencies.py",os.path.join(codeunit_folder,"Other"))
454
- tFCPS_CodeUnit_BuildCodeUnit.build_codeunit()#check if codeunit is still buildable
455
+ if self.sc.git_repository_has_uncommitted_changes(repository):
456
+ tFCPS_CodeUnit_BuildCodeUnit.build_codeunit()#check if codeunit is still buildable
455
457
  if self.sc.git_repository_has_uncommitted_changes(repository):
456
458
  changelog_folder = os.path.join(repository, "Other", "Resources", "Changelog")
457
459
  project_version:str=self.tfcps_tools_general.get_version_of_project(repository)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scriptcollection
3
- Version: 4.3.13
3
+ Version: 4.3.15
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Author-email: Marius Göcke <marius.goecke@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/anionDev/ScriptCollection
@@ -8,8 +8,8 @@ ScriptCollection/ProgramRunnerBase.py,sha256=eZenpiIFW1dhvSVCG7cfBs5hO4_KLlOxR7o
8
8
  ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrRjAPIwT5Y,37
9
9
  ScriptCollection/ProgramRunnerPopen.py,sha256=zVD-gZY85o8wiGFcpYAGNDl-tXaKzipl1Bkhqy2ois4,4681
10
10
  ScriptCollection/ProgramRunnerSudo.py,sha256=RXsiceQ8W6a8YDk_2BPscVbIAmDIpIxqe9WHBy2r4CM,5233
11
- ScriptCollection/SCLog.py,sha256=Z-HhC_CRtU3HdQflNsabFh9IJOucHcXmxMDcf58fli0,4671
12
- ScriptCollection/ScriptCollectionCore.py,sha256=KgRy5rXTeWghbyds2Fa1OgS2JtWzQlpzmJxM4HQxMc4,230165
11
+ ScriptCollection/SCLog.py,sha256=LdzSJy3NnnwYCCefz2h4tiTy4BjT8lOz3IBG_bMOg9E,4821
12
+ ScriptCollection/ScriptCollectionCore.py,sha256=RKZgbPq81y8cBoF21U-mFZvU_Y9f5oh_pi8PrsPcpB4,230165
13
13
  ScriptCollection/UnassignedVariablesCheck.py,sha256=v59qLQ5RRvx31ouuCW7NWZj3McWENvGBPkV5ZGBmqJE,4344
14
14
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  ScriptCollection/OCIImages/AbstractImageHandler.py,sha256=o129UYDtLymCRjMZBP9Puaj19ueMHoNt6UTLspfnaRc,1758
@@ -34,8 +34,8 @@ ScriptCollection/Resources/Fonts/LICENSE.txt,sha256=egg7E25k0GR5TDQZdR5cfdENL2TB
34
34
  ScriptCollection/Resources/MaintenanceSite/MaintenanceSite.html,sha256=CX9S1bdOz6xU2aGfr03tJRGczQrlpn-IeODc15d5kc0,232
35
35
  ScriptCollection/TFCPS/SCTaskRunnerServer.py,sha256=rpuwSsQ6YQfZS2LGnvOH5ql8zs_-cHU4LQttS7XNT60,11272
36
36
  ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=oICRtl85n2puWvchcJIkmLZL1BAylMbzH7ltBGWfqgY,31973
37
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=s4E20EkvFZpsg2c2Gu-D6kHXS0QIkpx_chawHNSnlnU,9891
38
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=4wOl_GSzlNwTo0OtMzLut4joglz3Sr0FkBrc5TlaAy0,28532
37
+ ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=Ll5EOkpVpPiFrM2mLeQXolaF7075IwgtnHXvfdpkH4k,9904
38
+ ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=2Xfkk8MOx7ZVksaOqWttnLh9KMchmq-9kMIR1-NEfp8,28704
39
39
  ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=X2NgZgbOkJsdZ6wMHB_RuS_rQCuz5oQCqzYrxyXBN9Q,6680
40
40
  ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=5vCFfDiU8bvfcnoKNs2ATS8nsl6mYXcIuX7XfYE0tvg,2116
41
41
  ScriptCollection/TFCPS/TFCPS_MergeToMain.py,sha256=zp7n0Li7GTi4tERDMgDcJ-o3m6131m31zvkat0lALEc,7781
@@ -63,8 +63,8 @@ ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=Bd1gxCk9Fb
63
63
  ScriptCollection/TFCPS/Python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
64
  ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=WhOsMpJxNGqnQGA3nJ99ruyqymxBeJxCcpK98zJduTo,1680
65
65
  ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
- scriptcollection-4.3.13.dist-info/METADATA,sha256=ZFpiTXWmImXQAWLGOXU88lG5UJFrne9CA-TXD6FvXtc,7816
67
- scriptcollection-4.3.13.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
68
- scriptcollection-4.3.13.dist-info/entry_points.txt,sha256=MwiP9P29EeSfjS19JOZmqbx8OzpZrUWpgMza3EffBs8,5812
69
- scriptcollection-4.3.13.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
70
- scriptcollection-4.3.13.dist-info/RECORD,,
66
+ scriptcollection-4.3.15.dist-info/METADATA,sha256=sbB8lio0GQ4GjyrvmK8V23mZHlrVrWEHbaN8CbwmzCk,7816
67
+ scriptcollection-4.3.15.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
68
+ scriptcollection-4.3.15.dist-info/entry_points.txt,sha256=MwiP9P29EeSfjS19JOZmqbx8OzpZrUWpgMza3EffBs8,5812
69
+ scriptcollection-4.3.15.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
70
+ scriptcollection-4.3.15.dist-info/RECORD,,