ScriptCollection 3.5.29__py3-none-any.whl → 3.5.31__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.
@@ -31,7 +31,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
31
31
  from .ProgramRunnerPopen import ProgramRunnerPopen
32
32
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
33
33
 
34
- version = "3.5.29"
34
+ version = "3.5.31"
35
35
  __version__ = version
36
36
 
37
37
 
@@ -753,7 +753,7 @@ class TasksForCommonProjectStructure:
753
753
  for file in GeneralUtilities.get_all_files_of_folder(src_folder)+GeneralUtilities.get_all_files_of_folder(tests_folder):
754
754
  relative_file_path_in_repository = os.path.relpath(file, repository_folder)
755
755
  if file.endswith(".py") and os.path.getsize(file) > 0 and not self.__sc.file_is_git_ignored(relative_file_path_in_repository, repository_folder):
756
- GeneralUtilities.write_message_to_stdout(f"Check for linting-issues in {os.path.relpath(file,os.path.join(repository_folder,codeunitname))}.")
756
+ GeneralUtilities.write_message_to_stdout(f"Check for linting-issues in {os.path.relpath(file, os.path.join(repository_folder, codeunitname))}.")
757
757
  linting_result = self.__sc.python_file_has_errors(file, repository_folder)
758
758
  if (linting_result[0]):
759
759
  errors_found = True
@@ -1991,6 +1991,7 @@ class TasksForCommonProjectStructure:
1991
1991
 
1992
1992
  @GeneralUtilities.check_arguments
1993
1993
  def add_github_release(self, productname: str, projectversion: str, build_artifacts_folder: str, github_username: str, repository_folder: str, commandline_arguments: list[str]) -> None:
1994
+ GeneralUtilities.write_message_to_stdout(f"Create GitHub-release for {productname}.")
1994
1995
  verbosity = TasksForCommonProjectStructure.get_verbosity_from_commandline_arguments(commandline_arguments, 1)
1995
1996
  github_repo = f"{github_username}/{productname}"
1996
1997
  artifact_files = []
@@ -2606,6 +2607,13 @@ class TasksForCommonProjectStructure:
2606
2607
  codeunits = self.get_codeunits(repository_folder)
2607
2608
  updated_dependencies = False
2608
2609
  verbosity: int = 1 # TODO set value dynamically
2610
+ update_dependencies_script_filename = "UpdateDependencies.py"
2611
+ # update dependencies of resources
2612
+ global_scripts_folder = os.path.join(repository_folder, "Other", "Scripts")
2613
+ if os.path.isfile(os.path.join(global_scripts_folder, update_dependencies_script_filename)):
2614
+ self.__sc.run_program("python", update_dependencies_script_filename, global_scripts_folder)
2615
+
2616
+ # update dependencies of codeunits
2609
2617
  for codeunit in codeunits:
2610
2618
  codeunit_file = os.path.join(repository_folder, codeunit, f"{codeunit}.codeunit.xml")
2611
2619
  codeunit_has_updatable_dependencies = self.codeunit_has_updatable_dependencies(codeunit_file)
@@ -2613,7 +2621,7 @@ class TasksForCommonProjectStructure:
2613
2621
  codeunit_folder = os.path.join(repository_folder, codeunit)
2614
2622
  update_dependencies_script_folder = os.path.join(codeunit_folder, "Other")
2615
2623
  GeneralUtilities.ensure_directory_exists(os.path.join(update_dependencies_script_folder, "Resources", "CodeAnalysisResult"))
2616
- self.__sc.run_program("python", "UpdateDependencies.py", update_dependencies_script_folder, verbosity)
2624
+ self.__sc.run_program("python", update_dependencies_script_filename, update_dependencies_script_folder, verbosity)
2617
2625
  if self.__sc.git_repository_has_uncommitted_changes(repository_folder):
2618
2626
  updated_dependencies = True
2619
2627
  version_of_project = self.get_version_of_project(repository_folder)
@@ -2644,6 +2652,7 @@ class TasksForCommonProjectStructure:
2644
2652
 
2645
2653
  @GeneralUtilities.check_arguments
2646
2654
  def generic_prepare_new_release(self, generic_prepare_new_release_arguments: GenericPrepareNewReleaseArguments):
2655
+ GeneralUtilities.write_message_to_stdout(f"Prepare release for {generic_prepare_new_release_arguments.product_name}.")
2647
2656
 
2648
2657
  # constants
2649
2658
  folder_of_this_file = os.path.dirname(generic_prepare_new_release_arguments.current_file)
@@ -2688,6 +2697,7 @@ class TasksForCommonProjectStructure:
2688
2697
 
2689
2698
  @GeneralUtilities.check_arguments
2690
2699
  def generic_create_release(self, generic_create_release_arguments: GenericCreateReleaseArguments) -> tuple[bool, str]:
2700
+ GeneralUtilities.write_message_to_stdout(f"Create release for {generic_create_release_arguments.product_name}.")
2691
2701
  folder_of_this_file = os.path.dirname(generic_create_release_arguments.current_file)
2692
2702
  build_repository_folder = GeneralUtilities.resolve_relative_path("../..", folder_of_this_file)
2693
2703
  repository_folder_name = generic_create_release_arguments.product_name
@@ -2735,6 +2745,7 @@ class TasksForCommonProjectStructure:
2735
2745
 
2736
2746
  @GeneralUtilities.check_arguments
2737
2747
  def update_http_documentation(self, update_http_documentation_arguments: UpdateHTTPDocumentationArguments):
2748
+ GeneralUtilities.write_message_to_stdout(f"Update HTTP-documentation for for {update_http_documentation_arguments.product_name}.")
2738
2749
  folder_of_this_file = str(os.path.dirname(update_http_documentation_arguments.current_file))
2739
2750
 
2740
2751
  ref_repo = GeneralUtilities.resolve_relative_path(f"../../Submodules/{update_http_documentation_arguments.reference_repository_name}", folder_of_this_file)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ScriptCollection
3
- Version: 3.5.29
3
+ Version: 3.5.31
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
@@ -23,7 +23,7 @@ Classifier: Topic :: Utilities
23
23
  Requires-Python: >=3.10
24
24
  Description-Content-Type: text/markdown
25
25
  Requires-Dist: build >=1.2.2.post1
26
- Requires-Dist: coverage >=7.6.4
26
+ Requires-Dist: coverage >=7.6.7
27
27
  Requires-Dist: cyclonedx-bom >=5.1.1
28
28
  Requires-Dist: defusedxml >=0.7.1
29
29
  Requires-Dist: keyboard >=0.13.5
@@ -1,16 +1,16 @@
1
1
  ScriptCollection/Executables.py,sha256=57f2bopoRUchbyyCZTseBk0ynEyHfXc2u4-LraxI7qg,20161
2
- ScriptCollection/GeneralUtilities.py,sha256=AElXv2NO30cTw-Qs3qVmO-YCOQ5FvBQM3RZMywuKQ_Y,35121
2
+ ScriptCollection/GeneralUtilities.py,sha256=6tMhEThExEJse33i7HgfJEvRqndNkSOzoXDQA8lUfHw,35809
3
3
  ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZfT89mU,1395
4
4
  ScriptCollection/ProgramRunnerBase.py,sha256=7QAjoqOz6XPmJH19F2k-Z1fFQB_uZnPFvn-T54IJcHQ,2324
5
5
  ScriptCollection/ProgramRunnerEpew.py,sha256=C2Rs3YWOWWWJct7XmKphp5CF1tf0j4Fp-ljV2drLTfs,6349
6
6
  ScriptCollection/ProgramRunnerPopen.py,sha256=G3LgQUVCfaq7XjBsGzalElH31Hbr0etttGR2_H87YzA,3512
7
7
  ScriptCollection/RPStream.py,sha256=NRRHL3YSP3D9MuAV2jB_--0KUKCsvJGxeKnxgrRZ9kY,1545
8
- ScriptCollection/ScriptCollectionCore.py,sha256=hJFDTk5gJtTECbWX7m92Q63Ts95ZMN-_dh3tRypLLWs,101921
9
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=YrCDXbGUIyR_pNH70yq90fRSmIncUia_TCWwFxcY_dc,194282
8
+ ScriptCollection/ScriptCollectionCore.py,sha256=OYVN6uOsQgwVk4CCGwNZPiuqblf7zaXLrO_G2Vq57ic,101921
9
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=lrypLs_dF5a0CCKinMwZhbg0LxJkVHxlmqJF4B6I31U,195223
10
10
  ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- ScriptCollection-3.5.29.dist-info/METADATA,sha256=nYenV-RxLarp4trAzLJVDInmTv-59RNoSvWcOsL5HPE,7684
13
- ScriptCollection-3.5.29.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
14
- ScriptCollection-3.5.29.dist-info/entry_points.txt,sha256=yASwR6hWZ_b5d4W49YeX1htD8ngfWbwgjpfQiJdtUAU,2322
15
- ScriptCollection-3.5.29.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- ScriptCollection-3.5.29.dist-info/RECORD,,
12
+ ScriptCollection-3.5.31.dist-info/METADATA,sha256=AmndyxGsXVmE1zsut5NOoZyk1sMChMoqGdcXiP6wA0w,7684
13
+ ScriptCollection-3.5.31.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
14
+ ScriptCollection-3.5.31.dist-info/entry_points.txt,sha256=yASwR6hWZ_b5d4W49YeX1htD8ngfWbwgjpfQiJdtUAU,2322
15
+ ScriptCollection-3.5.31.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ ScriptCollection-3.5.31.dist-info/RECORD,,