ScriptCollection 4.4.48__py3-none-any.whl → 4.4.50__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.
- ScriptCollection/GeneralUtilities.py +12 -4
- ScriptCollection/ProcessesRunner.py +2 -5
- ScriptCollection/ScriptCollectionCore.py +62 -41
- ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py +1 -1
- ScriptCollection/TFCPS/SCTaskRunnerServer.py +2 -1
- ScriptCollection/TFCPS/TFCPS_CodeSpellCheck.py +80 -0
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py +3 -21
- ScriptCollection/TFCPS/TFCPS_Tools_General.py +33 -17
- {scriptcollection-4.4.48.dist-info → scriptcollection-4.4.50.dist-info}/METADATA +3 -3
- {scriptcollection-4.4.48.dist-info → scriptcollection-4.4.50.dist-info}/RECORD +13 -12
- {scriptcollection-4.4.48.dist-info → scriptcollection-4.4.50.dist-info}/WHEEL +0 -0
- {scriptcollection-4.4.48.dist-info → scriptcollection-4.4.50.dist-info}/entry_points.txt +0 -0
- {scriptcollection-4.4.48.dist-info → scriptcollection-4.4.50.dist-info}/top_level.txt +0 -0
|
@@ -697,14 +697,22 @@ class GeneralUtilities:
|
|
|
697
697
|
@staticmethod
|
|
698
698
|
@check_arguments
|
|
699
699
|
def ensure_directory_does_not_exist(path: str) -> None:
|
|
700
|
-
|
|
700
|
+
# Symbolic links are removed themselves without changing permissions, because os.chmod follows them and would change the permissions of their targets outside of the folder.
|
|
701
|
+
if os.path.islink(path):
|
|
702
|
+
os.unlink(path)
|
|
703
|
+
elif (os.path.isdir(path)):
|
|
701
704
|
for root, dirs, files in os.walk(path, topdown=False):
|
|
702
705
|
for name in files:
|
|
703
706
|
filename = os.path.join(root, name)
|
|
704
|
-
os.
|
|
707
|
+
if not os.path.islink(filename):
|
|
708
|
+
os.chmod(filename, stat.S_IWUSR)
|
|
705
709
|
os.remove(filename)
|
|
706
710
|
for name in dirs:
|
|
707
|
-
|
|
711
|
+
folder = os.path.join(root, name)
|
|
712
|
+
if os.path.islink(folder):
|
|
713
|
+
os.unlink(folder)
|
|
714
|
+
else:
|
|
715
|
+
GeneralUtilities.__rmtree(folder)
|
|
708
716
|
GeneralUtilities.__rmtree(path)
|
|
709
717
|
|
|
710
718
|
@staticmethod
|
|
@@ -1324,7 +1332,7 @@ class GeneralUtilities:
|
|
|
1324
1332
|
def replace_variable(prefix:str, variable_name:str, suffix:str, value:str, content: str) -> str:
|
|
1325
1333
|
GeneralUtilities.assert_condition(not "__" in variable_name, f"'{variable_name}' is an invalid variable name because it contains '__' which is treated as control-sequence.")
|
|
1326
1334
|
pattern = re.escape(GeneralUtilities.str_none_safe( prefix)) + r"\s*" +"__"+ re.escape(variable_name) + "__"+r"\s*" + re.escape(GeneralUtilities.str_none_safe( suffix))
|
|
1327
|
-
result:str= re.sub(pattern, value, content)
|
|
1335
|
+
result:str= re.sub(pattern, lambda _: value, content)
|
|
1328
1336
|
GeneralUtilities.assert_condition(not f"__{variable_name}__" in result, f"Variable '{variable_name}' was not replaced in the content. This is likely caused by an error in the content or the variable name.")
|
|
1329
1337
|
return result
|
|
1330
1338
|
|
|
@@ -28,16 +28,13 @@ class ProcessesRunner:
|
|
|
28
28
|
def run(self):
|
|
29
29
|
pids: list[int] = list[int]()
|
|
30
30
|
for processstartinfo in self.processes:
|
|
31
|
-
pids.append(self.sc.run_program_async(processstartinfo.program, processstartinfo.
|
|
31
|
+
pids.append(self.sc.run_program_async(processstartinfo.program, processstartinfo.arguments, processstartinfo.workingdirectory))
|
|
32
32
|
enabled = True
|
|
33
33
|
while enabled:
|
|
34
34
|
for pid in pids:
|
|
35
35
|
if not psutil.pid_exists(pid):
|
|
36
36
|
enabled = False
|
|
37
37
|
# one program terminated so exit and terminate all now
|
|
38
|
-
processes = psutil.process_iter()
|
|
39
38
|
for pid in pids:
|
|
40
39
|
if psutil.pid_exists(pid):
|
|
41
|
-
|
|
42
|
-
if proc.pid == pid:
|
|
43
|
-
proc.kill()
|
|
40
|
+
psutil.Process(pid).kill()
|
|
@@ -40,7 +40,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
|
|
|
40
40
|
from .ProgramRunnerPopen import ProgramRunnerPopen
|
|
41
41
|
from .SCLog import SCLog, LogLevel
|
|
42
42
|
|
|
43
|
-
version = "4.4.
|
|
43
|
+
version = "4.4.50"
|
|
44
44
|
__version__ = version
|
|
45
45
|
|
|
46
46
|
class VSCodeWorkspaceShellTask:
|
|
@@ -452,7 +452,7 @@ class ScriptCollectionCore:
|
|
|
452
452
|
if not (image in images):
|
|
453
453
|
return False
|
|
454
454
|
|
|
455
|
-
if self.
|
|
455
|
+
if len(self.__get_tags_of_image_from_registry(registry_url,image,registry_username,registry_password))<1:
|
|
456
456
|
return False
|
|
457
457
|
|
|
458
458
|
return True
|
|
@@ -491,6 +491,9 @@ class ScriptCollectionCore:
|
|
|
491
491
|
image=image.rsplit("/", 1)[-1]
|
|
492
492
|
if not self.registry_contains_image(registry_base_url,image,registry_username,registry_password):
|
|
493
493
|
return []
|
|
494
|
+
return self.__get_tags_of_image_from_registry(registry_base_url,image,registry_username,registry_password)
|
|
495
|
+
|
|
496
|
+
def __get_tags_of_image_from_registry(self,registry_base_url:str,image:str,registry_username:str,registry_password:str)->list[str]:
|
|
494
497
|
tags_url = f"{registry_base_url}/v2/{image}/tags/list"
|
|
495
498
|
response = requests.get(tags_url, auth=(registry_username, registry_password),timeout=20)
|
|
496
499
|
response.raise_for_status() # check if statuscode = 200
|
|
@@ -518,6 +521,12 @@ class ScriptCollectionCore:
|
|
|
518
521
|
message = str(exception).lower()
|
|
519
522
|
return any(indicator in message for indicator in ScriptCollectionCore.__timeout_error_indicators)
|
|
520
523
|
|
|
524
|
+
@GeneralUtilities.check_arguments
|
|
525
|
+
def __run_openssl(self, arguments: list[str], folder: str) -> None:
|
|
526
|
+
# Passwords are passed to openssl as "pass:<password>", so they are masked for the log and for the message of an exception.
|
|
527
|
+
arguments_for_log = ["pass:***" if argument.startswith("pass:") else argument for argument in arguments]
|
|
528
|
+
self.run_program_argsasarray("openssl", arguments, folder, arguments_for_log=arguments_for_log)
|
|
529
|
+
|
|
521
530
|
@GeneralUtilities.check_arguments
|
|
522
531
|
def docker_login(self, registry: str, username: str, password: str) -> None:
|
|
523
532
|
"""Logs in to the given docker-registry."""
|
|
@@ -747,9 +756,11 @@ class ScriptCollectionCore:
|
|
|
747
756
|
nupkg_file_name = os.path.basename(nupkg_file)
|
|
748
757
|
nupkg_file_folder = os.path.dirname(nupkg_file)
|
|
749
758
|
argument = f"nuget push {nupkg_file_name} --force-english-output --source {registry_address}"
|
|
759
|
+
argument_for_log = argument
|
|
750
760
|
if api_key is not None:
|
|
751
|
-
argument = f"{argument} --api-key {api_key}"
|
|
752
|
-
|
|
761
|
+
argument = f"{argument} --api-key {api_key}"
|
|
762
|
+
argument_for_log = f"{argument_for_log} --api-key ***"
|
|
763
|
+
self.run_program("dotnet", argument, nupkg_file_folder, arguments_for_log=argument_for_log)
|
|
753
764
|
|
|
754
765
|
@GeneralUtilities.check_arguments
|
|
755
766
|
def dotnet_build(self, folder: str, projectname: str, configuration: str):
|
|
@@ -787,10 +798,12 @@ class ScriptCollectionCore:
|
|
|
787
798
|
result = self.run_program("git", f"verify-commit {revision_identifier}", repository_folder, throw_exception_if_exitcode_is_not_zero=False)
|
|
788
799
|
if (result[0] != 0):
|
|
789
800
|
return False
|
|
790
|
-
|
|
801
|
+
# "git verify-commit" writes the output of gpg to stderr.
|
|
802
|
+
gpg_output_lines = result[2].splitlines()
|
|
803
|
+
if (not GeneralUtilities.contains_line(gpg_output_lines, f"gpg\\:\\ using\\ [A-Za-z0-9]+\\ key\\ [A-Za-z0-9]+{re.escape(key)}")):
|
|
791
804
|
# TODO check whether this works on machines where gpg is installed in another language than english
|
|
792
805
|
return False
|
|
793
|
-
if (not GeneralUtilities.contains_line(
|
|
806
|
+
if (not GeneralUtilities.contains_line(gpg_output_lines, "gpg\\:\\ Good\\ signature\\ from")):
|
|
794
807
|
# TODO check whether this works on machines where gpg is installed in another language than english
|
|
795
808
|
return False
|
|
796
809
|
return True
|
|
@@ -798,7 +811,7 @@ class ScriptCollectionCore:
|
|
|
798
811
|
@GeneralUtilities.check_arguments
|
|
799
812
|
def get_parent_commit_ids_of_commit(self, repository_folder: str, commit_id: str) -> str:
|
|
800
813
|
self.is_git_or_bare_git_repository(repository_folder)
|
|
801
|
-
return self.
|
|
814
|
+
return self.run_program_argsasarray("git", ["log", "--pretty=%P", "-n", "1", commit_id], repository_folder, throw_exception_if_exitcode_is_not_zero=True)[1].replace("\r", GeneralUtilities.empty_string).replace("\n", GeneralUtilities.empty_string).split(" ")
|
|
802
815
|
|
|
803
816
|
|
|
804
817
|
@GeneralUtilities.check_arguments
|
|
@@ -806,7 +819,7 @@ class ScriptCollectionCore:
|
|
|
806
819
|
self.is_git_or_bare_git_repository(repository_folder)
|
|
807
820
|
since_as_string = self.__datetime_to_string_for_git(since)
|
|
808
821
|
until_as_string = self.__datetime_to_string_for_git(until)
|
|
809
|
-
result = filter(lambda line: not GeneralUtilities.string_is_none_or_whitespace(line), self.
|
|
822
|
+
result = filter(lambda line: not GeneralUtilities.string_is_none_or_whitespace(line), self.run_program_argsasarray("git", ["log", f"--since={since_as_string}", f"--until={until_as_string}", "--pretty=format:%H", "--no-patch"], repository_folder, throw_exception_if_exitcode_is_not_zero=True)[1].replace("\r", GeneralUtilities.empty_string).split("\n"))
|
|
810
823
|
if ignore_commits_which_are_not_in_history_of_head:
|
|
811
824
|
result = [commit_id for commit_id in result if self.git_commit_is_ancestor(repository_folder, commit_id)]
|
|
812
825
|
return result
|
|
@@ -968,7 +981,7 @@ class ScriptCollectionCore:
|
|
|
968
981
|
|
|
969
982
|
@GeneralUtilities.check_arguments
|
|
970
983
|
def git_pull_with_retry(self, folder: str, remote: str, localbranchname: str, remotebranchname: str, force: bool = False, amount_of_attempts: int = 5) -> None:
|
|
971
|
-
GeneralUtilities.retry_action(lambda: self.git_pull(folder, remote, localbranchname, remotebranchname), amount_of_attempts)
|
|
984
|
+
GeneralUtilities.retry_action(lambda: self.git_pull(folder, remote, localbranchname, remotebranchname, force), amount_of_attempts)
|
|
972
985
|
|
|
973
986
|
@GeneralUtilities.check_arguments
|
|
974
987
|
def git_branch_is_pullable(self, folder: str, remote: str, localbranchname: str, remotebranchname: str) -> bool:
|
|
@@ -1049,7 +1062,7 @@ class ScriptCollectionCore:
|
|
|
1049
1062
|
def git_add_or_set_remote_address(self, directory: str, remote_name: str, remote_address: str) -> None:
|
|
1050
1063
|
self.assert_is_git_repository(directory)
|
|
1051
1064
|
if (self.repository_has_remote_with_specific_name(directory, remote_name)):
|
|
1052
|
-
self.run_program_argsasarray("git", ['remote', 'set-url',
|
|
1065
|
+
self.run_program_argsasarray("git", ['remote', 'set-url', remote_name, remote_address], directory, throw_exception_if_exitcode_is_not_zero=True)
|
|
1053
1066
|
else:
|
|
1054
1067
|
self.run_program_argsasarray("git", ['remote', 'add', remote_name, remote_address], directory, throw_exception_if_exitcode_is_not_zero=True)
|
|
1055
1068
|
|
|
@@ -1098,7 +1111,7 @@ class ScriptCollectionCore:
|
|
|
1098
1111
|
if commit_message_body is not None:
|
|
1099
1112
|
argument.extend(['--message', commit_message_body])
|
|
1100
1113
|
if (GeneralUtilities.string_has_content(author_name)):
|
|
1101
|
-
argument.append(f'--author=
|
|
1114
|
+
argument.append(f'--author={author_name} <{author_email}>')
|
|
1102
1115
|
git_repository_has_uncommitted_changes = self.git_repository_has_uncommitted_changes(directory)
|
|
1103
1116
|
|
|
1104
1117
|
if git_repository_has_uncommitted_changes:
|
|
@@ -1125,14 +1138,13 @@ class ScriptCollectionCore:
|
|
|
1125
1138
|
|
|
1126
1139
|
def search_repository_folder(self,some_file_in_repository:str)->str:
|
|
1127
1140
|
current_path:str=os.path.dirname(some_file_in_repository)
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
enabled=False
|
|
1141
|
+
while True:
|
|
1142
|
+
if self.is_git_repository(current_path):
|
|
1143
|
+
return current_path
|
|
1144
|
+
parent_path:str=GeneralUtilities.resolve_relative_path("..",current_path)
|
|
1145
|
+
if parent_path==current_path:
|
|
1146
|
+
break
|
|
1147
|
+
current_path=parent_path
|
|
1136
1148
|
raise ValueError(f"Can not find git-repository for folder \"{some_file_in_repository}\".")
|
|
1137
1149
|
|
|
1138
1150
|
|
|
@@ -1213,9 +1225,9 @@ class ScriptCollectionCore:
|
|
|
1213
1225
|
if self.is_git_repository(subfolder):
|
|
1214
1226
|
source_repository = subfolder
|
|
1215
1227
|
target_repository = os.path.join(target_directory, foldername)
|
|
1216
|
-
if os.path.isdir(
|
|
1228
|
+
if os.path.isdir(target_repository):
|
|
1217
1229
|
# fetch
|
|
1218
|
-
self.git_fetch(
|
|
1230
|
+
self.git_fetch(target_repository)
|
|
1219
1231
|
else:
|
|
1220
1232
|
# clone
|
|
1221
1233
|
self.git_clone(target_repository, source_repository, include_submodules=True, mirror=True)
|
|
@@ -1251,6 +1263,8 @@ class ScriptCollectionCore:
|
|
|
1251
1263
|
# keeps non-ascii paths unquoted. The resulting paths are relative to 'folder'.
|
|
1252
1264
|
lines = GeneralUtilities.string_to_lines(self.run_program_argsasarray("git", ["-c", "core.quotePath=false", "ls-files", "--cached", "--others", "--exclude-standard"], folder, throw_exception_if_exitcode_is_not_zero=True)[1], False)
|
|
1253
1265
|
result: list[str] = []
|
|
1266
|
+
# A set is used for the duplicate-check because a lookup in the result-list would make this quadratic, which is too slow for repositories with a lot of files.
|
|
1267
|
+
already_added: set[str] = set()
|
|
1254
1268
|
for line in lines:
|
|
1255
1269
|
if not GeneralUtilities.string_has_content(line):
|
|
1256
1270
|
continue
|
|
@@ -1259,7 +1273,8 @@ class ScriptCollectionCore:
|
|
|
1259
1273
|
continue
|
|
1260
1274
|
if not os.path.isfile(absolute_path): # a tracked-but-deleted file would still be listed by "--cached"
|
|
1261
1275
|
continue
|
|
1262
|
-
if absolute_path not in
|
|
1276
|
+
if absolute_path not in already_added:
|
|
1277
|
+
already_added.add(absolute_path)
|
|
1263
1278
|
result.append(absolute_path)
|
|
1264
1279
|
return result
|
|
1265
1280
|
|
|
@@ -2235,8 +2250,8 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
2235
2250
|
for root, _, files in os.walk(folder):
|
|
2236
2251
|
for file in files:
|
|
2237
2252
|
full_path = os.path.join(root, file)
|
|
2238
|
-
with
|
|
2239
|
-
content =
|
|
2253
|
+
with open(full_path, "rb") as file_stream:
|
|
2254
|
+
content = file_stream.read()
|
|
2240
2255
|
path_in_iso = '/' + files_directory + \
|
|
2241
2256
|
self.__adjust_folder_name(full_path[len(folder)::1]).upper()
|
|
2242
2257
|
if path_in_iso not in created_directories:
|
|
@@ -2342,7 +2357,7 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
2342
2357
|
#docker run --rm -it debian bash -c "apt update && apt list -a tor"
|
|
2343
2358
|
image_address, image_tag = ScriptCollectionCore.split_image_address_and_tag(image)
|
|
2344
2359
|
self.docker_pull(image_address, image_tag)
|
|
2345
|
-
output=self.run_with_epew("docker", f"run --rm -it {image} bash -c \"apt --color=false update && apt --color=false list -a
|
|
2360
|
+
output=self.run_with_epew("docker", f"run --rm -it {image} bash -c \"apt --color=false update && apt --color=false list -a {package}\"",os.getcwd(),encode_argument_in_base64=True)
|
|
2346
2361
|
stdout=output[1]
|
|
2347
2362
|
version_lines=[line.strip() for line in GeneralUtilities.string_to_lines(stdout) if GeneralUtilities.string_has_nonwhitespace_content(line) and line.startswith(package+"/")]
|
|
2348
2363
|
GeneralUtilities.assert_condition(0<len(version_lines), f"No version found for package '{package}' in image '{image}'.")
|
|
@@ -2425,7 +2440,8 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
2425
2440
|
|
|
2426
2441
|
@GeneralUtilities.check_arguments
|
|
2427
2442
|
def __get_file_permission_helper(self, permissions: str) -> str:
|
|
2428
|
-
|
|
2443
|
+
# The first character of the output of "ls -ld" is the file-type, so the permission-triples start at index 1.
|
|
2444
|
+
return str(self.__to_octet(permissions[1:4])) + str(self.__to_octet(permissions[4:7]))+str(self.__to_octet(permissions[7:10]))
|
|
2429
2445
|
|
|
2430
2446
|
@GeneralUtilities.check_arguments
|
|
2431
2447
|
def __to_octet(self, string: str) -> int:
|
|
@@ -2494,7 +2510,7 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
2494
2510
|
args = []
|
|
2495
2511
|
if recursive:
|
|
2496
2512
|
args.append("--recursive")
|
|
2497
|
-
if follow_symlinks:
|
|
2513
|
+
if not follow_symlinks:
|
|
2498
2514
|
args.append("--no-dereference")
|
|
2499
2515
|
args.append(owner)
|
|
2500
2516
|
args.append(file_or_folder)
|
|
@@ -2775,8 +2791,10 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
2775
2791
|
resolved_actual_folder = GeneralUtilities.resolve_relative_path(actual_folder, resolved_base_folder)
|
|
2776
2792
|
if not self.path_is_allowed_within_base_folder(actual_folder, base_folder, excluded_folders):
|
|
2777
2793
|
raise ValueError(f"The folder '{resolved_actual_folder}' is not allowed: it must be equal to or a subfolder of the base-folder '{resolved_base_folder}' and must not be located inside one of the excluded folders.")
|
|
2778
|
-
|
|
2779
|
-
|
|
2794
|
+
# The arguments are split before the placeholder is replaced, so that actual_folder always stays exactly one argument.
|
|
2795
|
+
# Otherwise an actual_folder which contains spaces could inject further arguments which were not checked.
|
|
2796
|
+
effective_arguments = [argument.replace(ScriptCollectionCore.run_command_in_folder_actual_folder_placeholder, resolved_actual_folder) for argument in GeneralUtilities.arguments_to_array(arguments)]
|
|
2797
|
+
result = self.run_program_argsasarray(command, effective_arguments, resolved_base_folder, print_live_output=True)
|
|
2780
2798
|
return result[0]
|
|
2781
2799
|
|
|
2782
2800
|
# Return-values program_runner: Exitcode, StdOut, StdErr, Pid
|
|
@@ -2909,12 +2927,16 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
2909
2927
|
password_set = not password is None
|
|
2910
2928
|
file_name = Path(zip_file).name
|
|
2911
2929
|
file_folder = os.path.dirname(zip_file)
|
|
2912
|
-
|
|
2930
|
+
arguments = ["x"]
|
|
2931
|
+
arguments_for_log = ["x"]
|
|
2913
2932
|
if password_set:
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2933
|
+
arguments.append(f"-p{password}")
|
|
2934
|
+
arguments_for_log.append("-p***")
|
|
2935
|
+
arguments.append(f"-o{output_directory}")
|
|
2936
|
+
arguments.append(file_name)
|
|
2937
|
+
arguments_for_log.append(f"-o{output_directory}")
|
|
2938
|
+
arguments_for_log.append(file_name)
|
|
2939
|
+
return self.run_program_argsasarray(unzip_program_file, arguments, file_folder, arguments_for_log=arguments_for_log)
|
|
2918
2940
|
|
|
2919
2941
|
@GeneralUtilities.check_arguments
|
|
2920
2942
|
def get_internet_time(self) -> datetime:
|
|
@@ -3113,7 +3135,7 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
3113
3135
|
if password is None:
|
|
3114
3136
|
password = GeneralUtilities.generate_password()
|
|
3115
3137
|
GeneralUtilities.ensure_directory_exists(folder)
|
|
3116
|
-
self.
|
|
3138
|
+
self.__run_openssl(['req', '-new', '-newkey', 'ec', '-pkeyopt', 'ec_paramgen_curve:prime256v1', '-days', str(days_until_expire), '-nodes', '-x509', '-subj', f'/C={subj_c}/ST={subj_st}/L={subj_l}/O={subj_o}/CN={name}/OU={subj_ou}', '-passout', f'pass:{password}', '-keyout', f'{name}.key', '-out', f'{name}.crt'], folder)
|
|
3117
3139
|
|
|
3118
3140
|
@GeneralUtilities.check_arguments
|
|
3119
3141
|
def generate_certificate(self, folder: str, domain: str, filename: str, subj_c: str, subj_st: str, subj_l: str, subj_o: str, subj_ou: str, days_until_expire: int = None, password: str = None) -> None:
|
|
@@ -3130,7 +3152,7 @@ resolving a name requires fontconfig, which does not exist on every system ffmpe
|
|
|
3130
3152
|
rsa_key_length = 4096
|
|
3131
3153
|
self.run_program_argsasarray("openssl", ['genrsa', '-out', f'{filename}.key', f'{rsa_key_length}'], folder)
|
|
3132
3154
|
self.run_program_argsasarray("openssl", ['req', '-new', '-subj', f'/C={subj_c}/ST={subj_st}/L={subj_l}/O={subj_o}/CN={domain}/OU={subj_ou}', '-x509', '-key', f'{filename}.key', '-out', f'{filename}.unsigned.crt', '-days', f'{days_until_expire}'], folder)
|
|
3133
|
-
self.
|
|
3155
|
+
self.__run_openssl(['pkcs12', '-export', '-out', f'{filename}.selfsigned.pfx', '-password', f'pass:{password}', '-inkey', f'{filename}.key', '-in', f'{filename}.unsigned.crt'], folder)
|
|
3134
3156
|
GeneralUtilities.write_text_to_file(os.path.join(folder, f"{filename}.password"), password)
|
|
3135
3157
|
GeneralUtilities.write_text_to_file(os.path.join(folder, f"{filename}.san.conf"), f"""[ req ]
|
|
3136
3158
|
default_bits = {rsa_key_length}
|
|
@@ -3167,7 +3189,7 @@ DNS = {domain}
|
|
|
3167
3189
|
password_file = os.path.join(folder, f"{filename}.password")
|
|
3168
3190
|
password = GeneralUtilities.read_text_from_file(password_file)
|
|
3169
3191
|
self.run_program_argsasarray("openssl", ['x509', '-req', '-in', f'{filename}.csr', '-CA', f'{ca}.crt', '-CAkey', f'{ca}.key', '-CAcreateserial', '-CAserial', f'{ca}.srl', '-out', f'{filename}.crt', '-days', str(days_until_expire), '-sha256', '-extensions', 'v3_req', '-extfile', f'{filename}.san.conf'], folder)
|
|
3170
|
-
self.
|
|
3192
|
+
self.__run_openssl(['pkcs12', '-export', '-out', f'{filename}.pfx', f'-inkey', f'{filename}.key', '-in', f'{filename}.crt', '-password', f'pass:{password}'], folder)
|
|
3171
3193
|
|
|
3172
3194
|
@GeneralUtilities.check_arguments
|
|
3173
3195
|
def update_dependencies_of_python_in_requirementstxt_file(self, file: str, ignored_dependencies: list[str]):
|
|
@@ -3384,7 +3406,6 @@ chmod {permission} {link_file}
|
|
|
3384
3406
|
|
|
3385
3407
|
@GeneralUtilities.check_arguments
|
|
3386
3408
|
def generate_arc42_reference_template(self, repository: str, productname: str = None, subfolder: str = None):
|
|
3387
|
-
productname: str = None
|
|
3388
3409
|
if productname is None:
|
|
3389
3410
|
productname = os.path.basename(repository)
|
|
3390
3411
|
if subfolder is None:
|
|
@@ -4450,7 +4471,7 @@ OCR-content:
|
|
|
4450
4471
|
command_with_args = command
|
|
4451
4472
|
if "args" in task:
|
|
4452
4473
|
args = task["args"]
|
|
4453
|
-
if len(args) >
|
|
4474
|
+
if len(args) > 0:
|
|
4454
4475
|
command_with_args = f"{command_with_args} {' '.join(args)}"
|
|
4455
4476
|
|
|
4456
4477
|
description: str =None
|
|
@@ -4787,7 +4808,7 @@ OCR-content:
|
|
|
4787
4808
|
language_files_with_content:dict[str,ET.ElementTree]=dict()
|
|
4788
4809
|
for language_file in language_files_list:
|
|
4789
4810
|
GeneralUtilities.assert_file_exists(language_file)
|
|
4790
|
-
GeneralUtilities.assert_condition(self.is_xliff2_file(language_file), f"The
|
|
4811
|
+
GeneralUtilities.assert_condition(self.is_xliff2_file(language_file), f"The language file '{language_file}' is not a valid XLIFF 2.0 file.")
|
|
4791
4812
|
language_files_with_content[language_file]=ET.parse(language_file)
|
|
4792
4813
|
|
|
4793
4814
|
#sync existing files
|
|
@@ -4933,7 +4954,7 @@ OCR-content:
|
|
|
4933
4954
|
|
|
4934
4955
|
@GeneralUtilities.check_arguments
|
|
4935
4956
|
def write_commit_list_for_repository(self,repository_folder:str,target_file:str,include_all_heads:bool=False) -> None:
|
|
4936
|
-
if os.path.isabs(target_file):
|
|
4957
|
+
if not os.path.isabs(target_file):
|
|
4937
4958
|
target_file=GeneralUtilities.resolve_relative_path(target_file,repository_folder)
|
|
4938
4959
|
target_file=GeneralUtilities.normalize_path(target_file)
|
|
4939
4960
|
commits=self.get_all_commits_in_git_repository(repository_folder, include_all_heads)
|
|
@@ -67,7 +67,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
|
|
|
67
67
|
arguments.append("--store-password-in-clear-text")
|
|
68
68
|
arguments_for_log = list(arguments)
|
|
69
69
|
if package_source.has_credentials():
|
|
70
|
-
arguments_for_log[arguments_for_log.index(
|
|
70
|
+
arguments_for_log[arguments_for_log.index("--password")+1] = "***"#the password must not be written to the build-log
|
|
71
71
|
self._protected_sc.log.log(f"Add NuGet-source \"{package_source.name}\" ({package_source.url})..." if name_of_source_with_same_url is None else f"Update the already registered NuGet-source \"{name_of_source_with_same_url}\" ({package_source.url})...", LogLevel.Debug)
|
|
72
72
|
self._protected_sc.run_program_argsasarray("dotnet", arguments, codeunit_folder, arguments_for_log=arguments_for_log, print_live_output=False, env_vars=self.__dotnet_cli_environment_variables)
|
|
73
73
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import json
|
|
3
3
|
import base64
|
|
4
|
+
import hmac
|
|
4
5
|
import shutil
|
|
5
6
|
import ssl
|
|
6
7
|
import time
|
|
@@ -339,7 +340,7 @@ class SCTaskRunnerServer:
|
|
|
339
340
|
except Exception:
|
|
340
341
|
return False
|
|
341
342
|
expected = f"{outer._SCTaskRunnerServer__username}:{outer._SCTaskRunnerServer__password}"
|
|
342
|
-
return decoded
|
|
343
|
+
return hmac.compare_digest(decoded.encode("utf-8"), expected.encode("utf-8"))
|
|
343
344
|
|
|
344
345
|
def __send(self, status: int, body: bytes, content_type: str = "application/octet-stream") -> None:
|
|
345
346
|
self.__answer_was_begun = True
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import sys
|
|
3
|
+
import tempfile
|
|
4
|
+
from ..GeneralUtilities import GeneralUtilities
|
|
5
|
+
from ..SCLog import LogLevel
|
|
6
|
+
from ..ScriptCollectionCore import ScriptCollectionCore
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class TFCPS_CodeSpellCheck:
|
|
10
|
+
"""Searches for typos in a repository using codespell.
|
|
11
|
+
|
|
12
|
+
codespell does not evaluate ".gitignore", so when it searches a folder recursively it also checks git-ignored content like
|
|
13
|
+
"node_modules", "bin", "obj" or the artifacts-folders of the codeunits, which costs a lot of runtime and only produces findings
|
|
14
|
+
which can not be fixed. Because of that only the files which are not git-ignored are checked.
|
|
15
|
+
A repository can contain a lot of files (for example 100000) and the length of a command-line is limited (on Windows to 32767
|
|
16
|
+
characters), so the files are not passed as command-line-arguments but are written into a file-list which is passed to codespell
|
|
17
|
+
using "@<file-list>" (codespell reads additional arguments from this file, one argument per line). This way codespell is called only once."""
|
|
18
|
+
|
|
19
|
+
sc: ScriptCollectionCore = None
|
|
20
|
+
|
|
21
|
+
codespell_exitcode_for_found_typos: int = 65
|
|
22
|
+
|
|
23
|
+
def __init__(self, sc: ScriptCollectionCore):
|
|
24
|
+
self.sc = sc
|
|
25
|
+
|
|
26
|
+
@GeneralUtilities.check_arguments
|
|
27
|
+
def search_for_typos(self, repository_folder: str) -> list[str]:
|
|
28
|
+
"""Returns the findings of codespell for all files of the repository which are not git-ignored.
|
|
29
|
+
codespell runs in the repository-folder, so an optional "<repository>/.codespellrc" is used automatically.
|
|
30
|
+
Folders (relative to the repository-root, one per line) which should be ignored additionally (for example because they contain
|
|
31
|
+
committed files which should not be checked) can be defined in the optional file "<repository>/.ScriptCollection/CodeSpellIgnore.txt"."""
|
|
32
|
+
files: list[str] = self.get_files_to_check(repository_folder)
|
|
33
|
+
if len(files) == 0:
|
|
34
|
+
return []
|
|
35
|
+
self.sc.log.log(f"Check {len(files)} file(s) using codespell...", LogLevel.Debug)
|
|
36
|
+
(file_descriptor, file_list) = tempfile.mkstemp(prefix="CodeSpellFileList_", suffix=".txt")
|
|
37
|
+
try:
|
|
38
|
+
# codespell reads the file-list using the filesystem-encoding, so it is written using the same encoding.
|
|
39
|
+
with os.fdopen(file_descriptor, "w", encoding=sys.getfilesystemencoding(), errors=sys.getfilesystemencodeerrors(), newline="\n") as file_list_stream:
|
|
40
|
+
file_list_stream.write("\n".join(files) + "\n")
|
|
41
|
+
# "--check-hidden" is required because codespell would skip hidden files (like ".gitignore") otherwise, even if they are passed explicitly.
|
|
42
|
+
arguments: list[str] = ["--check-hidden"] + self.get_skip_arguments(repository_folder) + [f"@{file_list}"]
|
|
43
|
+
(exit_code, stdout, stderr, _) = self.sc.run_program_argsasarray("codespell", arguments, repository_folder, throw_exception_if_exitcode_is_not_zero=False)
|
|
44
|
+
finally:
|
|
45
|
+
GeneralUtilities.ensure_file_does_not_exist(file_list)
|
|
46
|
+
if exit_code not in (0, TFCPS_CodeSpellCheck.codespell_exitcode_for_found_typos):
|
|
47
|
+
raise ValueError(f"codespell failed with exit-code {exit_code}: {stderr}")
|
|
48
|
+
return [line for line in GeneralUtilities.string_to_lines(stdout) if GeneralUtilities.string_has_content(line)]
|
|
49
|
+
|
|
50
|
+
@GeneralUtilities.check_arguments
|
|
51
|
+
def get_files_to_check(self, repository_folder: str) -> list[str]:
|
|
52
|
+
"""Returns the files (relative to the repository-folder and with the prefix "./") which are not git-ignored.
|
|
53
|
+
Hidden files and files inside hidden folders (for example ".github") are included too. Only the content of ".git"-folders is always excluded.
|
|
54
|
+
The prefix "./" is used because the skip-patterns of codespell (for example in ".codespellrc") are usually written in this form.
|
|
55
|
+
Additionally it ensures that no entry of the file-list starts with "-" or "@", so that codespell does not interpret a file as option or as another file-list."""
|
|
56
|
+
result: list[str] = []
|
|
57
|
+
for absolute_path in self.sc.get_not_git_ignored_files_of_folder(repository_folder):
|
|
58
|
+
relative_path: str = os.path.relpath(absolute_path, repository_folder).replace("\\", "/")
|
|
59
|
+
if ".git" in relative_path.split("/"):
|
|
60
|
+
continue
|
|
61
|
+
result.append(f"./{relative_path}")
|
|
62
|
+
return result
|
|
63
|
+
|
|
64
|
+
@GeneralUtilities.check_arguments
|
|
65
|
+
def get_skip_arguments(self, repository_folder: str) -> list[str]:
|
|
66
|
+
"""Returns the "--skip"-argument for codespell based on the optional file "<repository>/.ScriptCollection/CodeSpellIgnore.txt"."""
|
|
67
|
+
ignore_file = os.path.join(repository_folder, ".ScriptCollection", "CodeSpellIgnore.txt")
|
|
68
|
+
if not os.path.isfile(ignore_file):
|
|
69
|
+
return []
|
|
70
|
+
skip_patterns: list[str] = []
|
|
71
|
+
for line in GeneralUtilities.string_to_lines(GeneralUtilities.read_text_from_file(ignore_file)):
|
|
72
|
+
folder = line.strip().replace("\\", "/").strip("/")
|
|
73
|
+
if folder.startswith("./"):
|
|
74
|
+
folder = folder[2:]
|
|
75
|
+
if folder != "" and not folder.startswith("#"):
|
|
76
|
+
skip_patterns.append(f"./{folder}")
|
|
77
|
+
skip_patterns.append(f"./{folder}/*")
|
|
78
|
+
if len(skip_patterns) == 0:
|
|
79
|
+
return []
|
|
80
|
+
return ["--skip=" + ",".join(skip_patterns)]
|
|
@@ -9,6 +9,7 @@ from ..ScriptCollectionCore import ScriptCollectionCore
|
|
|
9
9
|
from ..SCLog import LogLevel
|
|
10
10
|
from .TFCPS_BuildCodeUnitsHook import TFCPS_BuildCodeUnitsHook
|
|
11
11
|
from .TFCPS_CodeUnit_BuildCodeUnit import TFCPS_CodeUnit_BuildCodeUnit
|
|
12
|
+
from .TFCPS_CodeSpellCheck import TFCPS_CodeSpellCheck
|
|
12
13
|
from .TFCPS_OCIImageSecretScan import TFCPS_OCIImageSecretScan
|
|
13
14
|
from .TFCPS_Tools_General import TFCPS_Tools_General
|
|
14
15
|
|
|
@@ -244,29 +245,10 @@ class TFCPS_CodeUnit_BuildCodeUnits:
|
|
|
244
245
|
@GeneralUtilities.check_arguments
|
|
245
246
|
def __do_project_linting_using_codespell(self, repository_folder: str) -> None:
|
|
246
247
|
"""Searches for typos in the repository using codespell. Findings are only reported as warnings and do not let the build fail.
|
|
247
|
-
|
|
248
|
-
define words which are no typos in the context of the repository (option "ignore-words-list").
|
|
249
|
-
Folders (relative to the repository-root, one per line) which should be ignored can be defined in the optional file "<repository>/.ScriptCollection/CodeSpellIgnore.txt"."""
|
|
248
|
+
Only files which are not git-ignored are checked. See TFCPS_CodeSpellCheck for details."""
|
|
250
249
|
try:
|
|
251
250
|
self.sc.log.log("Search for typos using codespell...")
|
|
252
|
-
|
|
253
|
-
ignore_file = os.path.join(repository_folder, ".ScriptCollection", "CodeSpellIgnore.txt")
|
|
254
|
-
if os.path.isfile(ignore_file):
|
|
255
|
-
skip_patterns: list[str] = []
|
|
256
|
-
for line in GeneralUtilities.string_to_lines(GeneralUtilities.read_text_from_file(ignore_file)):
|
|
257
|
-
folder = line.strip().replace("\\", "/").strip("/")
|
|
258
|
-
if folder.startswith("./"):
|
|
259
|
-
folder = folder[2:]
|
|
260
|
-
if folder != "" and not folder.startswith("#"):
|
|
261
|
-
skip_patterns.append(f"./{folder}")
|
|
262
|
-
skip_patterns.append(f"./{folder}/*")
|
|
263
|
-
if 0 < len(skip_patterns):
|
|
264
|
-
arguments.append("--skip=" + ",".join(skip_patterns))
|
|
265
|
-
(exit_code, stdout, stderr, _) = self.sc.run_program_argsasarray("codespell", arguments, repository_folder, throw_exception_if_exitcode_is_not_zero=False)
|
|
266
|
-
codespell_exitcode_for_found_typos: int = 65
|
|
267
|
-
if exit_code not in (0, codespell_exitcode_for_found_typos):
|
|
268
|
-
raise ValueError(f"codespell failed with exit-code {exit_code}: {stderr}")
|
|
269
|
-
findings: list[str] = [line for line in GeneralUtilities.string_to_lines(stdout) if GeneralUtilities.string_has_content(line)]
|
|
251
|
+
findings: list[str] = TFCPS_CodeSpellCheck(self.sc).search_for_typos(repository_folder)
|
|
270
252
|
for finding in findings:
|
|
271
253
|
self.sc.log.log(f"Possible typo: {finding}", LogLevel.Warning)
|
|
272
254
|
if 0 < len(findings):
|
|
@@ -1258,23 +1258,16 @@ class TFCPS_Tools_General:
|
|
|
1258
1258
|
@GeneralUtilities.check_arguments
|
|
1259
1259
|
def do_npm_install(self, package_json_folder: str, npm_force: bool,use_cache:bool) -> None:
|
|
1260
1260
|
"""Installs the npm-dependencies of the package.json in package_json_folder (using epew, which must be available).
|
|
1261
|
-
Side-effects: the package-lock.json is updated and node_modules is recreated; a marker-file ".
|
|
1262
|
-
written into node_modules. If use_cache is set and node_modules was installed for the
|
|
1261
|
+
Side-effects: the package-lock.json is updated and node_modules is recreated; a marker-file ".sc_install_fingerprint" is
|
|
1262
|
+
written into node_modules. If use_cache is set and node_modules was installed before for the same fingerprint (see
|
|
1263
|
+
get_npm_install_fingerprint), nothing is done.
|
|
1263
1264
|
npm_force passes "--force" to every npm-call, which also hides dependency-conflicts instead of reporting them."""
|
|
1264
1265
|
target_folder:str=os.path.join(package_json_folder,"node_modules")
|
|
1265
|
-
|
|
1266
|
-
current_platform:str=f"{sys.platform}-{platform.machine().lower()}"
|
|
1267
|
-
# node_modules holds platform-specific native binaries (esbuild, rollup, lightningcss, swc, ...) which
|
|
1268
|
-
# get installed only for the current host-platform. When node_modules is cached/shared between build-hosts
|
|
1269
|
-
# of different platforms (e.g. a Windows-native build via 'scbuildcodeunits' followed by a build inside a
|
|
1270
|
-
# mounted Linux-container via 'scbuildcodeunitsc') the cached node_modules contains the binaries for the
|
|
1271
|
-
# foreign platform and lacks the ones for the current platform, which breaks the build. Therefore the cache
|
|
1272
|
-
# is only reused when it was installed for exactly the current platform; otherwise a fresh install is forced
|
|
1273
|
-
# so 'npm clean-install' rebuilds node_modules with the binaries matching the current platform.
|
|
1266
|
+
fingerprint_marker_file:str=os.path.join(target_folder,".sc_install_fingerprint")
|
|
1274
1267
|
cache_is_reusable:bool=os.path.isdir(target_folder) \
|
|
1275
1268
|
and not GeneralUtilities.folder_is_empty(target_folder) \
|
|
1276
|
-
and os.path.isfile(
|
|
1277
|
-
and GeneralUtilities.read_text_from_file(
|
|
1269
|
+
and os.path.isfile(fingerprint_marker_file) \
|
|
1270
|
+
and GeneralUtilities.read_text_from_file(fingerprint_marker_file).strip()==self.get_npm_install_fingerprint(package_json_folder)
|
|
1278
1271
|
update:bool=not (use_cache and cache_is_reusable)
|
|
1279
1272
|
if update:
|
|
1280
1273
|
self.__sc.log.log("Do npm-install...")
|
|
@@ -1293,8 +1286,30 @@ class TFCPS_Tools_General:
|
|
|
1293
1286
|
argument3 = f"{argument3} --force"
|
|
1294
1287
|
self.__sc.run_with_epew("npm", argument3, package_json_folder)
|
|
1295
1288
|
|
|
1296
|
-
# 'npm clean-install' recreates node_modules
|
|
1297
|
-
|
|
1289
|
+
# 'npm clean-install' recreates node_modules and the npm-calls above may rewrite package-lock.json,
|
|
1290
|
+
# so the fingerprint-marker must be calculated and written afterwards.
|
|
1291
|
+
GeneralUtilities.write_text_to_file(fingerprint_marker_file, self.get_npm_install_fingerprint(package_json_folder))
|
|
1292
|
+
|
|
1293
|
+
@GeneralUtilities.check_arguments
|
|
1294
|
+
def get_npm_install_fingerprint(self, package_json_folder: str) -> str:
|
|
1295
|
+
"""Returns a value which identifies for which state node_modules in package_json_folder would be installed by do_npm_install.
|
|
1296
|
+
It consists of the current platform and the sha256-hashes of package.json and (if it exists) package-lock.json."""
|
|
1297
|
+
# node_modules holds platform-specific native binaries (esbuild, rollup, lightningcss, swc, ...) which
|
|
1298
|
+
# get installed only for the current host-platform. When node_modules is cached/shared between build-hosts
|
|
1299
|
+
# of different platforms (e.g. a Windows-native build via 'scbuildcodeunits' followed by a build inside a
|
|
1300
|
+
# mounted Linux-container via 'scbuildcodeunitsc') the cached node_modules contains the binaries for the
|
|
1301
|
+
# foreign platform and lacks the ones for the current platform, which breaks the build. Therefore the platform
|
|
1302
|
+
# is part of the fingerprint.
|
|
1303
|
+
# The dependency-files are part of the fingerprint too, because otherwise a cached node_modules would still be
|
|
1304
|
+
# reused after the dependencies were changed (e.g. by an update of a package-version), so the build would run
|
|
1305
|
+
# with the outdated packages of the previous install.
|
|
1306
|
+
current_platform:str=f"{sys.platform}-{platform.machine().lower()}"
|
|
1307
|
+
fingerprint_parts:list[str]=[current_platform]
|
|
1308
|
+
for dependency_file_name in ["package.json","package-lock.json"]:
|
|
1309
|
+
dependency_file:str=os.path.join(package_json_folder,dependency_file_name)
|
|
1310
|
+
if os.path.isfile(dependency_file):
|
|
1311
|
+
fingerprint_parts.append(f"{dependency_file_name}:{GeneralUtilities.get_sha256_of_file(dependency_file)}")
|
|
1312
|
+
return ";".join(fingerprint_parts)
|
|
1298
1313
|
|
|
1299
1314
|
@staticmethod
|
|
1300
1315
|
@GeneralUtilities.check_arguments
|
|
@@ -1720,8 +1735,9 @@ class TFCPS_Tools_General:
|
|
|
1720
1735
|
verbose_argument = GeneralUtilities.empty_string
|
|
1721
1736
|
|
|
1722
1737
|
twine_argument = f"upload{gpg_identity_argument} --repository {repository} --non-interactive {filename} --disable-progress-bar"
|
|
1723
|
-
twine_argument = f"{twine_argument}
|
|
1724
|
-
|
|
1738
|
+
twine_argument = f"{twine_argument}{verbose_argument}"
|
|
1739
|
+
# The credentials are passed as environment-variables and not as arguments, because the arguments are written to the log and to the message of the exception when the upload fails.
|
|
1740
|
+
self.__sc.run_program("twine", twine_argument, folder, throw_exception_if_exitcode_is_not_zero=True, env_vars={"TWINE_USERNAME": "__token__", "TWINE_PASSWORD": api_key})
|
|
1725
1741
|
|
|
1726
1742
|
@GeneralUtilities.check_arguments
|
|
1727
1743
|
def push_nuget_build_artifact(self, push_script_file: str, repository_folder_name: str, codeunitname: str, registry_address: str,api_key: str):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: scriptcollection
|
|
3
|
-
Version: 4.4.
|
|
3
|
+
Version: 4.4.50
|
|
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
|
|
@@ -33,11 +33,11 @@ Requires-Dist: lxml>=6.0.1
|
|
|
33
33
|
Requires-Dist: ntplib>=0.4.0
|
|
34
34
|
Requires-Dist: Pillow>=11.3.0
|
|
35
35
|
Requires-Dist: psutil>=7.2.2
|
|
36
|
-
Requires-Dist: pycdlib>=1.
|
|
36
|
+
Requires-Dist: pycdlib>=1.22.0
|
|
37
37
|
Requires-Dist: Pygments>=2.21.0
|
|
38
38
|
Requires-Dist: pylint>=4.1.2
|
|
39
39
|
Requires-Dist: pyOpenSSL>=25.3.0
|
|
40
|
-
Requires-Dist: PyPDF>=6.
|
|
40
|
+
Requires-Dist: PyPDF>=6.20.0
|
|
41
41
|
Requires-Dist: pytest>=8.4.2
|
|
42
42
|
Requires-Dist: PyYAML>=6.0.3
|
|
43
43
|
Requires-Dist: qrcode>=8.2.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
ScriptCollection/ArbTranslationsOrganizer.py,sha256=3TO4fjkYADcHGyUXdiQk-RtfCxtf9ojuBS3CbZtgXBE,12218
|
|
2
2
|
ScriptCollection/CertificateUpdater.py,sha256=yZc7KESc1F_Mc6HP2UfLmNHRc2MvtVqp0t60J_CqY3s,9755
|
|
3
3
|
ScriptCollection/Executables.py,sha256=YczSDzT4HEV9aTlYGuk6TIjQSwHMsg2MKZ9SVncOfsY,74857
|
|
4
|
-
ScriptCollection/GeneralUtilities.py,sha256=
|
|
4
|
+
ScriptCollection/GeneralUtilities.py,sha256=2Sf7H0cEdhvjY5gmi4QN-isasufHVIb9KltXKfxt7e4,73909
|
|
5
5
|
ScriptCollection/HTTPMaintenanceOverheadHelper.py,sha256=TToNtyO1XzsMbBsTBf3o0xgOK0v4Jf03qw2Z0xb2nCk,2007
|
|
6
|
-
ScriptCollection/ProcessesRunner.py,sha256=
|
|
6
|
+
ScriptCollection/ProcessesRunner.py,sha256=wtNFdmj9klETTIDUSE90vaR5ClEX4V7dgJNVbp9_wi0,1381
|
|
7
7
|
ScriptCollection/ProgramRunnerBase.py,sha256=eZenpiIFW1dhvSVCG7cfBs5hO4_KLlOxR7oXoSxUDmk,2286
|
|
8
8
|
ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrRjAPIwT5Y,37
|
|
9
9
|
ScriptCollection/ProgramRunnerPopen.py,sha256=swRlWMQ3WiAkF3PTerraXU-LAAIdyvKbpW1CrQmee38,6497
|
|
@@ -11,7 +11,7 @@ ScriptCollection/ProgramRunnerSudo.py,sha256=vwKq-MOcqsgiKhSf-MBUDBC_UyaU8evP3Ro
|
|
|
11
11
|
ScriptCollection/RepositoryDiagramGenerator.py,sha256=K_u2NW_p4ozdWD50irJEkkcDVa70TcUJpZN63TeXSLw,7092
|
|
12
12
|
ScriptCollection/RepositoryHistoryAnalyzer.py,sha256=u9141B9D-Kef-9uo3yR7BXKUMzIKLVsesnYk7H-cWm4,6157
|
|
13
13
|
ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
|
|
14
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
|
14
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=iayhPdc1kZFbxs7cAltqP30RdQ_eN0ki3QhPi5B19fU,310633
|
|
15
15
|
ScriptCollection/TestKind.py,sha256=jqLJwNvQeyea7SZf-UFzMC9pM0znv4do7FIC1xq8u9M,1672
|
|
16
16
|
ScriptCollection/UnassignedVariablesCheck.py,sha256=8xNcp1D5HeOLO1a1NEerq2TsnpFhw7yzYPkaay-oisY,3804
|
|
17
17
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -34,11 +34,12 @@ ScriptCollection/TFCPS/NpmDependencies.py,sha256=IfUh9EyrkHxovGRWYagNMZjBUXyKjZ4
|
|
|
34
34
|
ScriptCollection/TFCPS/PackageSource.py,sha256=tQoMbxrIbV3mYHKH2wgOoGzIHY1TvBH8EAFpWGhryrQ,1311
|
|
35
35
|
ScriptCollection/TFCPS/PlantUMLRenderer.py,sha256=upnafiGKV-SdRI8iRBkbbWHN2u6v9KxoswdKi12AwoY,11060
|
|
36
36
|
ScriptCollection/TFCPS/PubDependencies.py,sha256=hl6BfYjzb0-esO-pqyV_sxBLbHBi55GEgUiub3lma_8,9922
|
|
37
|
-
ScriptCollection/TFCPS/SCTaskRunnerServer.py,sha256=
|
|
37
|
+
ScriptCollection/TFCPS/SCTaskRunnerServer.py,sha256=mmtpxrFn36GlW9ZdmEb_oigsQZBqJ85awJb9BOP3tGI,31089
|
|
38
38
|
ScriptCollection/TFCPS/TFCPS_BuildCodeUnitsHook.py,sha256=67_DQwoH5bhxxSmwtuAeoW1NOCMiLMzOy48OqlJX-KY,1744
|
|
39
|
+
ScriptCollection/TFCPS/TFCPS_CodeSpellCheck.py,sha256=zV62O7UiGjewx1yQUIWmUJ9D-5ipkV_f28uNhp-JWUs,5306
|
|
39
40
|
ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=yosafTfbB0LBMKomZvLnFJpgJpJOMHsGKLirVjG1slk,40501
|
|
40
41
|
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=Mj9t1SyRpkYZE74cLsGWYv4xB89gXL2ld-RX3xvvGdw,9835
|
|
41
|
-
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=
|
|
42
|
+
ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=SOuLgq2hnz78Hy2rQF2xH6oDShnqLUitiviblh579w8,56321
|
|
42
43
|
ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=BVK3fpEyjcXYVHIb6YYLH7bWe6iKRaCtPrJ3tXAemYw,6582
|
|
43
44
|
ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=mRBcf7XuNWOSXbZYc3NuJow18AMZ30D6Z-BtyNYfNcM,2072
|
|
44
45
|
ScriptCollection/TFCPS/TFCPS_MergeToMain.py,sha256=Krt5oyGNcRAN3szsgU7LoTh8yVTOdHW-Kq7R9MDDV-Q,7673
|
|
@@ -46,7 +47,7 @@ ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=oYEhz5ZWMnbu97_CcYEqdDxakUF
|
|
|
46
47
|
ScriptCollection/TFCPS/TFCPS_OCIImageSecretScan.py,sha256=Jb7AaMcJDW-gYEYBUVZAG3QLTTNWmXlvVEW-lZsykws,14821
|
|
47
48
|
ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=XLVsFTA1jvfDbZ7wYJgIdEByZhF_bYVbA5jkisuvK4k,2322
|
|
48
49
|
ScriptCollection/TFCPS/TFCPS_RemoteBuild.py,sha256=2Tx5HLk1ZftBWDCTiGZdP2QiiGNyWsEuTCSt33dNQjc,23891
|
|
49
|
-
ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=
|
|
50
|
+
ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=SxIgDq1-Z9X7msyJurhHXcZy8vL0Fy60WqkApvP7Xlk,157492
|
|
50
51
|
ScriptCollection/TFCPS/TFCPS_VisualRegressionTests.py,sha256=6_63udxHnPlu_TMk_ftLZTnzriJO8MCxVCVAsweZqHs,37073
|
|
51
52
|
ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
52
53
|
ScriptCollection/TFCPS/CPP/TFCPS_CodeUnitSpecific_CPP.py,sha256=BNZPMjGiWLMBH7QDtP06WEVLMnI38NLX4Dpd13bSbi4,16614
|
|
@@ -56,7 +57,7 @@ ScriptCollection/TFCPS/Docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
|
|
|
56
57
|
ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationBase.py,sha256=bT6Gd5pQpZCw4OQz6HWkPCSn5z__eUUEisABLDSxd0o,200
|
|
57
58
|
ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationGenerate.py,sha256=QyjOfMY22JWCvKjMelHiDWbJiWqotOfebpJpgDUaoO4,237
|
|
58
59
|
ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationNoGenerate.py,sha256=i0zEGehj0sttxjjZtoq2KFSKp_ulxVyWp_ZgAhIY_So,241
|
|
59
|
-
ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=
|
|
60
|
+
ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=hvSQVK59u9dL4mqvPrAq1Z_f0NsUIBLIfR267xdZixU,63158
|
|
60
61
|
ScriptCollection/TFCPS/DotNet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
62
|
ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=4z6Az3I_qhd-l7EGFYiBllKZUWD3HppZpwurNA_u15U,58484
|
|
62
63
|
ScriptCollection/TFCPS/Flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -72,8 +73,8 @@ ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=yyjWPMHQjPLkML
|
|
|
72
73
|
ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
73
74
|
ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=ILVhJHvwG5TvPBBqSvyACYb7W9QnWrJpxKgHu8IQu4g,9249
|
|
74
75
|
ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
75
|
-
scriptcollection-4.4.
|
|
76
|
-
scriptcollection-4.4.
|
|
77
|
-
scriptcollection-4.4.
|
|
78
|
-
scriptcollection-4.4.
|
|
79
|
-
scriptcollection-4.4.
|
|
76
|
+
scriptcollection-4.4.50.dist-info/METADATA,sha256=knE2pvG3kh25Xioq9FaXbtdFH0lS8Lrce8cf-XZIlBE,8032
|
|
77
|
+
scriptcollection-4.4.50.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
78
|
+
scriptcollection-4.4.50.dist-info/entry_points.txt,sha256=1nA5gUD0Y9L105JGIfTnnqDZhFjzKcFpFaUSrLn-Sw0,5991
|
|
79
|
+
scriptcollection-4.4.50.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
80
|
+
scriptcollection-4.4.50.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|