ScriptCollection 3.5.109__py3-none-any.whl → 3.5.110__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.109"
36
+ version = "3.5.110"
37
37
  __version__ = version
38
38
 
39
39
 
@@ -862,7 +862,7 @@ class TasksForCommonProjectStructure:
862
862
  if os.path.isfile(os.path.join(codeunit_folder, runsettings_file)):
863
863
  arg = f"{arg} --settings {runsettings_file}"
864
864
  arg = f"{arg} /p:CollectCoverage=true /p:CoverletOutput=../Other/Artifacts/TestCoverage/Testcoverage /p:CoverletOutputFormat=cobertura"
865
- self.__sc.run_program("dotnet", arg, codeunit_folder, verbosity=verbosity)
865
+ self.__sc.run_program("dotnet", arg, codeunit_folder, verbosity=verbosity,print_live_output=True)
866
866
  target_file = os.path.join(coverage_file_folder, "TestCoverage.xml")
867
867
  GeneralUtilities.ensure_file_does_not_exist(target_file)
868
868
  os.rename(os.path.join(coverage_file_folder, "Testcoverage.cobertura.xml"), target_file)
@@ -2477,11 +2477,18 @@ class TasksForCommonProjectStructure:
2477
2477
  GeneralUtilities.copy_content_of_folder(ca_source_folder, ca_target_folder)
2478
2478
 
2479
2479
  @GeneralUtilities.check_arguments
2480
- def _internal_get_sorted_codeunits_by_dict(self, codeunits=dict[str, set[str]]) -> list[str]:
2481
- result_typed = list(TopologicalSorter(codeunits).static_order())
2482
- result = list()
2483
- for item in result_typed:
2484
- result.append(str(item))
2480
+ def _internal_get_sorted_codeunits_by_dict(self, codeunits: dict[str, set[str]]) -> list[str]:
2481
+ sorted_codeunits = {
2482
+ node: sorted(codeunits[node])
2483
+ for node in sorted(codeunits)
2484
+ }
2485
+
2486
+ ts = TopologicalSorter()
2487
+ for node, deps in sorted_codeunits.items():
2488
+ ts.add(node, *deps)
2489
+
2490
+ result_typed = list(ts.static_order())
2491
+ result = [str(item) for item in result_typed]
2485
2492
  return result
2486
2493
 
2487
2494
  @GeneralUtilities.check_arguments
@@ -2546,7 +2553,7 @@ class TasksForCommonProjectStructure:
2546
2553
 
2547
2554
  @GeneralUtilities.check_arguments
2548
2555
  def build_specific_codeunits(self, repository_folder: str, codeunits: list[str], verbosity: int = 1, target_environmenttype: str = "QualityCheck", additional_arguments_file: str = None, is_pre_merge: bool = False, export_target_directory: str = None, assume_dependent_codeunits_are_already_built: bool = True, commandline_arguments: list[str] = [], do_git_clean_when_no_changes: bool = False, note: str = None, check_for_new_files: bool = True) -> None:
2549
- codeunits_list = {", ".join(codeunits)}
2556
+ codeunits_list = "{"+", ".join(["a","b"])+"}"
2550
2557
  if verbosity > 2:
2551
2558
  GeneralUtilities.write_message_to_stdout(f"Start building codeunits ({codeunits_list}) in repository '{repository_folder}'...")
2552
2559
  self.__sc.assert_is_git_repository(repository_folder)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 3.5.109
3
+ Version: 3.5.110
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
@@ -39,7 +39,7 @@ Requires-Dist: pyOpenSSL>=25.0.0
39
39
  Requires-Dist: PyPDF>=5.4.0
40
40
  Requires-Dist: pytest>=8.3.5
41
41
  Requires-Dist: PyYAML>=6.0.2
42
- Requires-Dist: qrcode>=8.1
42
+ Requires-Dist: qrcode>=8.2
43
43
  Requires-Dist: send2trash>=1.8.3
44
44
  Requires-Dist: twine>=6.1.0
45
45
  Requires-Dist: xmlschema>=4.0.1
@@ -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=X3jRXN0FRstFN7kPFLnzSZUONMbh_YOPr22cKzDgU78,130404
10
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=SJ7V9HilnkCBJGCCrObWwAORSI_pXW9zC4uon1O6Xbg,232705
9
+ ScriptCollection/ScriptCollectionCore.py,sha256=2RmUIh9GWngFo9ucfNrTfcTYQ5KD7RI4iJOUSPelqsA,130404
10
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=5GnI89wwy8_uJH_pZtd0zgZ1C0ReIrZeePjUIwo2sus,232910
11
11
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- scriptcollection-3.5.109.dist-info/METADATA,sha256=8glqA2n3AUjhZOZV4uXRsgdyHmqgyWwcHbkLUeeKqbc,7694
13
- scriptcollection-3.5.109.dist-info/WHEEL,sha256=ck4Vq1_RXyvS4Jt6SI0Vz6fyVs4GWg7AINwpsaGEgPE,91
14
- scriptcollection-3.5.109.dist-info/entry_points.txt,sha256=3qMbfZEMhc_VTJj-bcLwB8AWcn9iXSB3l0AWpuu52Bs,3689
15
- scriptcollection-3.5.109.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
- scriptcollection-3.5.109.dist-info/RECORD,,
12
+ scriptcollection-3.5.110.dist-info/METADATA,sha256=W6tx5MA4Vq71V45HNdsJG1MHJDd9ifbe7OVmgaEm780,7694
13
+ scriptcollection-3.5.110.dist-info/WHEEL,sha256=GHB6lJx2juba1wDgXDNlMTyM13ckjBMKf-OnwgKOCtA,91
14
+ scriptcollection-3.5.110.dist-info/entry_points.txt,sha256=3qMbfZEMhc_VTJj-bcLwB8AWcn9iXSB3l0AWpuu52Bs,3689
15
+ scriptcollection-3.5.110.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
16
+ scriptcollection-3.5.110.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.0.0)
2
+ Generator: setuptools (80.3.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5