ScriptCollection 3.5.65__py3-none-any.whl → 3.5.66__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/ScriptCollectionCore.py +1 -1
- ScriptCollection/TasksForCommonProjectStructure.py +16 -13
- {ScriptCollection-3.5.65.dist-info → ScriptCollection-3.5.66.dist-info}/METADATA +1 -1
- {ScriptCollection-3.5.65.dist-info → ScriptCollection-3.5.66.dist-info}/RECORD +7 -7
- {ScriptCollection-3.5.65.dist-info → ScriptCollection-3.5.66.dist-info}/WHEEL +0 -0
- {ScriptCollection-3.5.65.dist-info → ScriptCollection-3.5.66.dist-info}/entry_points.txt +0 -0
- {ScriptCollection-3.5.65.dist-info → ScriptCollection-3.5.66.dist-info}/top_level.txt +0 -0
|
@@ -1019,7 +1019,7 @@ class TasksForCommonProjectStructure:
|
|
|
1019
1019
|
target_folder_base = os.path.join(information.artifacts_folder, information.projectname, project_version)
|
|
1020
1020
|
GeneralUtilities.ensure_directory_exists(target_folder_base)
|
|
1021
1021
|
|
|
1022
|
-
self.build_codeunits(information.repository, information.verbosity, information.target_environmenttype_for_productive, information.additional_arguments_file, False, information.export_target, [], True)
|
|
1022
|
+
self.build_codeunits(information.repository, information.verbosity, information.target_environmenttype_for_productive, information.additional_arguments_file, False, information.export_target, [], True, "Productive build")
|
|
1023
1023
|
|
|
1024
1024
|
reference_folder = os.path.join(information.reference_repository, "ReferenceContent")
|
|
1025
1025
|
|
|
@@ -1251,7 +1251,7 @@ class TasksForCommonProjectStructure:
|
|
|
1251
1251
|
raise ValueError(f"Can not merge because the source-branch and the target-branch are on the same commit (commit-id: {src_branch_commit_id})")
|
|
1252
1252
|
|
|
1253
1253
|
self.__sc.git_checkout(repository_folder, source_branch)
|
|
1254
|
-
self.build_codeunits(repository_folder, verbosity, TasksForCommonProjectStructure.get_qualitycheck_environment_name(), additional_arguments_file, True, None, [], True)
|
|
1254
|
+
self.build_codeunits(repository_folder, verbosity, TasksForCommonProjectStructure.get_qualitycheck_environment_name(), additional_arguments_file, True, None, [], True, "Check if product is buildable")
|
|
1255
1255
|
self.__sc.git_merge(repository_folder, source_branch, target_branch, False, False, None)
|
|
1256
1256
|
self.__sc.git_commit(repository_folder, f'Merge branch {source_branch} into {target_branch}', stage_all_changes=True, no_changes_behavior=1)
|
|
1257
1257
|
self.__sc.git_checkout(repository_folder, target_branch)
|
|
@@ -1312,7 +1312,7 @@ class TasksForCommonProjectStructure:
|
|
|
1312
1312
|
self.__sc.run_program("git", "clean -dfx", information.repository, verbosity=information.verbosity, throw_exception_if_exitcode_is_not_zero=True)
|
|
1313
1313
|
project_version = self.__sc.get_semver_version_from_gitversion(information.repository)
|
|
1314
1314
|
|
|
1315
|
-
self.build_codeunits(information.repository, information.verbosity, information.target_environmenttype_for_qualitycheck, information.additional_arguments_file, False, information.export_target, [], True)
|
|
1315
|
+
self.build_codeunits(information.repository, information.verbosity, information.target_environmenttype_for_qualitycheck, information.additional_arguments_file, False, information.export_target, [], True, "Productive build")
|
|
1316
1316
|
|
|
1317
1317
|
self.assert_no_uncommitted_changes(information.repository)
|
|
1318
1318
|
|
|
@@ -2430,7 +2430,7 @@ class TasksForCommonProjectStructure:
|
|
|
2430
2430
|
self.__sc.run_program("docker", f"run --volume {repository_folder}:/Workspace/Repository " + f"-e repositoryfolder=/Workspace/Repository -e verbosity={verbosity} -e targetenvironment={target_environmenttype} {image}", repository_folder)
|
|
2431
2431
|
|
|
2432
2432
|
@GeneralUtilities.check_arguments
|
|
2433
|
-
def build_codeunits(self, repository_folder: str, verbosity: int = 1, target_environmenttype: str = "QualityCheck", additional_arguments_file: str = None, is_pre_merge: bool = False, export_target_directory: str = None, commandline_arguments: list[str] = [], do_git_clean_when_no_changes: bool = False) -> None:
|
|
2433
|
+
def build_codeunits(self, repository_folder: str, verbosity: int = 1, target_environmenttype: str = "QualityCheck", additional_arguments_file: str = None, is_pre_merge: bool = False, export_target_directory: str = None, commandline_arguments: list[str] = [], do_git_clean_when_no_changes: bool = False, note: str = None) -> None:
|
|
2434
2434
|
self.__check_target_environmenttype(target_environmenttype)
|
|
2435
2435
|
self.__sc.assert_is_git_repository(repository_folder)
|
|
2436
2436
|
repository_folder = GeneralUtilities.resolve_relative_path_from_current_working_directory(repository_folder)
|
|
@@ -2438,10 +2438,11 @@ class TasksForCommonProjectStructure:
|
|
|
2438
2438
|
self.build_specific_codeunits(repository_folder, codeunits, verbosity, target_environmenttype, additional_arguments_file, is_pre_merge, export_target_directory, False, commandline_arguments, do_git_clean_when_no_changes)
|
|
2439
2439
|
|
|
2440
2440
|
@GeneralUtilities.check_arguments
|
|
2441
|
-
def build_specific_codeunits(self, repository_folder: str, codeunits: list[str], verbosity: int = 1, target_environmenttype: str = "QualityCheck", additional_arguments_file: str = None, is_pre_merge: bool = False, export_target_directory: str = None, assume_dependent_codeunits_are_already_built: bool = True, commandline_arguments: list[str] = [], do_git_clean_when_no_changes: bool = False) -> None:
|
|
2441
|
+
def build_specific_codeunits(self, repository_folder: str, codeunits: list[str], verbosity: int = 1, target_environmenttype: str = "QualityCheck", additional_arguments_file: str = None, is_pre_merge: bool = False, export_target_directory: str = None, assume_dependent_codeunits_are_already_built: bool = True, commandline_arguments: list[str] = [], do_git_clean_when_no_changes: bool = False, note: str = None) -> None:
|
|
2442
2442
|
self.__sc.assert_is_git_repository(repository_folder)
|
|
2443
2443
|
self.__check_target_environmenttype(target_environmenttype)
|
|
2444
2444
|
repository_folder = GeneralUtilities.resolve_relative_path_from_current_working_directory(repository_folder)
|
|
2445
|
+
repository_name = os.path.dirname(repository_folder)
|
|
2445
2446
|
contains_uncommitted_changes_at_begin = self.__sc.git_repository_has_uncommitted_changes(repository_folder)
|
|
2446
2447
|
if contains_uncommitted_changes_at_begin:
|
|
2447
2448
|
if is_pre_merge:
|
|
@@ -2470,6 +2471,11 @@ class TasksForCommonProjectStructure:
|
|
|
2470
2471
|
project_version = self.get_version_of_project(repository_folder)
|
|
2471
2472
|
|
|
2472
2473
|
now = datetime.now()
|
|
2474
|
+
message = f"Build codeunits in product {repository_name}..."
|
|
2475
|
+
if note is not None:
|
|
2476
|
+
message = f"{message} ({note})"
|
|
2477
|
+
GeneralUtilities.write_message_to_stdout(message)
|
|
2478
|
+
|
|
2473
2479
|
if not self.__suport_information_exists(repository_folder, project_version):
|
|
2474
2480
|
support_time = timedelta(days=365*2+30*3+1) # TODO make this configurable
|
|
2475
2481
|
until = now + support_time
|
|
@@ -2871,9 +2877,8 @@ class TasksForCommonProjectStructure:
|
|
|
2871
2877
|
# Prepare
|
|
2872
2878
|
self.__sc.assert_is_git_repository(repository_folder)
|
|
2873
2879
|
codeunits = self.get_codeunits(repository_folder)
|
|
2874
|
-
updated_dependencies = False
|
|
2875
2880
|
update_dependencies_script_filename = "UpdateDependencies.py"
|
|
2876
|
-
self.build_codeunits(repository_folder, target_environmenttype="QualityCheck", do_git_clean_when_no_changes=True) # Required because update dependencies is not always possible for not-buildet codeunits (depends on the programming language or package manager)
|
|
2881
|
+
self.build_codeunits(repository_folder, target_environmenttype="QualityCheck", do_git_clean_when_no_changes=True, note="Prepare dependency-update") # Required because update dependencies is not always possible for not-buildet codeunits (depends on the programming language or package manager)
|
|
2877
2882
|
|
|
2878
2883
|
# update dependencies of resources
|
|
2879
2884
|
global_scripts_folder = os.path.join(repository_folder, "Other", "Scripts")
|
|
@@ -2890,7 +2895,6 @@ class TasksForCommonProjectStructure:
|
|
|
2890
2895
|
GeneralUtilities.ensure_directory_exists(os.path.join(update_dependencies_script_folder, "Resources", "CodeAnalysisResult"))
|
|
2891
2896
|
self.__sc.run_program("python", update_dependencies_script_filename, update_dependencies_script_folder, verbosity)
|
|
2892
2897
|
if self.__sc.git_repository_has_uncommitted_changes(repository_folder):
|
|
2893
|
-
updated_dependencies = True
|
|
2894
2898
|
version_of_project = self.get_version_of_project(repository_folder)
|
|
2895
2899
|
changelog_file = os.path.join(repository_folder, "Other", "Resources", "Changelog", f"v{version_of_project}.md")
|
|
2896
2900
|
if not os.path.isfile(changelog_file):
|
|
@@ -2903,9 +2907,8 @@ class TasksForCommonProjectStructure:
|
|
|
2903
2907
|
GeneralUtilities.write_message_to_stdout(f"Updated dependencies in codeunit {codeunit}.")
|
|
2904
2908
|
else:
|
|
2905
2909
|
GeneralUtilities.write_message_to_stdout(f"There are no dependencies to update in codeunit {codeunit}.")
|
|
2906
|
-
if
|
|
2907
|
-
|
|
2908
|
-
self.__sc.git_commit(repository_folder, "Updated dependencies")
|
|
2910
|
+
self.build_codeunits(repository_folder, target_environmenttype="QualityCheck", do_git_clean_when_no_changes=True, note="Check if product is buildable after dependency-update")
|
|
2911
|
+
self.__sc.git_commit(repository_folder, "Updated dependencies")
|
|
2909
2912
|
|
|
2910
2913
|
class GenericPrepareNewReleaseArguments:
|
|
2911
2914
|
current_file: str
|
|
@@ -2932,8 +2935,8 @@ class TasksForCommonProjectStructure:
|
|
|
2932
2935
|
self.__sc.assert_is_git_repository(reference_folder)
|
|
2933
2936
|
verbosity: int = TasksForCommonProjectStructure.get_verbosity_from_commandline_arguments(generic_prepare_new_release_arguments.commandline_arguments, 1)
|
|
2934
2937
|
|
|
2935
|
-
merge_source_branch = "other/next-release" #
|
|
2936
|
-
main_branch = "main" #
|
|
2938
|
+
merge_source_branch = "other/next-release" # maybe this should be configurable
|
|
2939
|
+
main_branch = "main" # maybe this should be configurable
|
|
2937
2940
|
|
|
2938
2941
|
# prepare
|
|
2939
2942
|
self.assert_no_uncommitted_changes(repository_folder)
|
|
@@ -5,12 +5,12 @@ ScriptCollection/ProgramRunnerBase.py,sha256=2kMIAqdc65UjBAddOZkzy_aFx9h5roZ5a4b
|
|
|
5
5
|
ScriptCollection/ProgramRunnerEpew.py,sha256=4pjEd0r9Fcz3TTDv0MdTSd5KkigYXcWUVI1X43regfU,6477
|
|
6
6
|
ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
|
|
7
7
|
ScriptCollection/RPStream.py,sha256=NRRHL3YSP3D9MuAV2jB_--0KUKCsvJGxeKnxgrRZ9kY,1545
|
|
8
|
-
ScriptCollection/ScriptCollectionCore.py,sha256=
|
|
9
|
-
ScriptCollection/TasksForCommonProjectStructure.py,sha256=
|
|
8
|
+
ScriptCollection/ScriptCollectionCore.py,sha256=1mOEvi_s9UGBfwWaaBZpbCxj-MaNefvHqrGpNvoX3JA,111855
|
|
9
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=A5L4MujKd7RRHZGdnQtPBYvy7KqjS30wmhPHYU9g2iw,213981
|
|
10
10
|
ScriptCollection/UpdateCertificates.py,sha256=Eynbgu7k9jLxApP2D_8Il77B6BFjJap6K7oTeEAZYbk,7790
|
|
11
11
|
ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
|
-
ScriptCollection-3.5.
|
|
13
|
-
ScriptCollection-3.5.
|
|
14
|
-
ScriptCollection-3.5.
|
|
15
|
-
ScriptCollection-3.5.
|
|
16
|
-
ScriptCollection-3.5.
|
|
12
|
+
ScriptCollection-3.5.66.dist-info/METADATA,sha256=XdmGidFR142BYPXQR4Che0TJchPlG9tct8Vs9iSyJtU,7664
|
|
13
|
+
ScriptCollection-3.5.66.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
14
|
+
ScriptCollection-3.5.66.dist-info/entry_points.txt,sha256=wspYVXWH8kon-wRQTAFEO11JoLJ0fEnOIG7tE7R-xtQ,3502
|
|
15
|
+
ScriptCollection-3.5.66.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
16
|
+
ScriptCollection-3.5.66.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|