ScriptCollection 3.5.96__py3-none-any.whl → 3.5.98__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.
@@ -33,7 +33,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
33
33
  from .ProgramRunnerPopen import ProgramRunnerPopen
34
34
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
35
35
 
36
- version = "3.5.96"
36
+ version = "3.5.98"
37
37
  __version__ = version
38
38
 
39
39
 
@@ -292,7 +292,7 @@ class ScriptCollectionCore:
292
292
 
293
293
  @GeneralUtilities.check_arguments
294
294
  def git_push_with_retry(self, folder: str, remotename: str, localbranchname: str, remotebranchname: str, forcepush: bool = False, pushalltags: bool = True, verbosity: int = 0, amount_of_attempts: int = 5) -> None:
295
- GeneralUtilities.retry_action(lambda: self.git_push(folder, remotename, localbranchname, remotebranchname, forcepush, pushalltags), amount_of_attempts)
295
+ GeneralUtilities.retry_action(lambda: self.git_push(folder, remotename, localbranchname, remotebranchname, forcepush, pushalltags,verbosity), amount_of_attempts)
296
296
 
297
297
  @GeneralUtilities.check_arguments
298
298
  def git_push(self, folder: str, remotename: str, localbranchname: str, remotebranchname: str, forcepush: bool = False, pushalltags: bool = True, verbosity: int = 0) -> None:
@@ -2724,11 +2724,11 @@ class TasksForCommonProjectStructure:
2724
2724
 
2725
2725
  @GeneralUtilities.check_arguments
2726
2726
  def ensure_plantuml_is_available(self, target_folder: str) -> None:
2727
- self.ensure_file_from_github_assets_is_available(target_folder, "plantuml", "plantuml", "PlantUML", "plantuml.jar", lambda latest_version: "plantuml.jar")
2727
+ self.ensure_file_from_github_assets_is_available_with_retry(target_folder, "plantuml", "plantuml", "PlantUML", "plantuml.jar", lambda latest_version: "plantuml.jar")
2728
2728
 
2729
2729
  @GeneralUtilities.check_arguments
2730
2730
  def ensure_androidappbundletool_is_available(self, target_folder: str) -> None:
2731
- self.ensure_file_from_github_assets_is_available(target_folder, "google", "bundletool", "AndroidAppBundleTool", "bundletool.jar", lambda latest_version: f"bundletool-all-{latest_version}.jar")
2731
+ self.ensure_file_from_github_assets_is_available_with_retry(target_folder, "google", "bundletool", "AndroidAppBundleTool", "bundletool.jar", lambda latest_version: f"bundletool-all-{latest_version}.jar")
2732
2732
 
2733
2733
  @GeneralUtilities.check_arguments
2734
2734
  def ensure_cyclonedxcli_is_available(self, target_folder: str) -> None:
@@ -2739,8 +2739,12 @@ class TasksForCommonProjectStructure:
2739
2739
  local_filename = local_filename+".exe"
2740
2740
  else:
2741
2741
  filename_on_github = "cyclonedx-linux-x64"
2742
- self.ensure_file_from_github_assets_is_available(target_folder, "CycloneDX", "cyclonedx-cli", "CycloneDXCLI", local_filename, lambda latest_version: filename_on_github)
2742
+ self.ensure_file_from_github_assets_is_available_with_retry(target_folder, "CycloneDX", "cyclonedx-cli", "CycloneDXCLI", local_filename, lambda latest_version: filename_on_github)
2743
2743
 
2744
+ @GeneralUtilities.check_arguments
2745
+ def ensure_file_from_github_assets_is_available_with_retry(self, target_folder: str, githubuser: str, githubprojectname: str, resource_name: str, local_filename: str, get_filename_on_github,amount_of_attempts:int=5) -> None:
2746
+ GeneralUtilities.retry_action(lambda: self.ensure_file_from_github_assets_is_available(target_folder, githubuser, githubprojectname, resource_name, local_filename, get_filename_on_github), amount_of_attempts)
2747
+
2744
2748
  @GeneralUtilities.check_arguments
2745
2749
  def ensure_file_from_github_assets_is_available(self, target_folder: str, githubuser: str, githubprojectname: str, resource_name: str, local_filename: str, get_filename_on_github) -> None:
2746
2750
  resource_folder = os.path.join(target_folder, "Other", "Resources", resource_name)
@@ -3058,7 +3062,6 @@ class TasksForCommonProjectStructure:
3058
3062
  update_dependencies_script_folder = os.path.join(codeunit_folder, "Other")
3059
3063
  GeneralUtilities.ensure_directory_exists(os.path.join(update_dependencies_script_folder, "Resources", "CodeAnalysisResult"))
3060
3064
  self.__sc.run_program("python", update_dependencies_script_filename, update_dependencies_script_folder, verbosity, print_live_output=True)
3061
- self.build_specific_codeunits(repository_folder, [codeunit], 0, target_environmenttype, None, False, None, True, [], False, "Build due to updated dependencies", False)
3062
3065
  if self.__sc.git_repository_has_uncommitted_changes(repository_folder):
3063
3066
  version_of_project = self.get_version_of_project(repository_folder)
3064
3067
  changelog_file = os.path.join(repository_folder, "Other", "Resources", "Changelog", f"v{version_of_project}.md")
@@ -3072,7 +3075,7 @@ class TasksForCommonProjectStructure:
3072
3075
  GeneralUtilities.write_message_to_stdout(f"Updated dependencies in codeunit {codeunit}.")
3073
3076
  else:
3074
3077
  GeneralUtilities.write_message_to_stdout(f"There are no dependencies to update in codeunit {codeunit}.")
3075
- self.build_codeunits(repository_folder, target_environmenttype="QualityCheck", do_git_clean_when_no_changes=True, note="Check if product is buildable after dependency-update")
3078
+ self.build_specific_codeunits(repository_folder, [codeunit], 0, target_environmenttype, None, False, None, True, [], False, f"Build codeunit {codeunit} due to updated dependencies", False)
3076
3079
  self.__sc.git_commit(repository_folder, "Updated dependencies")
3077
3080
 
3078
3081
  class GenericPrepareNewReleaseArguments:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: ScriptCollection
3
- Version: 3.5.96
3
+ Version: 3.5.98
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
@@ -35,7 +35,7 @@ Requires-Dist: pycdlib>=1.14.0
35
35
  Requires-Dist: Pygments>=2.19.1
36
36
  Requires-Dist: pylint>=3.3.5
37
37
  Requires-Dist: pyOpenSSL>=25.0.0
38
- Requires-Dist: PyPDF>=5.3.1
38
+ Requires-Dist: PyPDF>=5.4.0
39
39
  Requires-Dist: pytest>=8.3.5
40
40
  Requires-Dist: PyYAML>=6.0.2
41
41
  Requires-Dist: qrcode>=8.0
@@ -6,12 +6,12 @@ ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1
6
6
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
7
7
  ScriptCollection/RPStream.py,sha256=NRRHL3YSP3D9MuAV2jB_--0KUKCsvJGxeKnxgrRZ9kY,1545
8
8
  ScriptCollection/SCLog.py,sha256=l4aekBiGoNkKGtvO_Er3NY_K7ts4ZWtIGlhq07I-4LY,30
9
- ScriptCollection/ScriptCollectionCore.py,sha256=sE3JQsihlPzn_X9RpGm3D5_Ydk_HU1xEXsijk-hH3YE,123973
10
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=0rCSZo4dDHw3io-szTqg7_TPO69w9Na4fUZnmr0Ma5I,226895
9
+ ScriptCollection/ScriptCollectionCore.py,sha256=BeUb9YO7qeFfkM66-iRFWBh_YV8lYUFY7IHDAxu8G7M,123983
10
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=FX8Jnuy9V8MHeOUW_Ifbw6b2nQGbV9Xm5YPeDIJyUgU,227251
11
11
  ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
12
12
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
13
- scriptcollection-3.5.96.dist-info/METADATA,sha256=hOQCtb5sBGidwxEWuf9k6GeIw5AP7_PV_g2oP92aZU8,7664
14
- scriptcollection-3.5.96.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
15
- scriptcollection-3.5.96.dist-info/entry_points.txt,sha256=fYCGWGNGijBQHhFe6UAO-BEpfEOxLyNJemukt5ElSzs,3644
16
- scriptcollection-3.5.96.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
17
- scriptcollection-3.5.96.dist-info/RECORD,,
13
+ scriptcollection-3.5.98.dist-info/METADATA,sha256=NelJnZ3uMi-Y0tuEwmCq0bt0ujwPkJxI3aY6BXTwohw,7664
14
+ scriptcollection-3.5.98.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
15
+ scriptcollection-3.5.98.dist-info/entry_points.txt,sha256=fYCGWGNGijBQHhFe6UAO-BEpfEOxLyNJemukt5ElSzs,3644
16
+ scriptcollection-3.5.98.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
17
+ scriptcollection-3.5.98.dist-info/RECORD,,