ScriptCollection 3.5.107__py3-none-any.whl → 3.5.108__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.107"
36
+ version = "3.5.108"
37
37
  __version__ = version
38
38
 
39
39
 
@@ -1025,8 +1025,9 @@ class TasksForCommonProjectStructure:
1025
1025
 
1026
1026
  if codeunit_has_testcases:
1027
1027
  source_testcoveragereport = os.path.join(other_folder_in_repository, "Artifacts", "TestCoverageReport")
1028
- target_testcoveragereport = os.path.join(target_folder, "TestCoverageReport")
1029
- shutil.copytree(source_testcoveragereport, target_testcoveragereport)
1028
+ if os.path.isdir(source_testcoveragereport): # check, because it is not a mandatory artifact. if the artifact is not available, the user gets already a warning.
1029
+ target_testcoveragereport = os.path.join(target_folder, "TestCoverageReport")
1030
+ shutil.copytree(source_testcoveragereport, target_testcoveragereport)
1030
1031
 
1031
1032
  @GeneralUtilities.check_arguments
1032
1033
  def __standardized_tasks_release_artifact(self, information: CreateReleaseInformationForProjectInCommonProjectFormat) -> None:
@@ -1560,9 +1561,9 @@ class TasksForCommonProjectStructure:
1560
1561
  combined_file = os.path.join(codeunit_folder, file)
1561
1562
  if not os.path.isfile(combined_file):
1562
1563
  raise ValueError(f'The mandatory file "{file}" does not exist in the codeunit-folder.')
1563
-
1564
- if os.path.isfile(os.path.join(codeunit_folder,"Other","requirements.txt")):
1565
- self.install_requirementstxt_for_codeunit(codeunit_folder,verbosity)
1564
+
1565
+ if os.path.isfile(os.path.join(codeunit_folder, "Other", "requirements.txt")):
1566
+ self.install_requirementstxt_for_codeunit(codeunit_folder, verbosity)
1566
1567
 
1567
1568
  # Check developer
1568
1569
  if self.validate_developers_of_repository:
@@ -2271,9 +2272,9 @@ class TasksForCommonProjectStructure:
2271
2272
  def update_dependencies_of_typical_python_repository_requirements(self, repository_folder: str, verbosity: int, cmd_args: list[str]) -> None:
2272
2273
  verbosity = self.get_verbosity_from_commandline_arguments(cmd_args, verbosity)
2273
2274
 
2274
- development_requirements_file = os.path.join(repository_folder, "Other","requirements.txt")
2275
+ development_requirements_file = os.path.join(repository_folder, "Other", "requirements.txt")
2275
2276
  if (os.path.isfile(development_requirements_file)):
2276
- self.__sc.update_dependencies_of_python_in_requirementstxt_file(development_requirements_file,[], verbosity)
2277
+ self.__sc.update_dependencies_of_python_in_requirementstxt_file(development_requirements_file, [], verbosity)
2277
2278
 
2278
2279
  @GeneralUtilities.check_arguments
2279
2280
  def update_dependencies_of_typical_python_codeunit(self, update_script_file: str, verbosity: int, cmd_args: list[str]) -> None:
@@ -2282,17 +2283,17 @@ class TasksForCommonProjectStructure:
2282
2283
  # TODO consider ignored_dependencies
2283
2284
  verbosity = self.get_verbosity_from_commandline_arguments(cmd_args, verbosity)
2284
2285
 
2285
- setup_cfg=os.path.join(codeunit_folder, "setup.cfg")
2286
+ setup_cfg = os.path.join(codeunit_folder, "setup.cfg")
2286
2287
  if (os.path.isfile(setup_cfg)):
2287
- self.__sc.update_dependencies_of_python_in_setupcfg_file(setup_cfg,ignored_dependencies, verbosity)
2288
+ self.__sc.update_dependencies_of_python_in_setupcfg_file(setup_cfg, ignored_dependencies, verbosity)
2288
2289
 
2289
- development_requirements_file = os.path.join(codeunit_folder, "requirements.txt")#required for codeunits which contain python-code which need third-party dependencies
2290
+ development_requirements_file = os.path.join(codeunit_folder, "requirements.txt") # required for codeunits which contain python-code which need third-party dependencies
2290
2291
  if (os.path.isfile(development_requirements_file)):
2291
- self.__sc.update_dependencies_of_python_in_requirementstxt_file(development_requirements_file,ignored_dependencies, verbosity)
2292
+ self.__sc.update_dependencies_of_python_in_requirementstxt_file(development_requirements_file, ignored_dependencies, verbosity)
2292
2293
 
2293
- development_requirements_file2 = os.path.join(codeunit_folder, "Other","requirements.txt")#required for codeunits which contain python-scripts which needs third-party dependencies
2294
+ development_requirements_file2 = os.path.join(codeunit_folder, "Other", "requirements.txt") # required for codeunits which contain python-scripts which needs third-party dependencies
2294
2295
  if (os.path.isfile(development_requirements_file2)):
2295
- self.__sc.update_dependencies_of_python_in_requirementstxt_file(development_requirements_file2, ignored_dependencies,verbosity)
2296
+ self.__sc.update_dependencies_of_python_in_requirementstxt_file(development_requirements_file2, ignored_dependencies, verbosity)
2296
2297
 
2297
2298
  @GeneralUtilities.check_arguments
2298
2299
  def update_dependencies_of_typical_dotnet_codeunit(self, update_script_file: str, verbosity: int, cmd_args: list[str]) -> None:
@@ -3292,15 +3293,15 @@ class TasksForCommonProjectStructure:
3292
3293
  self.__sc.git_commit(GeneralUtilities.resolve_relative_path("../..", folder_of_this_file), f"Updated content of {update_http_documentation_arguments.product_name} v{update_http_documentation_arguments.new_project_version} in {update_http_documentation_arguments.reference_repository_name}-submodule")
3293
3294
 
3294
3295
  @GeneralUtilities.check_arguments
3295
- def install_requirementstxt_for_codeunit(self,codeunit_folder:str,verbosity:int):
3296
+ def install_requirementstxt_for_codeunit(self, codeunit_folder: str, verbosity: int):
3296
3297
  self.__sc.install_requirementstxt_file(codeunit_folder+"/Other/requirements.txt", verbosity)
3297
3298
 
3298
3299
  @GeneralUtilities.check_arguments
3299
- def install_requirementstxt_for_repository(self, repository_folde: str,verbosity:int):
3300
+ def install_requirementstxt_for_repository(self, repository_folde: str, verbosity: int):
3300
3301
  self.__sc.install_requirementstxt_file(repository_folde+"/Other/requirements.txt", verbosity)
3301
3302
 
3302
3303
  @GeneralUtilities.check_arguments
3303
- def update_submodule(self, repository_folder: str, submodule_name:str):
3304
+ def update_submodule(self, repository_folder: str, submodule_name: str):
3304
3305
  submodule_folder = GeneralUtilities.resolve_relative_path("Other/Resources/Submodules/"+submodule_name, repository_folder)
3305
3306
  self.__sc.git_fetch(submodule_folder, "origin")
3306
3307
  self.__sc.git_checkout(submodule_folder, "main")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 3.5.107
3
+ Version: 3.5.108
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
@@ -6,11 +6,11 @@ ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4b
6
6
  ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
7
7
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
8
8
  ScriptCollection/SCLog.py,sha256=Gw27Oclcb0ten7_89PD5CdNMoO-at2hGUOYbF-x1HPQ,2296
9
- ScriptCollection/ScriptCollectionCore.py,sha256=pMWerT9kxD823d4CHKLV7eyAMjRAsDdYaXEoCGDEYis,128371
10
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=9rO_W6kZiy3Lgov0HeyyDhOwriorMeJXlVDvwZ3S1UE,232511
9
+ ScriptCollection/ScriptCollectionCore.py,sha256=9R--jXBBIL0wX6Cw7cq9C1UpZvIgQ_qpvf2jcXgqXY8,128371
10
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=SJ7V9HilnkCBJGCCrObWwAORSI_pXW9zC4uon1O6Xbg,232705
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- scriptcollection-3.5.107.dist-info/METADATA,sha256=nKrrtDhb2dkTemESq47FReNNmlOsk99wSZD6GJlCvkc,7664
13
- scriptcollection-3.5.107.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
14
- scriptcollection-3.5.107.dist-info/entry_points.txt,sha256=fYCGWGNGijBQHhFe6UAO-BEpfEOxLyNJemukt5ElSzs,3644
15
- scriptcollection-3.5.107.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- scriptcollection-3.5.107.dist-info/RECORD,,
12
+ scriptcollection-3.5.108.dist-info/METADATA,sha256=ooO5jOZCS4o095UVS3mMveJO7BUcDqXd5Ijpid7kN_I,7664
13
+ scriptcollection-3.5.108.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
14
+ scriptcollection-3.5.108.dist-info/entry_points.txt,sha256=fYCGWGNGijBQHhFe6UAO-BEpfEOxLyNJemukt5ElSzs,3644
15
+ scriptcollection-3.5.108.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ scriptcollection-3.5.108.dist-info/RECORD,,