ScriptCollection 4.4.73__py3-none-any.whl → 5.0.0__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 (31) hide show
  1. ScriptCollection/Executables.py +14 -14
  2. ScriptCollection/GeneralUtilities.py +11 -11
  3. ScriptCollection/OCIImages/AbstractImageHandler.py +3 -3
  4. ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerDebian.py +3 -3
  5. ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerDebianSlim.py +3 -3
  6. ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGeneric.py +3 -3
  7. ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGenericV.py +3 -3
  8. ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGitlabCE.py +3 -3
  9. ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGitlabEE.py +3 -3
  10. ScriptCollection/OCIImages/OCIImageManager.py +24 -24
  11. ScriptCollection/ProgramRunnerPopen.py +4 -2
  12. ScriptCollection/ProgramRunnerSudo.py +11 -5
  13. ScriptCollection/Resources/CultureChooser/CultureChooser.js +0 -0
  14. ScriptCollection/Resources/CultureChooser/index.html +0 -0
  15. ScriptCollection/Resources/Dependencies/JRE/Version.txt +0 -0
  16. ScriptCollection/Resources/Dependencies/OpenAPIGenerator/Version.txt +0 -0
  17. ScriptCollection/Resources/MaintenanceSite/MaintenanceSite.html +0 -0
  18. ScriptCollection/ScriptCollectionCore.py +40 -28
  19. ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py +3 -3
  20. ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py +6 -6
  21. ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py +3 -3
  22. ScriptCollection/TFCPS/PlantUMLRenderer.py +1 -1
  23. ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py +13 -13
  24. ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py +172 -7
  25. ScriptCollection/TFCPS/TFCPS_Tools_General.py +34 -16
  26. ScriptCollection/TFCPS/TFCPS_VisualRegressionTests.py +1 -1
  27. {scriptcollection-4.4.73.dist-info → scriptcollection-5.0.0.dist-info}/METADATA +3 -1
  28. {scriptcollection-4.4.73.dist-info → scriptcollection-5.0.0.dist-info}/RECORD +26 -26
  29. {scriptcollection-4.4.73.dist-info → scriptcollection-5.0.0.dist-info}/entry_points.txt +2 -2
  30. {scriptcollection-4.4.73.dist-info → scriptcollection-5.0.0.dist-info}/WHEEL +0 -0
  31. {scriptcollection-4.4.73.dist-info → scriptcollection-5.0.0.dist-info}/top_level.txt +0 -0
@@ -1,9 +1,11 @@
1
+ import base64
1
2
  import os
2
3
  import json
3
4
  import re
4
5
  import shutil
5
6
  import tempfile
6
7
  from datetime import datetime, timedelta,timezone
8
+ import requests
7
9
  import xmlschema
8
10
  from packaging.version import Version
9
11
  from ..GeneralUtilities import GeneralUtilities
@@ -76,6 +78,8 @@ class TFCPS_CodeUnit_BuildCodeUnits:
76
78
  __assert_no_new_changes:bool = None
77
79
  __add_ready_to_merge_flag:bool = None
78
80
  __fast_lane:bool = None
81
+ # The tools for which openspec is initialized in a repository which uses openspec but in which openspec is not initialized yet.
82
+ __openspec_tools:list[str] = ["claude", "cline", "github-copilot", "vibe", "opencode", "codex", "gemini", "cursor"]
79
83
 
80
84
  def __init__(self,repository:str,loglevel:LogLevel,target_environment_type:str,additionalargumentsfile:str,use_cache:bool,is_pre_merge:bool,assertnonewchanges:bool,add_ready_to_merge_flag:bool=False,fast_lane:bool=False):
81
85
  self.sc=ScriptCollectionCore()
@@ -113,7 +117,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
113
117
  GeneralUtilities.assert_file_exists(product_information_file, f"The file '{product_information_file}' does not exist.")
114
118
 
115
119
  #when the build runs inside a container, ensure the used SCBuilder-image is at least the version required by this repository (defined in .ScriptCollection/OCIImages/ImageDefinition.csv)
116
- if self.sc.is_runnning_in_container():
120
+ if self.sc.is_running_in_container():
117
121
  scbuilder_version_environment_value = os.environ.get("SCBuilderVersion")
118
122
  GeneralUtilities.assert_condition(GeneralUtilities.string_has_content(scbuilder_version_environment_value), "The environment-variable 'SCBuilderVersion' is not set although the build runs inside a container (environment-variable 'ISRUNNINGINCONTAINER' is 'true').")
119
123
  scbuilder_tag=self.tfcps_tools_general.oci_image_manager.get_tag_for_image(self.repository, "SCBuilder")
@@ -178,7 +182,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
178
182
  #mark current version as supported
179
183
  now = GeneralUtilities.get_now()
180
184
  project_version:str=self.tfcps_tools_general.get_version_of_project(self.repository)
181
- if not self.tfcps_tools_general.suport_information_exists(self.repository, project_version):
185
+ if not self.tfcps_tools_general.support_information_exists(self.repository, project_version):
182
186
  amount_of_years_for_support:int=1
183
187
  support_time = timedelta(days=365*amount_of_years_for_support+30*3+1)
184
188
  until = now + support_time
@@ -287,12 +291,154 @@ class TFCPS_CodeUnit_BuildCodeUnits:
287
291
  if updated_lines != lines:
288
292
  GeneralUtilities.write_lines_to_file(agent_sandbox_configuration_file, updated_lines)
289
293
 
294
+ @GeneralUtilities.check_arguments
295
+ def __check_security_txt_file(self, repository_folder: str) -> None:
296
+ """Checks the file '<repository>/.well-known/security.txt' (see RFC 9116). Every failed check is only reported as warning and does
297
+ not let the build fail. The URLs of the file are only checked if an internet-connection is available."""
298
+ security_txt_file: str = os.path.join(repository_folder, ".well-known", "security.txt")
299
+ if not os.path.isfile(security_txt_file):
300
+ self.sc.log.log(f"The file '{security_txt_file}' does not exist.", LogLevel.Warning)
301
+ return
302
+ self.sc.log.log("Check security.txt-file...", LogLevel.Debug)
303
+ fields: dict[str, list[str]] = TFCPS_CodeUnit_BuildCodeUnits.__get_security_txt_fields(security_txt_file)
304
+ internet_connection_is_available: bool = GeneralUtilities.internet_connection_is_available()
305
+ self.__check_security_txt_signature(security_txt_file, fields, internet_connection_is_available)
306
+ self.__check_security_txt_expiration(security_txt_file, fields, GeneralUtilities.get_now())
307
+ if internet_connection_is_available:
308
+ self.__check_security_txt_urls_are_reachable(security_txt_file, fields, "Canonical")
309
+ self.__check_security_txt_urls_are_reachable(security_txt_file, fields, "Encryption")
310
+ else:
311
+ self.sc.log.log(f"The URLs of '{security_txt_file}' are not checked because no internet-connection is available.", LogLevel.Debug)
312
+
313
+ @staticmethod
314
+ @GeneralUtilities.check_arguments
315
+ def __get_security_txt_fields(security_txt_file: str) -> dict[str, list[str]]:
316
+ """Returns the values of the fields of the given security.txt-file, grouped by the lowercase field-name (field-names are
317
+ case-insensitive according to RFC 9116). A field can occur multiple times, so every field-name maps to a list of values.
318
+ Comments and the lines of the PGP-envelope are ignored."""
319
+ result: dict[str, list[str]] = {}
320
+ for line in GeneralUtilities.read_lines_from_file(security_txt_file):
321
+ match = re.match(r"^([A-Za-z0-9-]+):\s*(.*?)\s*$", line)
322
+ if match is not None:
323
+ result.setdefault(match.group(1).lower(), []).append(match.group(2))
324
+ return result
325
+
326
+ @GeneralUtilities.check_arguments
327
+ def __check_security_txt_signature(self, security_txt_file: str, fields: dict[str, list[str]], internet_connection_is_available: bool) -> None:
328
+ """Checks whether the given security.txt-file has a PGP-signature and whether it is valid.
329
+ Only the validity of the signature is checked and not whether the key of the signer is trusted. Therefore the signature is
330
+ verified with gpgv against a temporary keyring which only contains the public key which is downloaded from the first
331
+ http(s)-URL of the 'Encryption'-field. This way the result does not depend on the keyring of the current user, so the check
332
+ works the same way in a build-pipeline. Without internet-connection the public key can not be downloaded, so the signature
333
+ can not be verified then."""
334
+ if "-----BEGIN PGP SIGNED MESSAGE-----" not in GeneralUtilities.read_text_from_file(security_txt_file):
335
+ self.sc.log.log(f"The file '{security_txt_file}' is not signed.", LogLevel.Warning)
336
+ return
337
+ if not GeneralUtilities.tool_is_available("gpgv"):
338
+ self.sc.log.log(f"The signature of '{security_txt_file}' can not be verified because gpgv is not available.", LogLevel.Warning)
339
+ return
340
+ if not internet_connection_is_available:
341
+ self.sc.log.log(f"The signature of '{security_txt_file}' can not be verified because the public key can not be downloaded without internet-connection.", LogLevel.Warning)
342
+ return
343
+ key_urls: list[str] = [url for url in fields.get("encryption", []) if url.lower().startswith(("https://", "http://"))]
344
+ if len(key_urls) == 0:
345
+ self.sc.log.log(f"The signature of '{security_txt_file}' can not be verified because the file does not contain an 'Encryption'-field with an http(s)-URL of the public key.", LogLevel.Warning)
346
+ return
347
+ key_url: str = key_urls[0]
348
+ public_key: bytes = self.__download_pgp_public_key(security_txt_file, key_url)
349
+ if public_key is None:
350
+ return
351
+ with tempfile.TemporaryDirectory() as keyring_folder:
352
+ keyring_file: str = os.path.join(keyring_folder, "PublicKey.gpg")
353
+ with open(keyring_file, "wb") as keyring_file_stream:
354
+ keyring_file_stream.write(public_key)
355
+ # The keyring-file is passed as path relative to the working-directory with a leading "./": gpgv searches a path without
356
+ # a slash in its home-folder, and the gpgv of git-for-windows does not accept an absolute windows-path as keyring.
357
+ exit_code, _, stderr, _ = self.sc.run_program_argsasarray("gpgv", ["--keyring", f"./{os.path.basename(keyring_file)}", os.path.abspath(security_txt_file)], keyring_folder, throw_exception_if_exitcode_is_not_zero=False)
358
+ if exit_code != 0:
359
+ self.sc.log.log(f"The signature of '{security_txt_file}' is not valid for the public key from '{key_url}' (exitcode of gpgv: {exit_code}). StdErr: '{stderr}'", LogLevel.Warning)
360
+
361
+ @GeneralUtilities.check_arguments
362
+ def __download_pgp_public_key(self, security_txt_file: str, key_url: str) -> bytes:
363
+ """Returns the binary content of the PGP-public-key which is downloaded from the given URL to verify the signature of the given
364
+ security.txt-file, or None (after logging a warning which explains why) if it can not be downloaded or if the downloaded
365
+ content does not contain a PGP-public-key-block."""
366
+ try:
367
+ response = requests.get(key_url, timeout=30, allow_redirects=True)
368
+ except requests.RequestException as exception:
369
+ self.sc.log.log(f"The signature of '{security_txt_file}' can not be verified because the public key can not be downloaded from '{key_url}': {exception}", LogLevel.Warning)
370
+ return None
371
+ if not response.ok:
372
+ self.sc.log.log(f"The signature of '{security_txt_file}' can not be verified because the public key can not be downloaded from '{key_url}' (HTTP-status {response.status_code}).", LogLevel.Warning)
373
+ return None
374
+ public_key: bytes = TFCPS_CodeUnit_BuildCodeUnits.__dearmor_pgp_public_key(response.text)
375
+ if public_key is None:
376
+ self.sc.log.log(f"The signature of '{security_txt_file}' can not be verified because '{key_url}' does not contain a PGP-public-key-block.", LogLevel.Warning)
377
+ return public_key
378
+
379
+ @staticmethod
380
+ @GeneralUtilities.check_arguments
381
+ def __dearmor_pgp_public_key(armored_content: str) -> bytes:
382
+ """Returns the binary content of the first ASCII-armored PGP-public-key-block of the given content (the format which gpgv
383
+ expects for a keyring-file), or None if the content does not contain such a block. The armor-headers (for example 'Comment:')
384
+ and the checksum-line (which starts with '=') are not part of the binary content."""
385
+ match = re.search(r"-----BEGIN PGP PUBLIC KEY BLOCK-----\r?\n(.*?)-----END PGP PUBLIC KEY BLOCK-----", armored_content, re.DOTALL)
386
+ if match is None:
387
+ return None
388
+ lines: list[str] = [line.strip() for line in match.group(1).splitlines()]
389
+ if GeneralUtilities.empty_string in lines:
390
+ lines = lines[lines.index(GeneralUtilities.empty_string)+1:] # the armor-headers end with the first empty line
391
+ return base64.b64decode("".join(line for line in lines if GeneralUtilities.string_has_content(line) and not line.startswith("=")))
392
+
393
+ @GeneralUtilities.check_arguments
394
+ def __check_security_txt_expiration(self, security_txt_file: str, fields: dict[str, list[str]], now: datetime) -> None:
395
+ """Checks whether the given security.txt-file contains exactly one 'Expires'-field (RFC 9116 does not allow more than one) whose
396
+ value is not expired and which is valid for at least the next 3 months. A value without timezone is treated as UTC."""
397
+ expires_values: list[str] = fields.get("expires", [])
398
+ if len(expires_values) == 0:
399
+ self.sc.log.log(f"The file '{security_txt_file}' does not contain an 'Expires'-field.", LogLevel.Warning)
400
+ return
401
+ if 1 < len(expires_values):
402
+ self.sc.log.log(f"The file '{security_txt_file}' contains more than one 'Expires'-field.", LogLevel.Warning)
403
+ return
404
+ try:
405
+ expires: datetime = datetime.fromisoformat(expires_values[0])
406
+ except ValueError:
407
+ self.sc.log.log(f"The 'Expires'-value '{expires_values[0]}' of '{security_txt_file}' is not a valid timestamp.", LogLevel.Warning)
408
+ return
409
+ if expires.tzinfo is None:
410
+ expires = expires.replace(tzinfo=timezone.utc)
411
+ if expires <= now:
412
+ self.sc.log.log(f"The file '{security_txt_file}' is expired since {expires_values[0]}.", LogLevel.Warning)
413
+ elif expires - now < timedelta(days=30*3):
414
+ self.sc.log.log(f"The file '{security_txt_file}' expires within the next 3 months ({expires_values[0]}).", LogLevel.Warning)
415
+
416
+ @GeneralUtilities.check_arguments
417
+ def __check_security_txt_urls_are_reachable(self, security_txt_file: str, fields: dict[str, list[str]], field_name: str) -> None:
418
+ """Checks whether the URLs of the given field of the given security.txt-file are reachable. Values which are no http(s)-URL (for
419
+ example an 'openpgp4fpr:'-URI in the 'Encryption'-field) can not be requested and are therefore not checked."""
420
+ urls: list[str] = fields.get(field_name.lower(), [])
421
+ if len(urls) == 0:
422
+ self.sc.log.log(f"The file '{security_txt_file}' does not contain a '{field_name}'-field.", LogLevel.Warning)
423
+ return
424
+ for url in urls:
425
+ if not url.lower().startswith(("https://", "http://")):
426
+ self.sc.log.log(f"The {field_name}-value '{url}' of '{security_txt_file}' is not checked because it is not an http(s)-URL.", LogLevel.Debug)
427
+ continue
428
+ try:
429
+ with requests.get(url, timeout=30, stream=True, allow_redirects=True) as response:
430
+ if not response.ok:
431
+ self.sc.log.log(f"The {field_name}-URL '{url}' of '{security_txt_file}' is not reachable (HTTP-status {response.status_code}).", LogLevel.Warning)
432
+ except requests.RequestException as exception:
433
+ self.sc.log.log(f"The {field_name}-URL '{url}' of '{security_txt_file}' is not reachable: {exception}", LogLevel.Warning)
434
+
290
435
  @GeneralUtilities.check_arguments
291
436
  def __do_project_linting(self, repository_folder: str) -> None:
292
437
  self.sc.log.log("Do project-linting...")
293
- self.__do_project_linting_using_codespell(repository_folder)
438
+ self.__run_codespell(repository_folder)
294
439
  self.__sort_findings(repository_folder)
295
440
  self.__validate_openspec(repository_folder)
441
+ self.__check_security_txt_file(repository_folder)
296
442
 
297
443
  @GeneralUtilities.check_arguments
298
444
  def __sort_findings(self, repository_folder: str) -> None:
@@ -300,7 +446,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
300
446
  TFCPS_FindingsSorter().sort_findings(repository_folder)
301
447
 
302
448
  @GeneralUtilities.check_arguments
303
- def __do_project_linting_using_codespell(self, repository_folder: str) -> None:
449
+ def __run_codespell(self, repository_folder: str) -> None:
304
450
  """Searches for typos in the repository using codespell. Findings are only reported as warnings and do not let the build fail.
305
451
  Only files which are not git-ignored are checked. See TFCPS_CodeSpellCheck for details."""
306
452
  try:
@@ -420,7 +566,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
420
566
  build-runner gets the TFCPS-folder of its configuration-folder mounted there instead (see the article 'Build-runner-configuration'). The
421
567
  script which the host itself runs before it starts the container is 'CustomPreCodeUnitBuildScriptForContainer.py' and is
422
568
  therefore run there and not here."""
423
- if self.sc.is_runnning_in_container():
569
+ if self.sc.is_running_in_container():
424
570
  script_file: str = os.path.join(self.tfcps_tools_general.get_folder_of_custom_scripts_in_container(), "CustomPreCodeUnitBuildScriptInContainer.py")
425
571
  if not os.path.isfile(script_file):
426
572
  script_file = os.path.join(self.tfcps_tools_general.get_custom_scripts_folder_for_container(), "CustomPreCodeUnitBuildScriptInContainer.py")
@@ -439,10 +585,29 @@ class TFCPS_CodeUnit_BuildCodeUnits:
439
585
  def __update_openspec(self) -> None:
440
586
  openspec_configuration_file: str = os.path.join(self.repository, "openspec", "config.yaml")
441
587
  if os.path.isfile(openspec_configuration_file):
588
+ if not self.__openspec_is_initialized():
589
+ #"openspec update" only updates the tools which are already set up in the repository, so a repository which only contains
590
+ #"openspec/config.yaml" would never get any openspec-skill without this initialization. "openspec init" keeps an existing config.yaml.
591
+ self.sc.log.log("Initialize openspec...")
592
+ self.sc.run_with_epew("openspec", f"init --tools {','.join(TFCPS_CodeUnit_BuildCodeUnits.__openspec_tools)} --force", self.repository)
442
593
  self.sc.log.log("Update openspec-instruction-files...")
443
594
  self.sc.run_with_epew("openspec", "update --force", self.repository)
444
595
  self.__replace_openspec_skill_links_by_copies()
445
596
 
597
+ @GeneralUtilities.check_arguments
598
+ def __openspec_is_initialized(self) -> bool:
599
+ """Returns whether openspec has already deployed a skill in the repository. openspec (since v2.0.0) deploys its skills to
600
+ '.agents/skills', older versions deployed them to the skill-folders of the tools (for example '.claude/skills'). These folders are
601
+ located in folders in the root of the repository whose names start with a dot. The names of the skills which openspec deploys
602
+ start with 'openspec-'."""
603
+ for name in os.listdir(self.repository):
604
+ skills_folder: str = os.path.join(self.repository, name, "skills")
605
+ if name.startswith(".") and name != ".git" and os.path.isdir(skills_folder):
606
+ for skill_name in os.listdir(skills_folder):
607
+ if skill_name.startswith("openspec-") and os.path.isfile(os.path.join(skills_folder, skill_name, "SKILL.md")):
608
+ return True
609
+ return False
610
+
446
611
  @GeneralUtilities.check_arguments
447
612
  def __replace_openspec_skill_links_by_copies(self) -> None:
448
613
  """openspec (since v2.0.0) writes its skills to '.agents/skills' and links them into the skill-folders of the configured tools
@@ -549,7 +714,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
549
714
  @GeneralUtilities.check_arguments
550
715
  def __is_running_in_container(self) -> bool:
551
716
  #the filesystem-marker is checked in addition to the convention-based environment-variable, like in __search_for_secrets_in_repository.
552
- return os.path.exists("/.dockerenv") or self.sc.is_runnning_in_container()
717
+ return os.path.exists("/.dockerenv") or self.sc.is_running_in_container()
553
718
 
554
719
  @GeneralUtilities.check_arguments
555
720
  def __get_base_mount_arguments(self, base_mount_folder: str, container_base_mount_folder: str) -> list[str]:
@@ -806,7 +971,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
806
971
  config_file = os.path.join(self.repository, ".betterleaks.toml")
807
972
  #the filesystem-marker is checked in addition to the convention-based environment-variable (which the rest of this class uses as well),
808
973
  #because a wrong result here does not only change a message but makes the scan analyze the wrong folder.
809
- running_in_container = os.path.exists("/.dockerenv") or self.sc.is_runnning_in_container()
974
+ running_in_container = os.path.exists("/.dockerenv") or self.sc.is_running_in_container()
810
975
  if running_in_container:
811
976
  # We run inside the build-container with the docker-socket forwarded to the host-daemon.
812
977
  # A bind-mount of our in-container repository-path (e.g. "/__w/<repo>/<repo>" on a
@@ -18,12 +18,13 @@ from packaging import version
18
18
  import requests
19
19
  import yaml
20
20
  from lxml import etree
21
- from ..GeneralUtilities import GeneralUtilities,Platform
21
+ from ..GeneralUtilities import GeneralUtilities,Platform,VersionEchelon
22
22
  from ..ScriptCollectionCore import ScriptCollectionCore,VSCodeWorkspaceShellTask
23
23
  from ..SCLog import LogLevel
24
24
  from ..OCIImages.AbstractImageHandler import AbstractImageHandler
25
25
  from ..OCIImages.OCIImageManager import OCIImageManager
26
26
  from .PackageSource import PackageSource
27
+ from .NpmDependencies import NpmDependencies
27
28
  from .PlantUMLRenderer import PlantUMLRenderer
28
29
 
29
30
  # Central definition of the common-project-structure-version. This is the single place which has to be updated to bump the
@@ -104,7 +105,7 @@ class TFCPS_Tools_General:
104
105
  raise ValueError("Unsupported operating system for cyclonedx-cli.")
105
106
 
106
107
  @GeneralUtilities.check_arguments
107
- def download_all_cachable_tools(self, enforce_update: bool = False, verbose: bool = False) -> None:
108
+ def download_all_cacheable_tools(self, enforce_update: bool = False, verbose: bool = False) -> None:
108
109
  """Downloads all tools that are stored in the global ScriptCollection-cache.
109
110
  Running this (for example in a build-image) lets repeated pipeline-runs avoid
110
111
  rate-limits and run faster, because the tools are already present when a later
@@ -129,7 +130,7 @@ class TFCPS_Tools_General:
129
130
  @GeneralUtilities.check_arguments
130
131
  def download_jre(self, enforce_update: bool = False) -> None:
131
132
  self.__sc.log.log("Download cacheable tool \"JRE\" into global cache...", LogLevel.Debug)
132
- # No repository-context is available when warming the global cache (e.g. scdownloadcachabletools in a
133
+ # No repository-context is available when warming the global cache (e.g. scdownloadcacheabletools in a
133
134
  # build-image), so download the default version pinned by the ScriptCollection-package. Actual builds
134
135
  # pass the version pinned in their own '<repo>/Other/Resources/Dependencies/JRE/Version.txt'. This is
135
136
  # independent of the PlantUML-diagram-rendering (see PlantUMLRenderer), which brings its own java in the
@@ -709,11 +710,11 @@ class TFCPS_Tools_General:
709
710
  if constants_valuefile is None:
710
711
  constants_valuefile_folder = constants_folder
711
712
  constants_valuefile_name = f"{constantname}.value.txt"
712
- constants_valuefiler_reference = f"./{constants_valuefile_name}"
713
+ constants_valuefile_reference = f"./{constants_valuefile_name}"
713
714
  else:
714
715
  constants_valuefile_folder = os.path.dirname(constants_valuefile)
715
716
  constants_valuefile_name = os.path.basename(constants_valuefile)
716
- constants_valuefiler_reference = os.path.join(constants_valuefile_folder, constants_valuefile_name)
717
+ constants_valuefile_reference = os.path.join(constants_valuefile_folder, constants_valuefile_name)
717
718
 
718
719
  # TODO implement usage of self.reference_latest_version_of_xsd_when_generating_xml
719
720
  GeneralUtilities.write_text_to_file(constants_metafile, f"""<?xml version="1.0" encoding="UTF-8" ?>
@@ -721,7 +722,7 @@ class TFCPS_Tools_General:
721
722
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="{TFCPS_Tools_General.get_common_project_structure_namespace(CommonProjectStructureVersion)} {TFCPS_Tools_General.get_common_project_structure_xsd_base_url(CommonProjectStructureVersion)}/constant.xsd">
722
723
  <cps:name>{constantname}</cps:name>
723
724
  <cps:documentationsummary>{documentationsummary}</cps:documentationsummary>
724
- <cps:path>{constants_valuefiler_reference}</cps:path>
725
+ <cps:path>{constants_valuefile_reference}</cps:path>
725
726
  </cps:constant>""")
726
727
  # TODO validate generated xml against xsd
727
728
  GeneralUtilities.write_text_to_file(os.path.join(constants_valuefile_folder, constants_valuefile_name), constant_value)
@@ -754,7 +755,7 @@ class TFCPS_Tools_General:
754
755
  raise ValueError("Too many results found.")
755
756
 
756
757
  @GeneralUtilities.check_arguments
757
- def copy_licence_file(self, codeunit_folder: str) -> None:
758
+ def copy_license_file(self, codeunit_folder: str) -> None:
758
759
  folder_of_current_file = os.path.join(codeunit_folder,"Other")
759
760
  license_file = GeneralUtilities.resolve_relative_path("../../License.txt", folder_of_current_file)
760
761
  target_folder = GeneralUtilities.resolve_relative_path("Artifacts/License", folder_of_current_file)
@@ -940,7 +941,7 @@ class TFCPS_Tools_General:
940
941
  @GeneralUtilities.check_arguments
941
942
  def get_default_jre_version(self) -> str:
942
943
  """Returns the JRE-version used when no repository-specific version is pinned (for example when warming
943
- the global cache via scdownloadcachabletools). The value is read from the version-file bundled with the
944
+ the global cache via scdownloadcacheabletools). The value is read from the version-file bundled with the
944
945
  ScriptCollection-package."""
945
946
  content = GeneralUtilities._internal_load_resource(TFCPS_Tools_General.__jre_version_resource_relative_path)
946
947
  return content.decode("utf-8").strip()
@@ -1636,14 +1637,14 @@ class TFCPS_Tools_General:
1636
1637
  line_elements = package.findall(".//line")
1637
1638
 
1638
1639
  amount_of_lines = 0
1639
- amount_of_hited_lines = 0
1640
+ amount_of_hit_lines = 0
1640
1641
 
1641
1642
  for line in line_elements:
1642
1643
  amount_of_lines += 1
1643
1644
  hits = int(line.get("hits", "0"))
1644
1645
  if hits > 0:
1645
- amount_of_hited_lines += 1
1646
- line_rate = amount_of_hited_lines / amount_of_lines if amount_of_lines > 0 else 0.0
1646
+ amount_of_hit_lines += 1
1647
+ line_rate = amount_of_hit_lines / amount_of_lines if amount_of_lines > 0 else 0.0
1647
1648
  package.set("line-rate", str(line_rate))
1648
1649
  tree.write(coverage_file, pretty_print=True, xml_declaration=True, encoding="UTF-8")
1649
1650
 
@@ -1709,7 +1710,7 @@ class TFCPS_Tools_General:
1709
1710
  self.__sc.log.log("Download OpenAPIGeneratorCLI...", LogLevel.Debug)
1710
1711
  if pinned_version is None:
1711
1712
  # No repository-specific version is pinned. This happens when the global cache is warmed
1712
- # without a repository-context (e.g. scdownloadcachabletools in a build-image). Fall back
1713
+ # without a repository-context (e.g. scdownloadcacheabletools in a build-image). Fall back
1713
1714
  # to the default version that ships with the ScriptCollection-package instead of failing.
1714
1715
  # Actual codeunit-builds always pass a repository_folder and therefore use the version
1715
1716
  # pinned in their own '<repo>/Other/Resources/Dependencies/OpenAPIGenerator/Version.txt'.
@@ -1753,7 +1754,7 @@ class TFCPS_Tools_General:
1753
1754
  @GeneralUtilities.check_arguments
1754
1755
  def get_default_openapigenerator_version(self) -> str:
1755
1756
  """Returns the OpenAPIGenerator-version used when no repository-specific version is pinned
1756
- (for example when warming the global cache via scdownloadcachabletools). The value is read from
1757
+ (for example when warming the global cache via scdownloadcacheabletools). The value is read from
1757
1758
  '<repo>/Other/Resources/Dependencies/OpenAPIGenerator/Version.txt', which the build copies into the
1758
1759
  ScriptCollection.Resources-package so it is available at runtime from the installed wheel."""
1759
1760
  content = GeneralUtilities._internal_load_resource(TFCPS_Tools_General.__openapigenerator_version_resource_relative_path)
@@ -1811,7 +1812,7 @@ class TFCPS_Tools_General:
1811
1812
  self.__sc.push_nuget_build_artifact(self.__sc.find_file_by_extension(build_artifact_folder, "nupkg"), registry_address, api_key)
1812
1813
 
1813
1814
  @GeneralUtilities.check_arguments
1814
- def suport_information_exists(self, repository_folder: str, version_of_product: str) -> bool:
1815
+ def support_information_exists(self, repository_folder: str, version_of_product: str) -> bool:
1815
1816
  self.__sc.assert_is_git_repository(repository_folder)
1816
1817
  folder = os.path.join(repository_folder, "Other", "Resources", "Support")
1817
1818
  file = os.path.join(folder, "InformationAboutSupportedVersions.csv")
@@ -1826,7 +1827,7 @@ class TFCPS_Tools_General:
1826
1827
  @GeneralUtilities.check_arguments
1827
1828
  def mark_current_version_as_supported(self, repository_folder: str, version_of_product: str, supported_from: datetime, supported_until: datetime):
1828
1829
  self.__sc.assert_is_git_repository(repository_folder)
1829
- if self.suport_information_exists(repository_folder, version_of_product):
1830
+ if self.support_information_exists(repository_folder, version_of_product):
1830
1831
  raise ValueError(f"Version-support for v{version_of_product} already defined.")
1831
1832
  folder = os.path.join(repository_folder, "Other", "Resources", "Support")
1832
1833
  GeneralUtilities.ensure_directory_exists(folder)
@@ -2133,7 +2134,7 @@ class TFCPS_Tools_General:
2133
2134
  @GeneralUtilities.check_arguments
2134
2135
  def log_newer_major_versions_of_dependency(self, dependency_name: str, available_versions: list[str], used_version: str) -> None:
2135
2136
  """Logs if a newer major-version of the given dependency is available than the used one.
2136
- An update with an echolon like LatestPatchOrLatestMinor does not take over a new major-version, so without this message it would not be visible that the dependency falls behind.
2137
+ An update with an echelon like LatestPatchOrLatestMinor does not take over a new major-version, so without this message it would not be visible that the dependency falls behind.
2137
2138
  Being 1 major-version behind is logged as information, being 2 or more major-versions behind is logged as warning.
2138
2139
  used_version is the version which is used after the update (if an update was done)."""
2139
2140
  amount_of_major_versions_behind: int = GeneralUtilities.get_amount_of_major_versions_behind(available_versions, used_version)
@@ -2143,6 +2144,23 @@ class TFCPS_Tools_General:
2143
2144
  latest_version: str = GeneralUtilities.get_latest_version(available_versions)
2144
2145
  self.__sc.log.log(f"Dependency {dependency_name} is used in version {used_version}, which is {amount_of_major_versions_behind} major-version(s) behind the latest available version {latest_version}. A new major-version has to be taken over deliberately.", loglevel)
2145
2146
 
2147
+ @GeneralUtilities.check_arguments
2148
+ def update_dependencies_of_package_json_file(self, package_json_file: str, echelon: VersionEchelon) -> None:
2149
+ """Updates the versions of the dependencies and dev-dependencies which the given package.json-file declares, according to the given echelon.
2150
+ This is intended for a package-file which does not belong to a codeunit (for example "<repository>/package.json", which declares the git-hooks-tool of the repository),
2151
+ so it is called by "<repository>/Other/Scripts/UpdateDependencies.py". The package-file of a nodejs- or typescript-codeunit is updated by the update of that codeunit instead.
2152
+ Only dependencies which are declared with a plain version-number are updated (see NpmDependencies.get_dependency_entries).
2153
+ No lock-file is written and nothing is installed, because such a package-file is not part of a build."""
2154
+ GeneralUtilities.assert_file_exists(package_json_file)
2155
+ for dependency in NpmDependencies.get_dependencies(package_json_file):
2156
+ available_versions: list[str] = NpmDependencies.get_available_versions(dependency.dependencyname)
2157
+ desired_version: str = GeneralUtilities.choose_version(available_versions, dependency.current_version, echelon)
2158
+ GeneralUtilities.assert_condition(version.parse(dependency.current_version) <= version.parse(desired_version), f"Desired version {desired_version} for dependency {dependency.dependencyname} is less than the actual used version {dependency.current_version}.")
2159
+ if desired_version != dependency.current_version:
2160
+ self.__sc.log.log(f"Update dependency {dependency.dependencyname} (which is currently used in version {dependency.current_version}) to version {desired_version}.")
2161
+ NpmDependencies.set_dependency_version(package_json_file, dependency.dependencyname, desired_version)
2162
+ self.log_newer_major_versions_of_dependency(dependency.dependencyname, available_versions, desired_version)
2163
+
2146
2164
  @GeneralUtilities.check_arguments
2147
2165
  def get_dependencies_which_are_ignored_from_updates(self, codeunit_folder: str) -> list[str]:
2148
2166
  self.assert_is_codeunit_folder(codeunit_folder)
@@ -455,7 +455,7 @@ class TFCPS_VisualRegressionTests:
455
455
  def __is_running_in_container(self) -> bool:
456
456
  # The filesystem-marker is checked in addition to the convention-based environment-variable because a wrong
457
457
  # result here does not only change a message but makes the container access the wrong folder.
458
- return os.path.exists("/.dockerenv") or self.__sc.is_runnning_in_container()
458
+ return os.path.exists("/.dockerenv") or self.__sc.is_running_in_container()
459
459
 
460
460
  @GeneralUtilities.check_arguments
461
461
  def __get_own_container_id(self) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scriptcollection
3
- Version: 4.4.73
3
+ Version: 5.0.0
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Author-email: Marius Göcke <marius.goecke@gmail.com>
6
6
  License-Expression: GPL-3.0-only
@@ -31,6 +31,7 @@ Requires-Dist: keyboard>=0.13.5
31
31
  Requires-Dist: lcov-cobertura>=2.1.1
32
32
  Requires-Dist: lxml>=6.0.1
33
33
  Requires-Dist: ntplib>=0.4.0
34
+ Requires-Dist: packaging>=26.3
34
35
  Requires-Dist: Pillow>=11.3.0
35
36
  Requires-Dist: psutil>=7.2.2
36
37
  Requires-Dist: pycdlib>=1.22.0
@@ -41,6 +42,7 @@ Requires-Dist: PyPDF>=6.21.1
41
42
  Requires-Dist: pytest>=8.4.2
42
43
  Requires-Dist: PyYAML>=6.0.3
43
44
  Requires-Dist: qrcode>=8.2.0
45
+ Requires-Dist: requests>=2.34.2
44
46
  Requires-Dist: send2trash>=1.8.3
45
47
  Requires-Dist: twine>=6.2.0
46
48
  Requires-Dist: xmlschema>=4.3.2
@@ -1,18 +1,18 @@
1
1
  ScriptCollection/AgentRunner.py,sha256=v3wRllPSjeIuIK6uhCfQLRdAm0Kpq-DOs7VVWUEIU2s,29866
2
2
  ScriptCollection/ArbTranslationsOrganizer.py,sha256=3TO4fjkYADcHGyUXdiQk-RtfCxtf9ojuBS3CbZtgXBE,12218
3
3
  ScriptCollection/CertificateUpdater.py,sha256=yZc7KESc1F_Mc6HP2UfLmNHRc2MvtVqp0t60J_CqY3s,9755
4
- ScriptCollection/Executables.py,sha256=eLLqSEAsrpI1t7F63cqFrTOfwZuq7S6HGBr8buVWj_E,88478
5
- ScriptCollection/GeneralUtilities.py,sha256=F4o39U7YxWlePPfHqiO0ijw1qUX3D6E8jJk3OFlxsKw,83093
4
+ ScriptCollection/Executables.py,sha256=Ow5t0s3vqNJ03dA4kjqj37d5AnUfZkwcCn_5kaX9xWQ,88479
5
+ ScriptCollection/GeneralUtilities.py,sha256=pBFEN5yeF4_2bLS1VQy7IFfqcBG-0Lgnta8bS80WRVI,83097
6
6
  ScriptCollection/HTTPMaintenanceOverheadHelper.py,sha256=TToNtyO1XzsMbBsTBf3o0xgOK0v4Jf03qw2Z0xb2nCk,2007
7
7
  ScriptCollection/ProcessesRunner.py,sha256=wtNFdmj9klETTIDUSE90vaR5ClEX4V7dgJNVbp9_wi0,1381
8
8
  ScriptCollection/ProgramRunnerBase.py,sha256=eZenpiIFW1dhvSVCG7cfBs5hO4_KLlOxR7oXoSxUDmk,2286
9
9
  ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrRjAPIwT5Y,37
10
- ScriptCollection/ProgramRunnerPopen.py,sha256=swRlWMQ3WiAkF3PTerraXU-LAAIdyvKbpW1CrQmee38,6497
11
- ScriptCollection/ProgramRunnerSudo.py,sha256=vwKq-MOcqsgiKhSf-MBUDBC_UyaU8evP3RooYkc2DvQ,5118
10
+ ScriptCollection/ProgramRunnerPopen.py,sha256=ctDT_FDN1v5QVnTkGbBSXD1meAD7tw6stUenxcQOvhM,6813
11
+ ScriptCollection/ProgramRunnerSudo.py,sha256=gTcLNt4TAUck-i9TvLHaOHYfB0TLKLVKlYNzTNJJ_6M,5575
12
12
  ScriptCollection/RepositoryDiagramGenerator.py,sha256=K_u2NW_p4ozdWD50irJEkkcDVa70TcUJpZN63TeXSLw,7092
13
13
  ScriptCollection/RepositoryHistoryAnalyzer.py,sha256=u9141B9D-Kef-9uo3yR7BXKUMzIKLVsesnYk7H-cWm4,6157
14
14
  ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
15
- ScriptCollection/ScriptCollectionCore.py,sha256=nOPKW8zbBVmSoI977okRmu4dbC9RgwCaA_fTMtwsTvU,312409
15
+ ScriptCollection/ScriptCollectionCore.py,sha256=jC4eyD2T404KS0FvZhRXbkziP7L0S9b4HcbpIGhGZN8,313304
16
16
  ScriptCollection/TestKind.py,sha256=jqLJwNvQeyea7SZf-UFzMC9pM0znv4do7FIC1xq8u9M,1672
17
17
  ScriptCollection/UnassignedVariablesCheck.py,sha256=8xNcp1D5HeOLO1a1NEerq2TsnpFhw7yzYPkaay-oisY,3804
18
18
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -46,17 +46,17 @@ ScriptCollection/LinuxServerSecurityCheck/Checks/PersistenceChecks.py,sha256=rRg
46
46
  ScriptCollection/LinuxServerSecurityCheck/Checks/ProcessChecks.py,sha256=gkK8sDMBF92NtFOBW_uvJGrB8xmJJQTW-MpeEjU6ip4,5254
47
47
  ScriptCollection/LinuxServerSecurityCheck/Checks/SSHChecks.py,sha256=I603qknNvoirjTpqoGrISfg9qSB1Ndl2fTDXZo-NFME,3436
48
48
  ScriptCollection/LinuxServerSecurityCheck/Checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
- ScriptCollection/OCIImages/AbstractImageHandler.py,sha256=a_IkSjHiA2gV1PfCIzw13fnuUOT19I_6NW_zYLZujEo,2042
49
+ ScriptCollection/OCIImages/AbstractImageHandler.py,sha256=pzmv6FLbZjRUjE2kBr1cemttBIAqbHLT6QNvpI6d9jc,2042
50
50
  ScriptCollection/OCIImages/AbstractTagPatternImageHandler.py,sha256=tB2cs_89LGzeiTQl3REn5IAPvccrJyQfzfLg74SpdzI,2607
51
- ScriptCollection/OCIImages/OCIImageManager.py,sha256=LzZv2cuhpWrGxjbRTEOGu04rWv4seSnw6u-ntyYOjN4,25970
51
+ ScriptCollection/OCIImages/OCIImageManager.py,sha256=KrmnPiIQEPmnRtuOVqpcX_VEFKvPC66rZ9SyVz-UT8M,25970
52
52
  ScriptCollection/OCIImages/OCIRegistryClient.py,sha256=QNEEHgKmcqBd0VvHIvnti50EmOhROW1lpdfErXu7rJM,7226
53
53
  ScriptCollection/OCIImages/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
54
- ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerDebian.py,sha256=c31ZovK5Gc5kd09lj0rx1uWaUjxp517R2kFxMCPauUo,538
55
- ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerDebianSlim.py,sha256=fMJzFI3yyRkrsjFa32s3ckOdN7qDWvPcyIsNhDvfl1g,556
56
- ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGeneric.py,sha256=pn7180kGuGw0Nt23Vy-LFHD2VDMaNvqq4cFxpmmZurQ,555
57
- ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGenericV.py,sha256=SyJFz92XAfPsb82zJouT92LECYyW_JKv9T7PmfahyF4,561
58
- ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGitlabCE.py,sha256=UU3vkn1V9y6s3H1NVCpITMS_mnpMzuCHuGrp2tA5BK4,1042
59
- ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGitlabEE.py,sha256=7_afKFvXFmm8wHuk-wMhPaeVejeXXZeYjyafRZJh0rE,1042
54
+ ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerDebian.py,sha256=6UOtEWrkX7815htm2TR4nyWSleCUTf7PhOafxRoPCjg,538
55
+ ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerDebianSlim.py,sha256=UKgBvwd_qv-2Z6vPw599hRCeJPXfZCFTPX-TfXPr1TA,556
56
+ ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGeneric.py,sha256=V0q0HMbZ-u4cPHuvQYJI0XpOkCoZREfw_aEkkpCzobs,555
57
+ ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGenericV.py,sha256=YgZmh00Mxo9OfwkgjX7y7NuFqmqNCgMyptufiMiMaXY,561
58
+ ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGitlabCE.py,sha256=E0x2FYKYtltkm4bA2QdMiHJ0Oa9ICf15WijLg1rFCyg,1042
59
+ ScriptCollection/OCIImages/ConcreteImageHandlers/ImageHandlerGitlabEE.py,sha256=IU5FJhA_Uidm3qmbgscp8viMuWPnuu04d5eB2ePPkto,1042
60
60
  ScriptCollection/OCIImages/ConcreteImageHandlers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
61
61
  ScriptCollection/Resources/CultureChooser/CultureChooser.js,sha256=5-4pwGDq5j1UnpTZy850ZMoxlM9tYPeu781QpZBtCWM,951
62
62
  ScriptCollection/Resources/CultureChooser/index.html,sha256=gxQzbrSp4WU52TqN-gcBEtz2gJXmmM14OwTSFtFVRvw,276
@@ -66,14 +66,14 @@ ScriptCollection/Resources/MaintenanceSite/MaintenanceSite.html,sha256=CX9S1bdOz
66
66
  ScriptCollection/TFCPS/ContainerBuildEnvironment.py,sha256=LIlWZnxqKGqTyAOxrdUOh2yTLmaTlA8skqIII9-SElk,12620
67
67
  ScriptCollection/TFCPS/NpmDependencies.py,sha256=IfUh9EyrkHxovGRWYagNMZjBUXyKjZ4AG-Z8leehw24,6304
68
68
  ScriptCollection/TFCPS/PackageSource.py,sha256=tQoMbxrIbV3mYHKH2wgOoGzIHY1TvBH8EAFpWGhryrQ,1311
69
- ScriptCollection/TFCPS/PlantUMLRenderer.py,sha256=He5woqx9IR96vMXtHo12BmeXmcjLoifGD8Sup0bpxuo,11060
69
+ ScriptCollection/TFCPS/PlantUMLRenderer.py,sha256=QwfLFdnaCI1aP3_ndlMs7HC4JgqR_z6WPvCU_SRYTwE,11059
70
70
  ScriptCollection/TFCPS/PubDependencies.py,sha256=hl6BfYjzb0-esO-pqyV_sxBLbHBi55GEgUiub3lma_8,9922
71
71
  ScriptCollection/TFCPS/SCTaskRunnerServer.py,sha256=ou8MUz8yR_9ruugsUarT4cb9Rmm_HR98ERhKoveCxkA,34795
72
72
  ScriptCollection/TFCPS/TFCPS_BuildCodeUnitsHook.py,sha256=67_DQwoH5bhxxSmwtuAeoW1NOCMiLMzOy48OqlJX-KY,1744
73
73
  ScriptCollection/TFCPS/TFCPS_CodeSpellCheck.py,sha256=zV62O7UiGjewx1yQUIWmUJ9D-5ipkV_f28uNhp-JWUs,5306
74
- ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=QvDcicWpcF9u5dKQ2uhE8yi7pfa2sn_2241hRXsZPoo,40878
74
+ ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=oRz5MqUUXv60AxnLjT8PaMN_W0cdm-7eLW8o23SkYYM,40894
75
75
  ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=_wTwaf-lmz8MijRhaM6NvNV7bI52Tlnxb8wLZnD5vcY,10678
76
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=CAFUiKJ6zrHNXW2pXs9k_FZDwu-xxFmliSPUIJoLv54,62223
76
+ ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=eUOFfK7ZNhLMJip8GXhDWDTyUv4pcEh1ehj8ARTvLJI,74886
77
77
  ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=BVK3fpEyjcXYVHIb6YYLH7bWe6iKRaCtPrJ3tXAemYw,6582
78
78
  ScriptCollection/TFCPS/TFCPS_FindingsSorter.py,sha256=3ChuKf-Myr3sBtQhYGw6dHlk93HO6PAH-Jq1oPYdW1s,4804
79
79
  ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=mRBcf7XuNWOSXbZYc3NuJow18AMZ30D6Z-BtyNYfNcM,2072
@@ -82,8 +82,8 @@ ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=GdpFcgIFRvdc1Q9b7uXlPlN99s7
82
82
  ScriptCollection/TFCPS/TFCPS_OCIImageSecretScan.py,sha256=Jb7AaMcJDW-gYEYBUVZAG3QLTTNWmXlvVEW-lZsykws,14821
83
83
  ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=XLVsFTA1jvfDbZ7wYJgIdEByZhF_bYVbA5jkisuvK4k,2322
84
84
  ScriptCollection/TFCPS/TFCPS_RemoteBuild.py,sha256=g9hncmdvV1DtYC7_3F3UCvEjoOMUdxKHqt-wQVPIvEU,26652
85
- ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=YY9xCY_Cd6wzSFv6NOxgxmOAYHouCw8hGojNpnZ8YoI,163220
86
- ScriptCollection/TFCPS/TFCPS_VisualRegressionTests.py,sha256=F90CF5kLCgV_M3yN696xWzF1cglWLXecau9My2ZyGxw,42230
85
+ ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=7wXgyHfMjzeoMioxsla5M4a7tZt-s5mNsINk2l4tlac,165309
86
+ ScriptCollection/TFCPS/TFCPS_VisualRegressionTests.py,sha256=Fju80SI5bOLrNzCbDzjrMlO8teJoKfnSQsQtu1tmLn0,42229
87
87
  ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
88
  ScriptCollection/TFCPS/Android/TFCPS_CodeUnitSpecific_Android.py,sha256=g6K4eJp1zsVx4enkTKvca2H8kWUVAtkz3pSDVS_0iU8,35461
89
89
  ScriptCollection/TFCPS/Android/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -95,15 +95,15 @@ ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationBase.py,sha256=bT6G
95
95
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationGenerate.py,sha256=QyjOfMY22JWCvKjMelHiDWbJiWqotOfebpJpgDUaoO4,237
96
96
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationNoGenerate.py,sha256=i0zEGehj0sttxjjZtoq2KFSKp_ulxVyWp_ZgAhIY_So,241
97
97
  ScriptCollection/TFCPS/DotNet/NuGetPackageSourceRegistration.py,sha256=E2TiFbwyPZvhozoWqLksc4uH50LbFAaVWOGfUo6for4,7050
98
- ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=WlWfgfWKwU1PS58BgxQoFFr4_3R3YyYdhsCJYiV-kiM,67192
98
+ ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=iJjsXo8MBi6Moh7X4o0zaFhpT22q-7XJb5c4wMBxRsU,67192
99
99
  ScriptCollection/TFCPS/DotNet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
100
- ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=Fb1iBuIQkwXloKdlTFw7ynYts3XxS__-Fk97MwDKuKY,64587
100
+ ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=NGKP-9SVBAND9jnmvaGEHDWmfuJRevJCSTeRTz8NcKs,64588
101
101
  ScriptCollection/TFCPS/Flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
102
102
  ScriptCollection/TFCPS/Go/TFCPS_CodeUnitSpecific_Go.py,sha256=m4Pax-U6o5XuspLnLfnWjyQMtoC7zBDDNJW9EhLWjeE,9012
103
103
  ScriptCollection/TFCPS/Go/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
104
104
  ScriptCollection/TFCPS/Maven/TFCPS_CodeUnitSpecific_Maven.py,sha256=6to-jfT49GBbUYCjUm-2-7A888OVV2HJDSPqKL14aog,10708
105
105
  ScriptCollection/TFCPS/Maven/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
106
- ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=FW3HHeaEmYC8A-725A3o9_tKXldn7eggsfjJg_7ZMys,17234
106
+ ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=GMiWCtAUm_dppJBDHg6gd9kvW_LZCltiiPniPmDv_A4,17234
107
107
  ScriptCollection/TFCPS/NodeJS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
108
  ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=Wi9anRljuvW1-UplYhI_QNR2szxaitHiXVJ6p4nUEI8,21089
109
109
  ScriptCollection/TFCPS/Python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -112,8 +112,8 @@ ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=ZfOiefD5RGOcaZ
112
112
  ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
113
113
  ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=ILVhJHvwG5TvPBBqSvyACYb7W9QnWrJpxKgHu8IQu4g,9249
114
114
  ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
115
- scriptcollection-4.4.73.dist-info/METADATA,sha256=85wfRkIJz6ujRergsMCrCA7yzUIDvsD1dOqVdDjdFOY,8037
116
- scriptcollection-4.4.73.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
117
- scriptcollection-4.4.73.dist-info/entry_points.txt,sha256=OK3miTYUhXpsvY3SC9pkczbh_MULzFdYUGm_qlAHRtM,6468
118
- scriptcollection-4.4.73.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
119
- scriptcollection-4.4.73.dist-info/RECORD,,
115
+ scriptcollection-5.0.0.dist-info/METADATA,sha256=MkbkDD3CHLL_PM5_gpX_ljqv0dJ5x22xS7ZKEYsyP0w,8099
116
+ scriptcollection-5.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
117
+ scriptcollection-5.0.0.dist-info/entry_points.txt,sha256=xNcXwGkN86YhN59W4c89bXaxUa4jUKHazNzVmllm_y0,6469
118
+ scriptcollection-5.0.0.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
119
+ scriptcollection-5.0.0.dist-info/RECORD,,
@@ -21,7 +21,7 @@ sccreaterelease = ScriptCollection.Executables:CreateRelease
21
21
  sccreatesimplemergewithoutrelease = ScriptCollection.Executables:CreateSimpleMergeWithoutRelease
22
22
  sccreateskill = ScriptCollection.Executables:CreateSkill
23
23
  sccurrentuserhaselevatedprivileges = ScriptCollection.Executables:CurrentUserHasElevatedPrivileges
24
- scdownloadcachabletools = ScriptCollection.Executables:DownloadCachableTools
24
+ scdownloadcacheabletools = ScriptCollection.Executables:DownloadCacheableTools
25
25
  scensuredockernetworkisavailable = ScriptCollection.Executables:EnsureDockerNetworkIsAvailable
26
26
  scensuredockernetworkisnotavailable = ScriptCollection.Executables:EnsureDockerNetworkIsNotAvailable
27
27
  scensureexternaldockernetworksexist = ScriptCollection.Executables:EnsureExternalDockerNetworksExist
@@ -54,7 +54,7 @@ scocranalysisofrepository = ScriptCollection.Executables:OCRAnalysisOfRepository
54
54
  scorganizelinesinfile = ScriptCollection.Executables:OrganizeLinesInFile
55
55
  scpreparebuildpipelineforgithub = ScriptCollection.Executables:PrepareBuildPipelineForGithub
56
56
  scpreparebuildpipelineforgitlab = ScriptCollection.Executables:PrepareBuildPipelineForGitlab
57
- scprintcurrentworkingdirectory = ScriptCollection.Executables:PrintCurrecntWorkingDirectory
57
+ scprintcurrentworkingdirectory = ScriptCollection.Executables:PrintCurrentWorkingDirectory
58
58
  scprintfilecontent = ScriptCollection.Executables:PrintFileContent
59
59
  scprintfilesize = ScriptCollection.Executables:PrintFileSize
60
60
  scprintosname = ScriptCollection.Executables:PrintOSName