ScriptCollection 4.4.4__py3-none-any.whl → 4.4.7__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.
Files changed (22) hide show
  1. ScriptCollection/Executables.py +36 -4
  2. ScriptCollection/Resources/CultureChooser/CultureChooser.js +0 -0
  3. ScriptCollection/Resources/CultureChooser/index.html +0 -0
  4. ScriptCollection/Resources/Dependencies/JRE/Version.txt +0 -0
  5. ScriptCollection/Resources/Dependencies/OpenAPIGenerator/Version.txt +0 -0
  6. ScriptCollection/Resources/Dependencies/PlantUML/Version.txt +0 -0
  7. ScriptCollection/Resources/Fonts/DejaVuSans-Bold.ttf +0 -0
  8. ScriptCollection/Resources/Fonts/DejaVuSans-BoldOblique.ttf +0 -0
  9. ScriptCollection/Resources/Fonts/DejaVuSans-Oblique.ttf +0 -0
  10. ScriptCollection/Resources/Fonts/DejaVuSans.ttf +0 -0
  11. ScriptCollection/Resources/Fonts/LICENSE.txt +0 -0
  12. ScriptCollection/Resources/MaintenanceSite/MaintenanceSite.html +0 -0
  13. ScriptCollection/ScriptCollectionCore.py +1 -1
  14. ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py +83 -4
  15. ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py +71 -0
  16. ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py +60 -19
  17. ScriptCollection/TFCPS/TFCPS_Tools_General.py +2 -2
  18. {scriptcollection-4.4.4.dist-info → scriptcollection-4.4.7.dist-info}/METADATA +1 -1
  19. {scriptcollection-4.4.4.dist-info → scriptcollection-4.4.7.dist-info}/RECORD +11 -11
  20. {scriptcollection-4.4.4.dist-info → scriptcollection-4.4.7.dist-info}/entry_points.txt +1 -0
  21. {scriptcollection-4.4.4.dist-info → scriptcollection-4.4.7.dist-info}/WHEEL +0 -0
  22. {scriptcollection-4.4.4.dist-info → scriptcollection-4.4.7.dist-info}/top_level.txt +0 -0
@@ -312,14 +312,46 @@ def UpdateDependencies() -> int:
312
312
  parser.add_argument('-v', '--verbosity', required=False, default=3, help=f"Sets the loglevel. Possible values: {verbosity_values}")
313
313
  parser.add_argument('--targetenvironment', required=False, default="QualityCheck")
314
314
  parser.add_argument('--additionalargumentsfile', required=False, default=None)
315
- parser.add_argument("-c",'--nocache', required=False, default=False, action='store_true')
315
+ parser.add_argument("-n",'--nocache', required=False, default=False, action='store_true')
316
+ parser.add_argument('-c','--runincontainer', required=False, default=False, action='store_true')
317
+ parser.add_argument('-b','--basemountfolder', required=False, default=None, help="Only used if -c is set.")
316
318
  args = parser.parse_args()
317
319
 
318
320
  verbosity=LogLevel(int(args.verbosity))
319
321
  repo:str=GeneralUtilities.resolve_relative_path(args.repositoryfolder,os.getcwd())
320
- t:TFCPS_CodeUnit_BuildCodeUnits=TFCPS_CodeUnit_BuildCodeUnits(repo,verbosity,args.targetenvironment,args.additionalargumentsfile,not args.nocache,False,False)
321
- t.update_dependencies()
322
- return 0
322
+ t:TFCPS_CodeUnit_BuildCodeUnits=TFCPS_CodeUnit_BuildCodeUnits(repo,verbosity,args.targetenvironment,args.additionalargumentsfile,not args.nocache,False,False)
323
+ if args.runincontainer:
324
+ base_mount_folder:str=args.basemountfolder
325
+ if base_mount_folder is None:
326
+ base_mount_folder=repo
327
+ base_mount_folder:str=GeneralUtilities.resolve_relative_path(base_mount_folder,os.getcwd())
328
+ success, _ = t.update_dependencies_in_container(base_mount_folder)
329
+ return 0 if success else 1
330
+ else:
331
+ t.update_dependencies()
332
+ return 0
333
+
334
+ def UpdateDependenciesC() -> int:
335
+ parser = argparse.ArgumentParser()
336
+ parser.add_argument('-r','--repositoryfolder', required=False, default=".")
337
+ verbosity_values = ", ".join(f"{lvl.value}={lvl.name}" for lvl in LogLevel)
338
+ parser.add_argument('-v', '--verbosity', required=False, default=3, help=f"Sets the loglevel. Possible values: {verbosity_values}")
339
+ parser.add_argument('--targetenvironment', required=False, default="QualityCheck")
340
+ parser.add_argument('--additionalargumentsfile', required=False, default=None)
341
+ parser.add_argument("-n",'--nocache', required=False, default=False, action='store_true')
342
+ parser.add_argument('-b','--basemountfolder', required=False, default=None)
343
+ args = parser.parse_args()
344
+
345
+ GeneralUtilities.reconfigure_standard_input_and_outputs()
346
+ repo:str=GeneralUtilities.resolve_relative_path(args.repositoryfolder,os.getcwd())
347
+ verbosity=LogLevel(int(args.verbosity))
348
+ base_mount_folder:str=args.basemountfolder
349
+ if base_mount_folder is None:
350
+ base_mount_folder=repo
351
+ base_mount_folder:str=GeneralUtilities.resolve_relative_path(base_mount_folder,os.getcwd())
352
+ t:TFCPS_CodeUnit_BuildCodeUnits=TFCPS_CodeUnit_BuildCodeUnits(repo,verbosity,args.targetenvironment,args.additionalargumentsfile,not args.nocache,False,False)
353
+ success, _ = t.update_dependencies_in_container(base_mount_folder)
354
+ return 0 if success else 1
323
355
 
324
356
 
325
357
  def GenerateCertificateAuthority() -> int:
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -39,7 +39,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
39
39
  from .ProgramRunnerPopen import ProgramRunnerPopen
40
40
  from .SCLog import SCLog, LogLevel
41
41
 
42
- version = "4.4.4"
42
+ version = "4.4.7"
43
43
  __version__ = version
44
44
 
45
45
  class VSCodeWorkspaceShellTask:
@@ -17,6 +17,8 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
17
17
  csproj_file:bool = None
18
18
  #the output of the dotnet-cli is localized. The language is set explicitly for the commands whose output gets parsed, because otherwise the parsing would only work on machines which are configured to use english.
19
19
  __dotnet_cli_environment_variables:dict = {"DOTNET_CLI_UI_LANGUAGE": "en-US"}
20
+ #the only accepted form of a version of a package-reference: an exact version in square brackets. Everything else is a version-range.
21
+ __pinned_version_regex = re.compile(r"^\[[^,\[\]]+\]$")
20
22
 
21
23
  def __init__(self,current_file:str,verbosity:LogLevel,targetenvironmenttype:str,use_cache:bool,is_pre_merge:bool):
22
24
  super().__init__(current_file, verbosity,targetenvironmenttype,use_cache,is_pre_merge)
@@ -161,6 +163,47 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
161
163
  return [self.__remove_carriage_returns_recursively(item) for item in value]
162
164
  return value
163
165
 
166
+ @GeneralUtilities.check_arguments
167
+ def __get_lock_file_name(self, runtime: str) -> str:
168
+ """Returns the name of the lock-file which belongs to the given runtime.
169
+
170
+ Every runtime needs its own lock-file: the lock-file records the set of runtime-identifiers it was created for, and a
171
+ restore in locked mode fails with NU1004 when that set differs from the one which is currently restored (the restore
172
+ gets exactly one runtime via "--runtime"). The name is relative, so NuGet resolves it per project - a restore over the
173
+ solution therefore creates one lock-file next to each of the two project-files instead of letting them collide."""
174
+ return f"packages.{runtime}.lock.json"
175
+
176
+ @GeneralUtilities.check_arguments
177
+ def __get_lock_file_arguments(self, codeunit_folder: str, codeunit_name: str, runtime: str) -> list[str]:
178
+ """Returns the restore-arguments which pin the dependencies of the given runtime to the content of its lock-files.
179
+
180
+ Locked mode is only requested when the lock-file of every project of the codeunit already exists, because a restore in
181
+ locked mode can not create one. A codeunit which does not have them yet is restored without it and gets a warning, so
182
+ introducing the lock-files does not break the build of a codeunit which was not migrated yet."""
183
+ lock_file_name: str = self.__get_lock_file_name(runtime)
184
+ expected_lock_files: list[str] = [os.path.join(codeunit_folder, project_name, lock_file_name) for project_name in [codeunit_name, codeunit_name+"Tests"]]
185
+ missing_lock_files: list[str] = [lock_file for lock_file in expected_lock_files if not os.path.isfile(lock_file)]
186
+ result: list[str] = [f"-p:NuGetLockFilePath={lock_file_name}"]
187
+ if len(missing_lock_files) == 0:
188
+ result.append("--locked-mode")
189
+ else:
190
+ self._protected_sc.log.log(f"The dependencies of codeunit \"{codeunit_name}\" are not restored in locked mode for the runtime \"{runtime}\", because the following lock-file(s) do not exist yet: {', '.join(missing_lock_files)}. The restore creates them now; commit them so that the dependencies of this codeunit are pinned.", LogLevel.Warning)
191
+ return result
192
+
193
+ @GeneralUtilities.check_arguments
194
+ def __get_arguments_which_prevent_writing_a_lock_file(self) -> list[str]:
195
+ """Returns the arguments which keep a dotnet-operation from writing a lock-file.
196
+
197
+ The lock-files belong to the restore of the build alone, because only there the runtime - and with it the name of the
198
+ lock-file which belongs to that runtime - is known. Every other dotnet-operation of a codeunit (linting, test, ...)
199
+ works on the solution instead of on one runtime and restores implicitly, and the csproj-property
200
+ "RestorePackagesWithLockFile" would make each of those restores write a lock-file under the default-name. Such a file
201
+ is never validated against anything, because locked mode is only requested for the runtime-specific one, so it would
202
+ only be an additional file which looks like the relevant pinning without being it. The value has to be passed on the
203
+ command-line because a property which the project-file sets explicitly wins over one which comes from the
204
+ environment."""
205
+ return ["-p:RestorePackagesWithLockFile=false"]
206
+
164
207
  @GeneralUtilities.check_arguments
165
208
  def __standardized_tasks_build_for_dotnet_build(self, csproj_file: str, originaloutputfolder: str, files_to_sign: dict[str, str], commitid: str, runtimes: list[str], target_environmenttype_mapping: dict[str, str], copy_license_file_to_target_folder: bool, repository_folder: str, codeunit_name: str) -> None:
166
209
  self._protected_sc.assert_is_git_repository(repository_folder)
@@ -181,7 +224,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
181
224
  GeneralUtilities.ensure_directory_does_not_exist(outputfolder)
182
225
  self._protected_sc.run_program("dotnet", "clean", csproj_file_folder)
183
226
  GeneralUtilities.ensure_directory_exists(outputfolder)
184
- self._protected_sc.run_program_argsasarray("dotnet", ["restore", "--runtime", runtime], codeunit_folder,print_live_output=self.get_verbosity()==LogLevel.Debug)
227
+ self._protected_sc.run_program_argsasarray("dotnet", ["restore", "--runtime", runtime]+self.__get_lock_file_arguments(codeunit_folder, codeunit_name, runtime), codeunit_folder,print_live_output=self.get_verbosity()==LogLevel.Debug)
185
228
  self._protected_sc.run_program_argsasarray("dotnet", ["build", "--no-restore", csproj_file_name, "-c", dotnet_build_configuration, "-o", outputfolder, "--runtime", runtime], csproj_file_folder,print_live_output=self.get_verbosity()==LogLevel.Debug)
186
229
  if copy_license_file_to_target_folder:
187
230
  license_file = os.path.join(repository_folder, "License.txt")
@@ -290,7 +333,11 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
290
333
  self._protected_sc.log.log("Generate SBOM...")
291
334
  codeunit_name = os.path.basename(codeunit_folder)
292
335
  bomfile_folder = "Other/Artifacts/BOM"
293
- self._protected_sc.run_program_argsasarray("dotnet", ["CycloneDX", f"{codeunit_name}/{codeunit_name}.csproj", "-o", bomfile_folder], codeunit_folder)
336
+ # "-dpr" keeps CycloneDX from restoring the project itself. The SBOM is generated directly after the project and its
337
+ # test-project were built, so the dependencies are restored and the assets-file CycloneDX reads is up-to-date already.
338
+ # Its restore would also not be able to name the lock-file of the runtime the build used, so it would write one under
339
+ # the default-name (see __get_arguments_which_prevent_writing_a_lock_file).
340
+ self._protected_sc.run_program_argsasarray("dotnet", ["CycloneDX", f"{codeunit_name}/{codeunit_name}.csproj", "-o", bomfile_folder, "-dpr"], codeunit_folder)
294
341
  codeunitversion = self.tfcps_Tools_General.get_version_of_codeunit(os.path.join(codeunit_folder, f"{codeunit_name}.codeunit.xml"))
295
342
  target = f"{codeunit_folder}/{bomfile_folder}/{codeunit_name}.{codeunitversion}.sbom.xml"
296
343
  GeneralUtilities.ensure_file_does_not_exist(target)
@@ -322,7 +369,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
322
369
  # begin with a drive-letter anymore) and resolves against the working-directory, so it writes to a path
323
370
  # which contains a quote in the middle. On Linux that only creates a strangely named folder, on Windows a
324
371
  # quote is not allowed in a path and the msbuild-task GenerateDepsFile fails with an IOException.
325
- run_result = self._protected_sc.run_program_argsasarray("dotnet", ["build", sln_file, "-nologo", "-v", "minimal", "-o", temp_output_folder], temp_output_folder, throw_exception_if_exitcode_is_not_zero=False, env_vars={"DOTNET_CLI_UI_LANGUAGE": "en-US", "MSBUILDDISABLENODEREUSE": "1"})
372
+ run_result = self._protected_sc.run_program_argsasarray("dotnet", ["build", sln_file, "-nologo", "-v", "minimal", "-o", temp_output_folder]+self.__get_arguments_which_prevent_writing_a_lock_file(), temp_output_folder, throw_exception_if_exitcode_is_not_zero=False, env_vars={"DOTNET_CLI_UI_LANGUAGE": "en-US", "MSBUILDDISABLENODEREUSE": "1"})
326
373
  finally:
327
374
  GeneralUtilities.ensure_directory_does_not_exist(temp_output_folder)
328
375
  diagnostics: list[tuple[LogLevel, str, str | None, int | None]] = []
@@ -393,6 +440,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
393
440
  hints: str = "\n".join(result1[2])
394
441
  raise ValueError(f"'{csproj_file}' with content '{GeneralUtilities.read_text_from_file(csproj_file)}' does not match the standardized .csproj-file-format which is defined by the regex '{result1[1]}'.\n{hints}")
395
442
  self.__check_csproj_urls(csproj_file)
443
+ self.__verify_that_all_package_references_are_pinned(csproj_file)
396
444
 
397
445
  test_csproj_project_name = csproj_project_name+"Tests"
398
446
  test_csproj_file = os.path.join(codeunit_folder, test_csproj_project_name, test_csproj_project_name+".csproj")
@@ -401,6 +449,35 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
401
449
  hints: str = "\n".join(result2[2])
402
450
  raise ValueError(f"'{test_csproj_file}' with content '{GeneralUtilities.read_text_from_file(test_csproj_file)}' does not match the standardized .csproj-file-format which is defined by the regex '{result2[1]}'.\n{hints}")
403
451
  self.__check_csproj_urls(test_csproj_file)
452
+ self.__verify_that_all_package_references_are_pinned(test_csproj_file)
453
+
454
+ @GeneralUtilities.check_arguments
455
+ def __verify_that_all_package_references_are_pinned(self, csproj_file: str) -> None:
456
+ """Ensures that every package-reference of the given project is pinned to exactly one version.
457
+
458
+ The version-attribute of a package-reference is a version-*range*, not a version: "1.2.3" means "at least 1.2.3".
459
+ NuGet resolves such a range to the lowest version which satisfies it - or, when exactly that version is not available
460
+ on the feed (unlisted, removed, incomplete mirror), silently to the next higher one. "[1.2.3]" means exactly 1.2.3,
461
+ so a version which is not available fails loudly instead of becoming a different version than the one which is
462
+ written in the project-file. This keeps the restore deterministic and makes the version which is deployed readable
463
+ from the source-code."""
464
+ root: etree._ElementTree = etree.parse(csproj_file)
465
+ not_pinned: list[str] = []
466
+ for package_reference in root.xpath("//PackageReference"):
467
+ #the attributes are read case-insensitively because msbuild reads them that way: a "version"-attribute is as
468
+ #effective as a "Version"-attribute, so a case-sensitive check would report a version which exists as missing.
469
+ attributes: dict[str, str] = {name.lower(): value for name, value in package_reference.attrib.items()}
470
+ package_name: str = attributes.get("include") or attributes.get("update") or "(package-reference without a name)"
471
+ if 0 < len(package_reference.xpath("*[translate(local-name(),'VERSION','version')='version']")):
472
+ not_pinned.append(f"{package_name}: the version is set as child-element; it must be set as attribute in the form Version=\"[<version>]\".")
473
+ continue
474
+ version: str = attributes.get("version")
475
+ if version is None:
476
+ not_pinned.append(f"{package_name}: no version is set at all, so the restore decides which version is used.")
477
+ elif self.__pinned_version_regex.match(version.strip()) is None:
478
+ not_pinned.append(f"{package_name}: the version \"{version}\" is a version-range, not a pinned version. Pin it in the form Version=\"[<version>]\".")
479
+ if 0 < len(not_pinned):
480
+ raise ValueError(f"The following package-reference(s) in \"{csproj_file}\" are not pinned to exactly one version:\n" + "\n".join(f" {entry}" for entry in not_pinned))
404
481
 
405
482
  @GeneralUtilities.check_arguments
406
483
  def __check_csproj_urls(self, csproj_file: str) -> None:
@@ -437,6 +514,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
437
514
  <IsPackable>false<\\/IsPackable>
438
515
  <PreserveCompilationContext>false<\\/PreserveCompilationContext>
439
516
  <GenerateRuntimeConfigurationFiles>true<\\/GenerateRuntimeConfigurationFiles>
517
+ <RestorePackagesWithLockFile>true<\\/RestorePackagesWithLockFile>
440
518
  <Copyright>([^<]+)<\\/Copyright>
441
519
  <Description>{codeunit_description_regex}<\\/Description>
442
520
  <PackageProjectUrl>https:\\/\\/([^<]+)<\\/PackageProjectUrl>
@@ -502,6 +580,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
502
580
  <IsPackable>false<\\/IsPackable>
503
581
  <PreserveCompilationContext>false<\\/PreserveCompilationContext>
504
582
  <GenerateRuntimeConfigurationFiles>true<\\/GenerateRuntimeConfigurationFiles>
583
+ <RestorePackagesWithLockFile>true<\\/RestorePackagesWithLockFile>
505
584
  <Copyright>([^<]+)<\\/Copyright>
506
585
  <Description>{codeunit_name_regex}Tests is the test-project for {codeunit_name_regex}\\.<\\/Description>
507
586
  <PackageProjectUrl>https:\\/\\/([^<]+)<\\/PackageProjectUrl>
@@ -615,7 +694,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
615
694
  GeneralUtilities.ensure_file_does_not_exist(target_file)
616
695
 
617
696
  sln_file = os.path.join(codeunit_folder, f"{codeunit_name}.sln")
618
- args: list[str] = ["test", sln_file, "-c", dotnet_build_configuration, "-o", temp_folder]
697
+ args: list[str] = ["test", sln_file, "-c", dotnet_build_configuration, "-o", temp_folder]+self.__get_arguments_which_prevent_writing_a_lock_file()
619
698
  runsettings_path = os.path.join(codeunit_folder, runsettings_file)
620
699
  if os.path.isfile(runsettings_path):
621
700
  args += ["--settings", runsettings_path]
@@ -20,10 +20,81 @@ class TFCPS_CodeUnitSpecific_Python_Functions(TFCPS_CodeUnitSpecific_Base):
20
20
  GeneralUtilities.ensure_directory_does_not_exist(os.path.join(self.get_codeunit_folder(),"build"))
21
21
  GeneralUtilities.ensure_directory_does_not_exist(os.path.join(self.get_codeunit_folder(),f"{self.get_codeunit_name()}.egg-info"))
22
22
  GeneralUtilities.ensure_directory_exists(target_directory)
23
+ self.__check_compilable()
23
24
  self._protected_sc.run_program(GeneralUtilities.get_python_executable(), f"-m build --wheel --outdir {target_directory}", codeunit_folder,print_live_output=self.get_verbosity()==LogLevel.Debug)
24
25
  self.generate_bom_for_python_project()
25
26
  self.copy_source_files_to_output_directory()
26
27
 
28
+ @GeneralUtilities.check_arguments
29
+ def __check_compilable(self) -> None:
30
+ self.__ensure_sourcecode_is_compilable_using_python_compile()
31
+ self.__ensure_sourcecode_has_no_errors_using_pylint()
32
+
33
+ @GeneralUtilities.check_arguments
34
+ def __ensure_sourcecode_has_no_errors_using_pylint(self) -> None:
35
+ """Checks the sourcecode which goes into the wheel with pylint and raises when pylint reports a message
36
+ of the category error or fatal.
37
+
38
+ This finds the defects which the compile-check can not find, because they are not syntax-errors: a call
39
+ which does not pass an argument for a parameter which has no default-value (E1120), a name which is not
40
+ defined (E0602) and an attribute which the accessed object does not have (E1101), for example.
41
+
42
+ Only these two categories are checked: a convention-, refactor- or warning-message is a matter of style
43
+ and belongs to the linting-task, while an error- or a fatal-message means the sourcecode is broken,
44
+ which must not result in a wheel at all."""
45
+ codeunit_name = self.get_codeunit_name()
46
+ # The check runs in an isolated folder which only contains this codeunit, for the same reason as in
47
+ # "linting": otherwise a sibling-codeunit-source-folder of the repository would shadow the installed
48
+ # dependency-package of the same name while pylint resolves the imports, which would result in a
49
+ # false-positive import-error.
50
+ ignored_subfolders = ["Other", "__pycache__", "*.egg-info", "build", "dist", "venv", ".venv", ".pytest_cache", ".git"]
51
+ with tempfile.TemporaryDirectory(dir=GeneralUtilities.get_temp_folder()) as isolation_folder:
52
+ GeneralUtilities.copy_content_of_folder(self.get_codeunit_folder(), os.path.join(isolation_folder, codeunit_name), ignored_glob_patterms=ignored_subfolders)
53
+ pylint_configuration_file = os.path.join(self.get_repository_folder(), ".pylintrc")
54
+ if os.path.isfile(pylint_configuration_file):
55
+ GeneralUtilities.safe_copy(pylint_configuration_file, os.path.join(isolation_folder, ".pylintrc"))
56
+ # "--errors-only" suppresses every message whose category is not error or fatal, so the exitcode of
57
+ # pylint is only unequal to zero when such a message was found.
58
+ (exit_code, stdout, stderr, _) = self._protected_sc.run_program("pylint", f"--errors-only {codeunit_name}/{codeunit_name}", isolation_folder, throw_exception_if_exitcode_is_not_zero=False)
59
+ pylint_exitcode_for_a_usage_error: int = 32
60
+ if exit_code == pylint_exitcode_for_a_usage_error:
61
+ raise ValueError(f"Pylint could not be executed properly, so the sourcecode of the codeunit {codeunit_name} was not checked:\n{stdout}{stderr}")
62
+ if exit_code != 0:
63
+ raise ValueError(f"Pylint reported a message of the category error or fatal in the sourcecode of the codeunit {codeunit_name}, so no wheel was built:\n{stdout}{stderr}")
64
+
65
+ @GeneralUtilities.check_arguments
66
+ def __ensure_sourcecode_is_compilable_using_python_compile(self) -> None:
67
+ """Checks every python-file which goes into the wheel and raises when one of them can not be compiled.
68
+
69
+ This check exists so that a codeunit whose sourcecode is broken does not result in a wheel at all. It is
70
+ done with the builtin "compile"-function instead of with a linter: "compile" parses the file and reports
71
+ a syntax-error without executing anything of it, so the check needs no further tool and can not have
72
+ side-effects. Importing the modules instead would find more, but it would run the code of every module.
73
+ Everything which is a matter of style belongs to the linting-task and is deliberately not checked here."""
74
+ codeunit_name = self.get_codeunit_name()
75
+ repository_folder = self.get_repository_folder()
76
+ source_folder = os.path.join(self.get_codeunit_folder(), codeunit_name)
77
+ errors: list[str] = []
78
+ for file in GeneralUtilities.get_all_files_of_folder(source_folder):
79
+ if not file.endswith(".py"):
80
+ continue
81
+ if self._protected_sc.file_is_git_ignored(os.path.relpath(file, repository_folder), repository_folder):
82
+ continue
83
+ try:
84
+ # The file is read as "utf-8-sig" so that a byte-order-mark is removed instead of being handed to
85
+ # "compile" as the first character, which would report a syntax-error although python itself
86
+ # accepts a sourcecode-file which starts with a byte-order-mark.
87
+ # The filename is passed so that it appears in the message of a syntax-error.
88
+ compile(GeneralUtilities.read_text_from_file(file, "utf-8-sig"), file, "exec")
89
+ except SyntaxError as exception:
90
+ errors.append(f'"{file}" (line {exception.lineno}): {exception.msg}')
91
+ except ValueError as exception:
92
+ # "compile" raises a ValueError instead of a SyntaxError when the sourcecode contains a
93
+ # null-byte, which is not a syntax-error but makes the file just as unusable.
94
+ errors.append(f'"{file}": {exception}')
95
+ if 0 < len(errors):
96
+ raise ValueError(f"The sourcecode of the codeunit {codeunit_name} can not be compiled, so no wheel was built:\n" + "\n".join(errors))
97
+
27
98
  @GeneralUtilities.check_arguments
28
99
  def generate_bom_for_python_project(self) -> None:
29
100
  codeunit_folder: str=self.get_codeunit_folder()
@@ -36,6 +36,16 @@ class TFCPS_UpdateDependenciesHook(TFCPS_BuildCodeUnitsHook):
36
36
  if os.path.isfile(os.path.join(update_dependencies_script_folder, "UpdateDependencies.py")):
37
37
  self.__sc.log.log("Update dependencies of the repository...")
38
38
  self.__sc.run_program(GeneralUtilities.get_python_executable(), "UpdateDependencies.py", update_dependencies_script_folder)
39
+ self.__ensure_changelog_is_there(repository)
40
+
41
+ @GeneralUtilities.check_arguments
42
+ def __ensure_changelog_is_there(self, repository: str) -> None:
43
+ if not self.__sc.git_repository_has_uncommitted_changes(repository):
44
+ return
45
+ changelog_file: str = os.path.join(repository, "Other", "Resources", "Changelog", f"v{self.__tfcps_tools_general.get_version_of_project(repository)}.md")
46
+ if os.path.isfile(changelog_file):
47
+ return
48
+ self.__tfcps_tools_general.create_changelog_entry(repository, "Updated dependencies.", False, False)
39
49
 
40
50
  @GeneralUtilities.check_arguments
41
51
  def run_after_codeunit_was_built(self, codeunit_build: TFCPS_CodeUnit_BuildCodeUnit) -> None:
@@ -46,6 +56,7 @@ class TFCPS_UpdateDependenciesHook(TFCPS_BuildCodeUnitsHook):
46
56
  return
47
57
  self.__sc.log.log(f"Update dependencies of codeunit {codeunit_name}...")
48
58
  self.__sc.run_program(GeneralUtilities.get_python_executable(), "UpdateDependencies.py", os.path.join(codeunit_folder, "Other"))
59
+ self.__ensure_changelog_is_there(repository)
49
60
  if self.__sc.git_repository_has_uncommitted_changes(repository):
50
61
  #the update changed something, so it has to be verified that the codeunit is still buildable with the updated dependencies.
51
62
  self.__sc.log.log(f"Build codeunit {codeunit_name} again to verify it is still buildable with the updated dependencies...")
@@ -311,20 +322,12 @@ class TFCPS_CodeUnit_BuildCodeUnits:
311
322
 
312
323
  @GeneralUtilities.check_arguments
313
324
  def build_codeunits_in_container(self,base_mount_folder:str) -> tuple[bool, str]:
314
- #base_mount_folder is assumed to be an absolute path set correctly by the caller (see BuildCodeUnitsC in Executables.py, which defaults it to the repository itself).
315
- #it may be the repository itself or any parent-folder of it, which allows the caller to mount not only the repository but the whole surrounding folder-structure into the container.
316
- normalized_base_mount_folder = os.path.normpath(base_mount_folder)
317
- normalized_repository = os.path.normpath(self.repository)
318
- relative_repository_path = os.path.relpath(normalized_repository, normalized_base_mount_folder).replace(os.sep, "/")
319
- GeneralUtilities.assert_condition(relative_repository_path == "." or not relative_repository_path.startswith(".."), f"The repository '{self.repository}' is not located inside the base-mount-folder '{base_mount_folder}'.")
320
- container_base_mount_folder = f"/Workspace/Project/{os.path.basename(normalized_base_mount_folder)}"
321
- container_repository_folder = container_base_mount_folder if relative_repository_path == "." else f"{container_base_mount_folder}/{relative_repository_path}"
322
- image = self.tfcps_tools_general.oci_image_manager.get_registry_address_for_image_with_default_tag(self.repository, "SCBuilder")
325
+ container_base_mount_folder, container_repository_folder = self.__get_folders_inside_container(base_mount_folder)
323
326
 
324
327
  #build the scbuildcodeunits-arguments based on the current state (analogous to the arguments accepted by the scbuildcodeunits-executable). each token must be a separate argument because run_program_argsasarray passes every list-element verbatim and does not split on spaces.
325
328
  scbuildcodeunits_arguments = ["scbuildcodeunits", "-r", container_repository_folder, "-v", "4"]
326
329
  if not self.__use_cache:
327
- scbuildcodeunits_arguments.append("-c")
330
+ scbuildcodeunits_arguments.append("-n")
328
331
  if self.__is_pre_merge:
329
332
  scbuildcodeunits_arguments.append("-p")
330
333
  if self.__assert_no_new_changes:
@@ -335,12 +338,53 @@ class TFCPS_CodeUnit_BuildCodeUnits:
335
338
  scbuildcodeunits_arguments.append("-f")
336
339
  if GeneralUtilities.string_has_content(self.additionalargumentsfile):
337
340
  scbuildcodeunits_arguments += ["-a", self.__translate_path_into_container(self.additionalargumentsfile, container_repository_folder)]
341
+ return self.__run_scriptcollection_executable_in_container(base_mount_folder, container_base_mount_folder, container_repository_folder, scbuildcodeunits_arguments, "Build codeunits in container")
342
+
343
+ @GeneralUtilities.check_arguments
344
+ def update_dependencies_in_container(self,base_mount_folder:str) -> tuple[bool, str]:
345
+ """Runs the update of the dependencies inside the SCBuilder-image, analogous to build_codeunits_in_container.
346
+
347
+ The whole update runs in the container and not only the codeunit-builds which it triggers: update_dependencies
348
+ hands a hook-object to build_codeunits, and an object can not be passed to a program through
349
+ commandline-arguments, so a containerized inner build would build without updating anything."""
350
+ container_base_mount_folder, container_repository_folder = self.__get_folders_inside_container(base_mount_folder)
351
+
352
+ #only the arguments which scupdatedependencies really accepts are passed. It has no equivalent of the
353
+ #pre-merge-, assert-no-new-changes-, ready-to-merge- and fastlane-flags of scbuildcodeunits, so passing one
354
+ #of them would make the argument-parsing fail inside the container.
355
+ scupdatedependencies_arguments = ["scupdatedependencies", "-r", container_repository_folder, "-v", "4"]
356
+ if not self.__use_cache:
357
+ scupdatedependencies_arguments.append("-n")
358
+ if GeneralUtilities.string_has_content(self.additionalargumentsfile):
359
+ scupdatedependencies_arguments += ["--additionalargumentsfile", self.__translate_path_into_container(self.additionalargumentsfile, container_repository_folder)]
360
+ return self.__run_scriptcollection_executable_in_container(base_mount_folder, container_base_mount_folder, container_repository_folder, scupdatedependencies_arguments, "Update dependencies in container")
361
+
362
+ @GeneralUtilities.check_arguments
363
+ def __get_folders_inside_container(self, base_mount_folder: str) -> tuple[str, str]:
364
+ """Returns the folder which the base-mount-folder is mounted to inside the container and the folder which the
365
+ repository has inside the container."""
366
+ #base_mount_folder is assumed to be an absolute path set correctly by the caller (see BuildCodeUnitsC in Executables.py, which defaults it to the repository itself).
367
+ #it may be the repository itself or any parent-folder of it, which allows the caller to mount not only the repository but the whole surrounding folder-structure into the container.
368
+ normalized_base_mount_folder = os.path.normpath(base_mount_folder)
369
+ normalized_repository = os.path.normpath(self.repository)
370
+ relative_repository_path = os.path.relpath(normalized_repository, normalized_base_mount_folder).replace(os.sep, "/")
371
+ GeneralUtilities.assert_condition(relative_repository_path == "." or not relative_repository_path.startswith(".."), f"The repository '{self.repository}' is not located inside the base-mount-folder '{base_mount_folder}'.")
372
+ container_base_mount_folder = f"/Workspace/Project/{os.path.basename(normalized_base_mount_folder)}"
373
+ container_repository_folder = container_base_mount_folder if relative_repository_path == "." else f"{container_base_mount_folder}/{relative_repository_path}"
374
+ return (container_base_mount_folder, container_repository_folder)
375
+
376
+ @GeneralUtilities.check_arguments
377
+ def __run_scriptcollection_executable_in_container(self, base_mount_folder: str, container_base_mount_folder: str, container_repository_folder: str, executable_arguments: list[str], log_message: str) -> tuple[bool, str]:
378
+ """Runs one of the commandline-tools of ScriptCollection inside the SCBuilder-image. The tool and its
379
+ arguments are given by the caller; everything which is required to make the container able to run it (the
380
+ mounts, the environment-variables and the preparation-hooks) is done here."""
381
+ image = self.tfcps_tools_general.oci_image_manager.get_registry_address_for_image_with_default_tag(self.repository, "SCBuilder")
338
382
 
339
383
  update_scriptcollection=True
340
384
  update_argument:str=""
341
385
  if update_scriptcollection:
342
386
  update_argument="pip3 install scriptcollection --upgrade && "
343
- scbuildcodeunits_arguments=["bash","-c", f"{update_argument}scshowversion && "+" ".join(scbuildcodeunits_arguments)]
387
+ executable_arguments=["bash","-c", f"{update_argument}scshowversion && "+" ".join(executable_arguments)]
344
388
 
345
389
  #run the optional user-specific script which prepares this host for a container-build (for example to log in to the registry the image is pulled from).
346
390
  #it runs before the environment-variables are resolved, so it can also create the files their values are read from.
@@ -358,7 +402,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
358
402
  mount_arguments += ["-v", f"{custom_scripts_folder_for_inside_the_container}:{self.tfcps_tools_general.get_folder_of_custom_scripts_in_container()}"]
359
403
 
360
404
  #pass the environment-variables which are declared as required in <repository>/.ScriptCollection/ProductInformation.xml into the container
361
- #so they do not have to be specified explicitly on every scbuildcodeunits-call. Their values are resolved from the user-specific
405
+ #so they do not have to be specified explicitly on every call. Their values are resolved from the user-specific
362
406
  #configuration-file (see TFCPS_Tools_General.get_environment_variables_configuration_file), which only exists on the host.
363
407
  #only the names are passed as arguments; the values are given to the docker-client through its own environment, because arguments
364
408
  #are written to the log and are visible in the process-list of this host, which must not happen for a value which is typically a secret.
@@ -367,7 +411,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
367
411
  for env_variable_name in required_environment_variables:
368
412
  env_arguments += ["-e", env_variable_name]
369
413
 
370
- #run scbuildcodeunits inside the SCBuilder-image. base_mount_folder is mounted into the container (covering the repository and, for submodules, its real gitdir) and the docker-socket is forwarded because codeunit-builds often start containers (for example local test-services).
414
+ #run the tool inside the SCBuilder-image. base_mount_folder is mounted into the container (covering the repository and, for submodules, its real gitdir) and the docker-socket is forwarded because codeunit-builds often start containers (for example local test-services).
371
415
  docker_arguments = [
372
416
  "run", "--rm",
373
417
  "-v", f"{base_mount_folder}:{container_base_mount_folder}",
@@ -375,8 +419,8 @@ class TFCPS_CodeUnit_BuildCodeUnits:
375
419
  "-w", container_repository_folder,
376
420
  ] + mount_arguments + env_arguments + [
377
421
  image,
378
- ] + scbuildcodeunits_arguments
379
- self.sc.log.log(f"Build codeunits in container using image \"{image}\"...")
422
+ ] + executable_arguments
423
+ self.sc.log.log(f"{log_message} using image \"{image}\"...")
380
424
  image_address, image_tag = ScriptCollectionCore.split_image_address_and_tag(image)
381
425
  self.sc.docker_pull(image_address, image_tag)
382
426
  # the exitcode is evaluated by the caller (returned as part of the result-tuple), so the program-runner must not raise on a non-zero exitcode here.
@@ -660,10 +704,6 @@ class TFCPS_CodeUnit_BuildCodeUnits:
660
704
  self.update_year_in_license_file()
661
705
  self.sc.assert_is_git_repository(repository)
662
706
  self.sc.assert_no_uncommitted_changes(repository)
663
- #the update is done while the codeunits are built regularly (see TFCPS_UpdateDependenciesHook): a codeunit is built before its
664
- #dependencies are updated (some programming-languages need that) and again afterwards if the update changed something. Using the
665
- #regular build means the update also gets all preparation-steps of a build - especially the package-sources which are required to
666
- #resolve dependencies which are not available on a public package-source.
667
707
  self.build_codeunits(TFCPS_UpdateDependenciesHook(self.sc, self.tfcps_tools_general))
668
708
  if self.sc.git_repository_has_uncommitted_changes(repository):
669
709
  changelog_folder = os.path.join(repository, "Other", "Resources", "Changelog")
@@ -672,6 +712,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
672
712
  if not os.path.isfile(changelog_file):
673
713
  self.__ensure_changelog_file_is_added(repository, project_version)
674
714
  self.build_codeunits()#check the codeunits are buildable at all with all updates together
715
+ self.sc.log.log("Build all codeunits again to ensure they are buildable with all updates together...")
675
716
  self.sc.git_commit(repository, "Updated dependencies", stage_all_changes=True)
676
717
 
677
718
  @GeneralUtilities.check_arguments
@@ -411,7 +411,7 @@ class TFCPS_Tools_General:
411
411
  @GeneralUtilities.check_arguments
412
412
  def set_default_constants(self, codeunit_folder: str) -> None:
413
413
  self.assert_is_codeunit_folder(codeunit_folder)
414
- self.set_constant_for_curenttimestamp(codeunit_folder)
414
+ self.set_constant_for_currenttimestamp(codeunit_folder)
415
415
  self.set_constant_for_commitid(codeunit_folder)
416
416
  self.set_constant_for_commitdate(codeunit_folder)
417
417
  self.set_constant_for_codeunitname(codeunit_folder)
@@ -420,7 +420,7 @@ class TFCPS_Tools_General:
420
420
  self.set_constant_for_description(codeunit_folder)
421
421
 
422
422
  @GeneralUtilities.check_arguments
423
- def set_constant_for_curenttimestamp(self, codeunit_folder: str) -> None:
423
+ def set_constant_for_currenttimestamp(self, codeunit_folder: str) -> None:
424
424
  self.assert_is_codeunit_folder(codeunit_folder)
425
425
  timestamp = GeneralUtilities.datetime_to_string_for_logfile_entry(GeneralUtilities.get_now().astimezone(timezone.utc),False)
426
426
  self.set_constant(codeunit_folder, "CurrentTimestamp", timestamp)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scriptcollection
3
- Version: 4.4.4
3
+ Version: 4.4.7
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Author-email: Marius Göcke <marius.goecke@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/anionDev/ScriptCollection
@@ -1,6 +1,6 @@
1
1
  ScriptCollection/AnionBuildPlatform.py,sha256=LF9b4f4iqgsjgXZjS0RHiEBw73tQANfu0O1dYGWNjy8,11948
2
2
  ScriptCollection/CertificateUpdater.py,sha256=bD0VhKQsD2cNRTG1kzMkhgpd0BZw7igbG30goKw5p1A,9749
3
- ScriptCollection/Executables.py,sha256=TuAhwNMZOx8Z7G0dyc8d6S6qaSe5jgOuD4GjNoUgG7U,70513
3
+ ScriptCollection/Executables.py,sha256=Gl4sT5XMqdT9GmUSX4eGoakURwCS0CxufavdQsRqxjM,72517
4
4
  ScriptCollection/GeneralUtilities.py,sha256=JeUZM4uHO85RAbx-MIYRXAVmklTw7UycVnrSxbXFROI,71417
5
5
  ScriptCollection/HTTPMaintenanceOverheadHelper.py,sha256=TToNtyO1XzsMbBsTBf3o0xgOK0v4Jf03qw2Z0xb2nCk,2007
6
6
  ScriptCollection/ProcessesRunner.py,sha256=Va9O-ohWoRfe4pO2gPBzc940gkM5BpP4Txcu1CmLOvg,1494
@@ -9,7 +9,7 @@ ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrR
9
9
  ScriptCollection/ProgramRunnerPopen.py,sha256=zVD-gZY85o8wiGFcpYAGNDl-tXaKzipl1Bkhqy2ois4,4681
10
10
  ScriptCollection/ProgramRunnerSudo.py,sha256=ot9Ib-plQ8wejR9M2XXfnx6GR-va9k8SH1gAC5kjaJ0,5123
11
11
  ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
12
- ScriptCollection/ScriptCollectionCore.py,sha256=dc6vTgAG5cONFp1_T5_JhFpJzHibKSFqc-A3cE_xvx8,261810
12
+ ScriptCollection/ScriptCollectionCore.py,sha256=4IN5E65UNrDvVHGsY3_sJwvQDG8KD6CT8P-GncKGCnU,261810
13
13
  ScriptCollection/TestKind.py,sha256=EBTLR8yBz5VmWA2NZIpDTbQNg6tkfv_kAsIzEJ--mCI,1756
14
14
  ScriptCollection/UnassignedVariablesCheck.py,sha256=v59qLQ5RRvx31ouuCW7NWZj3McWENvGBPkV5ZGBmqJE,4344
15
15
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -39,7 +39,7 @@ ScriptCollection/TFCPS/SCTaskRunnerServer.py,sha256=rpuwSsQ6YQfZS2LGnvOH5ql8zs_-
39
39
  ScriptCollection/TFCPS/TFCPS_BuildCodeUnitsHook.py,sha256=67_DQwoH5bhxxSmwtuAeoW1NOCMiLMzOy48OqlJX-KY,1744
40
40
  ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=ahRpBESHO9CMqjy6jGFTiPluUmt9biHlO6Wa0VEftJw,36835
41
41
  ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=Mj9t1SyRpkYZE74cLsGWYv4xB89gXL2ld-RX3xvvGdw,9835
42
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=AzgR8pmVVlTUosTKFg_jR4yQaeSuwDBzueqcaqeHfDM,46007
42
+ ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=PHu13UCn3xj3UBneGk5DDkYZ9iGdJ80IKIte3ewwKfI,49143
43
43
  ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=kpEmSnfzfgB4OjcCuS_X6jgW_ftcphxEnjjoLoAHTLY,6582
44
44
  ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=mRBcf7XuNWOSXbZYc3NuJow18AMZ30D6Z-BtyNYfNcM,2072
45
45
  ScriptCollection/TFCPS/TFCPS_MergeToMain.py,sha256=Krt5oyGNcRAN3szsgU7LoTh8yVTOdHW-Kq7R9MDDV-Q,7673
@@ -47,7 +47,7 @@ ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=oYEhz5ZWMnbu97_CcYEqdDxakUF
47
47
  ScriptCollection/TFCPS/TFCPS_OCIImageSecretScan.py,sha256=rhw0glr4gZ5enG9faOD51xE4MMK1cIdNjUdaswiMsrY,14622
48
48
  ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=XLVsFTA1jvfDbZ7wYJgIdEByZhF_bYVbA5jkisuvK4k,2322
49
49
  ScriptCollection/TFCPS/TFCPS_RemoteBuild.py,sha256=Z8Gw-j5I7VPafHEsVeQJ2gTTKVLAnnhwZhY8IVTi2Qk,11867
50
- ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=NBiD-WfNEBI13RiJ7Z3-ymSf6NlMV_AxdI6f8hwNyCk,162986
50
+ ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=6oi5vdng6wMx2inbj8KTwIFOPvZAO4ekIVLQcq4pZ9Y,162988
51
51
  ScriptCollection/TFCPS/TFCPS_VisualRegressionTests.py,sha256=iTsgZgUGeJMpFgYC8NDMep7xb0Ad53VXlrA2Q1gD6rs,34565
52
52
  ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  ScriptCollection/TFCPS/Docker/TFCPS_CodeUnitSpecific_Docker.py,sha256=919mNfzVRurTJhWi8WV0oEAFoH-yd4a6m2Rbxcf2oZ4,19927
@@ -55,7 +55,7 @@ ScriptCollection/TFCPS/Docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
55
55
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationBase.py,sha256=bT6Gd5pQpZCw4OQz6HWkPCSn5z__eUUEisABLDSxd0o,200
56
56
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationGenerate.py,sha256=QyjOfMY22JWCvKjMelHiDWbJiWqotOfebpJpgDUaoO4,237
57
57
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationNoGenerate.py,sha256=i0zEGehj0sttxjjZtoq2KFSKp_ulxVyWp_ZgAhIY_So,241
58
- ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=PG33nevy-WG5XlIoS6R_tQ3TmpG7y0GhZ8TPVk1j5zs,49253
58
+ ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=9KUJLrYqEXV-h-AR4gde2u-KX-JXwtb0BNJ9OyuUEnM,56266
59
59
  ScriptCollection/TFCPS/DotNet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
60
60
  ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=cAE_OFJBU0M3L2Ov5PUUMH7aOVVzKtnKlFoXSw43fng,8759
61
61
  ScriptCollection/TFCPS/Flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -65,14 +65,14 @@ ScriptCollection/TFCPS/Maven/TFCPS_CodeUnitSpecific_Maven.py,sha256=HDZlU70lF4nx
65
65
  ScriptCollection/TFCPS/Maven/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
66
66
  ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=pZGICeWX7aqO2NTZS1e9NJR6H23cev2aL6qZqO-UYHo,14004
67
67
  ScriptCollection/TFCPS/NodeJS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
68
- ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=aVVEg_YMZRWoZryWhvB3KDPENpFqyg8YprdD-4Gy1Rg,15632
68
+ ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=Wi9anRljuvW1-UplYhI_QNR2szxaitHiXVJ6p4nUEI8,21089
69
69
  ScriptCollection/TFCPS/Python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
70
70
  ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=yyjWPMHQjPLkMLlfjrOjhEieFEW_PDm7RWbs4I1TWWY,12275
71
71
  ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
72
  ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=5z990qyO5durX07xRWRwju1hl6wpjQAy2f-yRwJ-7s0,11856
73
73
  ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- scriptcollection-4.4.4.dist-info/METADATA,sha256=NNDGp7yqNmhIHyB9KXxrZvImkAgdxW_xM2RqKzT4bBQ,7647
75
- scriptcollection-4.4.4.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
76
- scriptcollection-4.4.4.dist-info/entry_points.txt,sha256=52v0Kt6uaeQeDFjvc0Xcsd4YqQw2qKcs6GNgPO71pkU,5996
77
- scriptcollection-4.4.4.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
78
- scriptcollection-4.4.4.dist-info/RECORD,,
74
+ scriptcollection-4.4.7.dist-info/METADATA,sha256=5y2_0Sm-72umOq5J_sIxlr1jUHBkojCPxY12-H_NfEY,7647
75
+ scriptcollection-4.4.7.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
76
+ scriptcollection-4.4.7.dist-info/entry_points.txt,sha256=Aj6CHuJxASMe52fK_O6-bNJ_uhxcDb-AgRxFOeTojyE,6069
77
+ scriptcollection-4.4.7.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
78
+ scriptcollection-4.4.7.dist-info/RECORD,,
@@ -77,6 +77,7 @@ scshowversion = ScriptCollection.Executables:ShowVersion
77
77
  scsigncertificate = ScriptCollection.Executables:SignCertificate
78
78
  scsyncxlffiles = ScriptCollection.Executables:SyncXlfFiles
79
79
  scupdatedependencies = ScriptCollection.Executables:UpdateDependencies
80
+ scupdatedependenciesc = ScriptCollection.Executables:UpdateDependenciesC
80
81
  scupdateimagesindockercomposefile = ScriptCollection.Executables:UpdateImagesInDockerComposeFile
81
82
  scupdatenugetpackagesincsharpproject = ScriptCollection.Executables:UpdateNugetpackagesInCsharpProject
82
83
  scupdatetimestampinfile = ScriptCollection.Executables:UpdateTimestampInFile