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

@@ -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.57"
39
+ version = "4.0.59"
40
40
  __version__ = version
41
41
 
42
42
 
@@ -83,6 +83,7 @@ class TFCPS_MergeToStable:
83
83
 
84
84
 
85
85
  self.sc.log.log("Release artifacts...")
86
+ project_version:str=self.tFCPS_Tools_General.get_version_of_project(repository)
86
87
  for codeunit in self.tFCPS_Tools_General.get_codeunits(self.createRelease_configuration.repository):
87
88
  self.sc.git_checkout(self.createRelease_configuration.repository, self.createRelease_configuration.source_branch, True,True)
88
89
  if self.createRelease_configuration.artifacts_target_folder is not None:
@@ -107,7 +108,6 @@ class TFCPS_MergeToStable:
107
108
  self.sc.log.log(f"Release artifacts of codeunit {codeunit}...")
108
109
  reference_folder:str=os.path.join(reference_repo,"ReferenceContent")
109
110
  repository:str=self.createRelease_configuration.repository
110
- project_version:str=self.tFCPS_Tools_General.get_version_of_project(repository)
111
111
  projectname:str=os.path.basename(repository)
112
112
  public_repository_url:str=self.createRelease_configuration.common_remote_url
113
113
  main_branch_name:str=self.createRelease_configuration.source_branch
@@ -1263,3 +1263,20 @@ class TFCPS_Tools_General:
1263
1263
  docker_project_name = f"{codeunit_name}_{example_name}".lower()
1264
1264
  self.__sc.log.log("Stop docker-container...")
1265
1265
  self.__sc.run_program("docker", f"compose --project-name {docker_project_name} down", folder)
1266
+
1267
+ @GeneralUtilities.check_arguments
1268
+ def update_submodule(self, repository_folder: str, submodule_name: str, local_branch: str = "main", remote_branch: str = "main", remote: str = "origin"):
1269
+ submodule_folder = GeneralUtilities.resolve_relative_path("Other/Resources/Submodules/"+submodule_name, repository_folder)
1270
+ self.__sc.git_fetch(submodule_folder, remote)
1271
+ self.__sc.git_checkout(submodule_folder, local_branch)
1272
+ self.__sc.git_pull(submodule_folder, remote, local_branch, remote_branch, True)
1273
+ current_version = self.__sc.get_semver_version_from_gitversion(repository_folder)
1274
+ changelog_file = os.path.join(repository_folder, "Other", "Resources", "Changelog", f"v{current_version}.md")
1275
+ if (not os.path.isfile(changelog_file)):
1276
+ GeneralUtilities.ensure_file_exists(changelog_file)
1277
+ GeneralUtilities.write_text_to_file(changelog_file, """# Release notes
1278
+
1279
+ ## Changes
1280
+
1281
+ - Updated geo-ip-database.
1282
+ """)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 4.0.57
3
+ Version: 4.0.59
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
@@ -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=V_8is0ONoR4txEI2b6u2bp0XsnY0RUX_vnmvltFdYt8,142342
12
+ ScriptCollection/ScriptCollectionCore.py,sha256=mtg72npynGXVQ1c_LGrV_4x73_O-axIjk914aPughy4,142342
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
@@ -17,10 +17,10 @@ ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=f9oGnopuzn3iDHC1A
17
17
  ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=bcJlfI062Eoq7MOIhun-_iNG7SdO1ZIuC_cylaoLI1s,6332
18
18
  ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=O-0guM_LJCcZmPZJhMgTvXD2RXUJEBWWv6Bt6hDFhvM,1943
19
19
  ScriptCollection/TFCPS/TFCPS_MergeToMain.py,sha256=7F9cwFy-7bxN5mkK9V_n7ffMPvBxLwzQvrAe60fbEMM,7245
20
- ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=ifB1K6A903vvfH0LvtiFbZgYSgR94thfEI-jjf40LpU,21653
20
+ ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=1VNs7QxSjkZjjYi281LujZ1fOKP-LWHJKpdruA6L2Ws,21649
21
21
  ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=CxdwUklhZVuJGp0vcokoH_KMXFzmlUlZwj77xFYijho,2242
22
22
  ScriptCollection/TFCPS/TFCPS_Tools_Dependencies.py,sha256=o7HI3ki3WWqlAiUsrh3Lky_w6UhYh9hdjYPGOhubQGA,414
23
- ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=nIOEeZ3UWzzD5S7RkMnJedDV8oHlPMaCc_2qPH1YxBY,79912
23
+ ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=lZb-LqBfIYhVTmqjpxfJ3Cp7YIbVcre62c5sElMi-xc,80894
24
24
  ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  ScriptCollection/TFCPS/Docker/TFCPS_CodeUnitSpecific_Docker.py,sha256=ylPvcdiN7RuqXpM-3uNqs40v1kyhaC0guV4JA2pIt_M,5234
26
26
  ScriptCollection/TFCPS/Docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -35,8 +35,8 @@ ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=aF53bvcuZi
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.57.dist-info/METADATA,sha256=bBQTULTctKsehHdAE7Che7mEqqncQzEv9I7RD1wSsXc,7688
39
- scriptcollection-4.0.57.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
- scriptcollection-4.0.57.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
41
- scriptcollection-4.0.57.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
42
- scriptcollection-4.0.57.dist-info/RECORD,,
38
+ scriptcollection-4.0.59.dist-info/METADATA,sha256=Hi-eMj8lIT6fxUx9obu3uvI1sIxitzVlXqKcyt6y3Ek,7688
39
+ scriptcollection-4.0.59.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
+ scriptcollection-4.0.59.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
41
+ scriptcollection-4.0.59.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
42
+ scriptcollection-4.0.59.dist-info/RECORD,,