ScriptCollection 3.5.90__py3-none-any.whl → 3.5.92__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 +6 -3
- ScriptCollection/TasksForCommonProjectStructure.py +6 -6
- {scriptcollection-3.5.90.dist-info → scriptcollection-3.5.92.dist-info}/METADATA +1 -1
- {scriptcollection-3.5.90.dist-info → scriptcollection-3.5.92.dist-info}/RECORD +7 -7
- {scriptcollection-3.5.90.dist-info → scriptcollection-3.5.92.dist-info}/WHEEL +0 -0
- {scriptcollection-3.5.90.dist-info → scriptcollection-3.5.92.dist-info}/entry_points.txt +0 -0
- {scriptcollection-3.5.90.dist-info → scriptcollection-3.5.92.dist-info}/top_level.txt +0 -0
@@ -32,7 +32,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
|
|
32
32
|
from .ProgramRunnerPopen import ProgramRunnerPopen
|
33
33
|
from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
|
34
34
|
|
35
|
-
version = "3.5.
|
35
|
+
version = "3.5.92"
|
36
36
|
__version__ = version
|
37
37
|
|
38
38
|
|
@@ -112,10 +112,13 @@ class ScriptCollectionCore:
|
|
112
112
|
raise ValueError(f"Version '{current_version}' does not match version-regex '{versiononlyregex}'")
|
113
113
|
|
114
114
|
@GeneralUtilities.check_arguments
|
115
|
-
def push_nuget_build_artifact(self, nupkg_file: str, registry_address: str, api_key: str, verbosity: int = 1):
|
115
|
+
def push_nuget_build_artifact(self, nupkg_file: str, registry_address: str, api_key: str = None, verbosity: int = 1):
|
116
116
|
nupkg_file_name = os.path.basename(nupkg_file)
|
117
117
|
nupkg_file_folder = os.path.dirname(nupkg_file)
|
118
|
-
|
118
|
+
argument = f"nuget push {nupkg_file_name} --force-english-output --source {registry_address}"
|
119
|
+
if api_key is not None:
|
120
|
+
argument = f"{argument} --api-key {api_key}"
|
121
|
+
self.run_program("dotnet", argument, nupkg_file_folder, verbosity)
|
119
122
|
|
120
123
|
@GeneralUtilities.check_arguments
|
121
124
|
def dotnet_build(self, folder: str, projectname: str, configuration: str):
|
@@ -1121,7 +1121,7 @@ class TasksForCommonProjectStructure:
|
|
1121
1121
|
GeneralUtilities.write_text_to_file(reference_index_file, reference_index_file_content)
|
1122
1122
|
|
1123
1123
|
@GeneralUtilities.check_arguments
|
1124
|
-
def push_nuget_build_artifact(self, push_script_file: str, codeunitname: str, registry_address: str,
|
1124
|
+
def push_nuget_build_artifact(self, push_script_file: str, codeunitname: str, registry_address: str, repository_folder_name: str, api_key: str):
|
1125
1125
|
# when pusing to "default public" nuget-server then use registry_address: "nuget.org"
|
1126
1126
|
build_artifact_folder = GeneralUtilities.resolve_relative_path(f"../../Submodules/{repository_folder_name}/{codeunitname}/Other/Artifacts/BuildResult_NuGet", os.path.dirname(push_script_file))
|
1127
1127
|
self.__sc.push_nuget_build_artifact(self.__sc.find_file_by_extension(build_artifact_folder, "nupkg"), registry_address, api_key)
|
@@ -1291,9 +1291,9 @@ class TasksForCommonProjectStructure:
|
|
1291
1291
|
|
1292
1292
|
self.__standardized_tasks_release_artifact(createReleaseInformation)
|
1293
1293
|
|
1294
|
+
GeneralUtilities.assert_condition(createRelease_configuration.reference_repository_remote_name is not None, "Remote for reference-repository not set.")
|
1294
1295
|
self.__sc.git_commit(createReleaseInformation.reference_repository, f"Added reference of {createRelease_configuration.projectname} v{new_project_version}")
|
1295
|
-
|
1296
|
-
self.__sc.git_push_with_retry(createReleaseInformation.reference_repository, createRelease_configuration.reference_repository_remote_name, createRelease_configuration.reference_repository_branch_name, createRelease_configuration.reference_repository_branch_name, verbosity=createRelease_configuration.verbosity)
|
1296
|
+
self.__sc.git_push_with_retry(createReleaseInformation.reference_repository, createRelease_configuration.reference_repository_remote_name, createRelease_configuration.reference_repository_branch_name, createRelease_configuration.reference_repository_branch_name, verbosity=createRelease_configuration.verbosity)
|
1297
1297
|
self.__sc.git_commit(build_repository_folder, f"Added {createRelease_configuration.projectname} release v{new_project_version}")
|
1298
1298
|
GeneralUtilities.write_message_to_stdout(f"Finished release for project {createRelease_configuration.projectname} v{new_project_version} successfully.")
|
1299
1299
|
return new_project_version
|
@@ -3065,8 +3065,8 @@ class TasksForCommonProjectStructure:
|
|
3065
3065
|
GeneralUtilities.ensure_file_exists(random_file)
|
3066
3066
|
current_version = self.get_version_of_project(repositoryfolder)
|
3067
3067
|
changelog_file = os.path.join(repositoryfolder, "Other", "Resources", "Changelog", f"v{current_version}.md")
|
3068
|
-
if os.path.
|
3069
|
-
|
3068
|
+
if os.path.isfile(changelog_file):
|
3069
|
+
GeneralUtilities.write_message_to_stdout(f"Changelog-file '{changelog_file}' already exists.")
|
3070
3070
|
else:
|
3071
3071
|
GeneralUtilities.ensure_file_exists(changelog_file)
|
3072
3072
|
GeneralUtilities.write_text_to_file(changelog_file, f"""# Release notes
|
@@ -3092,7 +3092,7 @@ class TasksForCommonProjectStructure:
|
|
3092
3092
|
target = os.path.join(ref_repo, "Reference", update_http_documentation_arguments.product_name)
|
3093
3093
|
GeneralUtilities.ensure_directory_does_not_exist(target)
|
3094
3094
|
shutil.copytree(GeneralUtilities.resolve_relative_path(f"../../Submodules/{update_http_documentation_arguments.product_name}Reference/ReferenceContent", folder_of_this_file), target)
|
3095
|
-
self.__sc.git_commit(ref_repo, f"
|
3095
|
+
self.__sc.git_commit(ref_repo, f"Added reference of {update_http_documentation_arguments.product_name} v{update_http_documentation_arguments.new_project_version}")
|
3096
3096
|
|
3097
3097
|
# Sync reference-repository
|
3098
3098
|
self.__sc.git_fetch(ref_repo, update_http_documentation_arguments.common_remote_name)
|
@@ -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=Qyo5uuSsVQIbwWxqGgyfetyVrZ2KO1yg_PlICIavTto,123626
|
9
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=YWHvLc91WuCrmay9qqf43onRhYy94nbd1sKLiBfNrZ4,217137
|
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.92.dist-info/METADATA,sha256=lsBwVdHT7ePQ2yjnuj-kq7uX7NVvVniSWodbiPdMJzs,7664
|
13
|
+
scriptcollection-3.5.92.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
|
14
|
+
scriptcollection-3.5.92.dist-info/entry_points.txt,sha256=1jAL5AuB8mvdw2v-6E7wCZFThurQxchiQynL8DCi-Yg,3545
|
15
|
+
scriptcollection-3.5.92.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
16
|
+
scriptcollection-3.5.92.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|