ScriptCollection 3.3.73__py3-none-any.whl → 3.3.74__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.
@@ -26,7 +26,7 @@ from .ProgramRunnerPopen import ProgramRunnerPopen
26
26
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
27
27
 
28
28
 
29
- version = "3.3.73"
29
+ version = "3.3.74"
30
30
  __version__ = version
31
31
 
32
32
 
@@ -27,9 +27,11 @@ class CreateReleaseConfiguration():
27
27
  public_repository_url: str
28
28
  additional_arguments_file: str = None
29
29
  artifacts_which_have_artifacts_to_push: list[str] = None
30
+ repository_folder_name: str = None
30
31
 
31
32
  def __init__(self, projectname: str, remotename: str, build_artifacts_target_folder: str, push_artifacts_scripts_folder: str,
32
- verbosity: int, public_repository_url: str, additional_arguments_file: str, artifacts_which_have_artifacts_to_push: list[str]):
33
+ verbosity: int, public_repository_url: str, additional_arguments_file: str, artifacts_which_have_artifacts_to_push: list[str],
34
+ repository_folder_name: str):
33
35
 
34
36
  self.projectname = projectname
35
37
  self.remotename = remotename
@@ -40,6 +42,7 @@ class CreateReleaseConfiguration():
40
42
  self.reference_repository_remote_name = self.remotename
41
43
  self.additional_arguments_file = additional_arguments_file
42
44
  self.artifacts_which_have_artifacts_to_push = artifacts_which_have_artifacts_to_push
45
+ self.repository_folder_name = repository_folder_name
43
46
 
44
47
 
45
48
  class CreateReleaseInformationForProjectInCommonProjectFormat:
@@ -70,7 +73,7 @@ class CreateReleaseInformationForProjectInCommonProjectFormat:
70
73
  projectname = os.path.basename(self.repository)
71
74
  else:
72
75
  self.projectname = projectname
73
- self.reference_repository = GeneralUtilities.resolve_relative_path(f"../{projectname}Reference", repository)
76
+ self.reference_repository = f"{repository}Reference"
74
77
  self.artifacts_which_have_artifacts_to_push = artifacts_which_have_artifacts_to_push
75
78
 
76
79
 
@@ -253,10 +256,10 @@ class TasksForCommonProjectStructure:
253
256
 
254
257
  @GeneralUtilities.check_arguments
255
258
  def push_wheel_build_artifact(self, push_build_artifacts_file, product_name, codeunitname, repository: str,
256
- apikey: str, gpg_identity: str, verbosity: int, commandline_arguments: list[str]) -> None:
259
+ apikey: str, gpg_identity: str, verbosity: int, commandline_arguments: list[str], repository_folder_name: str) -> None:
257
260
  verbosity = TasksForCommonProjectStructure.get_verbosity_from_commandline_arguments(commandline_arguments, verbosity)
258
261
  folder_of_this_file = os.path.dirname(push_build_artifacts_file)
259
- repository_folder = GeneralUtilities.resolve_relative_path(f"..{os.path.sep}../Submodules{os.path.sep}{product_name}", folder_of_this_file)
262
+ repository_folder = GeneralUtilities.resolve_relative_path(f"..{os.path.sep}../Submodules{os.path.sep}{repository_folder_name}", folder_of_this_file)
260
263
  wheel_file = self.get_wheel_file(repository_folder, codeunitname)
261
264
  self.standardized_tasks_push_wheel_file_to_registry(wheel_file, apikey, repository, gpg_identity, verbosity)
262
265
 
@@ -896,10 +899,10 @@ class TasksForCommonProjectStructure:
896
899
  GeneralUtilities.write_text_to_file(reference_index_file, reference_index_file_content)
897
900
 
898
901
  @GeneralUtilities.check_arguments
899
- def push_nuget_build_artifact(self, push_script_file: str, codeunitname: str, registry_address: str, api_key: str):
902
+ def push_nuget_build_artifact(self, push_script_file: str, codeunitname: str, registry_address: str, api_key: str, repository_folder_name: str):
900
903
  # when pusing to "default public" nuget-server then use registry_address: "nuget.org"
901
904
  build_artifact_folder = GeneralUtilities.resolve_relative_path(
902
- f"../../Submodules/{codeunitname}/{codeunitname}/Other/Artifacts/BuildResult_NuGet", os.path.dirname(push_script_file))
905
+ f"../../Submodules/{repository_folder_name}/{codeunitname}/Other/Artifacts/BuildResult_NuGet", os.path.dirname(push_script_file))
903
906
  self.__sc.push_nuget_build_artifact(self.__sc.find_file_by_extension(build_artifact_folder, "nupkg"),
904
907
  registry_address, api_key)
905
908
 
@@ -942,7 +945,7 @@ class TasksForCommonProjectStructure:
942
945
 
943
946
  self.__sc.git_checkout(build_repository_folder, createRelease_configuration.build_repository_branch)
944
947
 
945
- repository_folder = GeneralUtilities.resolve_relative_path(f"Submodules{os.path.sep}{createRelease_configuration.projectname}", build_repository_folder)
948
+ repository_folder = GeneralUtilities.resolve_relative_path(f"Submodules{os.path.sep}{createRelease_configuration.repository_folder_name}", build_repository_folder)
946
949
  mergeInformation = MergeToStableBranchInformationForProjectInCommonProjectFormat(repository_folder,
947
950
  createRelease_configuration.additional_arguments_file,
948
951
  createRelease_configuration.artifacts_folder)
@@ -1060,10 +1063,10 @@ class TasksForCommonProjectStructure:
1060
1063
 
1061
1064
  @GeneralUtilities.check_arguments
1062
1065
  def push_docker_build_artifact(self, push_artifacts_file: str, registry: str, product_name: str, codeunitname: str,
1063
- verbosity: int, push_readme: bool, commandline_arguments: list[str]):
1066
+ verbosity: int, push_readme: bool, commandline_arguments: list[str], repository_folder_name: str):
1064
1067
  folder_of_this_file = os.path.dirname(push_artifacts_file)
1065
1068
  verbosity = TasksForCommonProjectStructure.get_verbosity_from_commandline_arguments(commandline_arguments, verbosity)
1066
- repository_folder = GeneralUtilities.resolve_relative_path(f"..{os.path.sep}..{os.path.sep}Submodules{os.path.sep}{product_name}", folder_of_this_file)
1069
+ repository_folder = GeneralUtilities.resolve_relative_path(f"..{os.path.sep}..{os.path.sep}Submodules{os.path.sep}{repository_folder_name}", folder_of_this_file)
1067
1070
  codeunit_folder = os.path.join(repository_folder, codeunitname)
1068
1071
  artifacts_folder = self.get_artifacts_folder(repository_folder, codeunitname)
1069
1072
  applicationimage_folder = os.path.join(artifacts_folder, "BuildResult_OCIImage")
@@ -1351,16 +1354,15 @@ class TasksForCommonProjectStructure:
1351
1354
  GeneralUtilities.write_text_to_file(os.path.join(constants_valuefile_folder, constants_valuefile_name), constant_value)
1352
1355
 
1353
1356
  @GeneralUtilities.check_arguments
1354
- def generate_openapi_file(self, buildscript_file: str, runtime: str, swagger_document_name: str,
1355
- verbosity: int, commandline_arguments: list[str]) -> None:
1357
+ def generate_openapi_file(self, buildscript_file: str, runtime: str, verbosity: int, commandline_arguments: list[str],
1358
+ swagger_document_name: str = "APISpecification") -> None:
1356
1359
  codeunitname = os.path.basename(str(Path(os.path.dirname(buildscript_file)).parent.parent.absolute()))
1357
1360
  repository_folder = str(Path(os.path.dirname(buildscript_file)).parent.parent.parent.absolute())
1358
1361
  artifacts_folder = os.path.join(repository_folder, codeunitname, "Other", "Artifacts")
1359
1362
  GeneralUtilities.ensure_directory_exists(os.path.join(artifacts_folder, "APISpecification"))
1360
- verbosity = TasksForCommonProjectStructure.get_verbosity_from_commandline_arguments(commandline_arguments, verbosity)
1363
+ verbosity = self.get_verbosity_from_commandline_arguments(commandline_arguments, verbosity)
1361
1364
  version = self.get_version_of_codeunit_folder(os.path.join(repository_folder, codeunitname))
1362
- self.__sc.run_program("swagger",
1363
- f"tofile --output APISpecification\\{codeunitname}.v{version}.api.json" +
1365
+ self.__sc.run_program("swagger", f"tofile --output APISpecification\\{codeunitname}.v{version}.api.json" +
1364
1366
  f" BuildResult_DotNet_{runtime}\\{codeunitname}.dll {swagger_document_name}",
1365
1367
  artifacts_folder, verbosity=verbosity)
1366
1368
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ScriptCollection
3
- Version: 3.3.73
3
+ Version: 3.3.74
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Home-page: https://github.com/anionDev/ScriptCollection
6
6
  Author: Marius Göcke
@@ -3,12 +3,12 @@ ScriptCollection/GeneralUtilities.py,sha256=Blo0Iq-G4zuUL5oUxBTeGFtQ23ndK7dpZPOj
3
3
  ScriptCollection/ProgramRunnerBase.py,sha256=2kyOuoM3oFjBfLc9Q5t5RTz7Ya2CjUxFtB1rBBDmnjU,1937
4
4
  ScriptCollection/ProgramRunnerEpew.py,sha256=ZiBZVMcsphmo49z2BwUwQYXo2uTKXPu33QW3IxCT46E,6273
5
5
  ScriptCollection/ProgramRunnerPopen.py,sha256=HOs1QVnXiQtwXy1_xvH79bWBdd0i-2tUyyLloQBvMto,3023
6
- ScriptCollection/ScriptCollectionCore.py,sha256=u9kOoLBJtYTa01gLJwphC-Yi_caDuwwhhiqAw5Tgk4o,86796
7
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=RnsnENUoJ2hVInKv9nEc3o_zDivDFFt4aykjfdQUTzM,118349
6
+ ScriptCollection/ScriptCollectionCore.py,sha256=STnbdeyyo8d-hc5qqkX4qGWDit6AK-fp7rVGtZSJw2k,86796
7
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=yn2reLjaNyMtV6f37dwTBXuIYnO37Zfu059EdstsOMM,118534
8
8
  ScriptCollection/UpdateCertificates.py,sha256=Go-JJK-YTi7aBB1phlLxypa8GHkmFHBEPB0_TT9G-bw,7918
9
9
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
10
- ScriptCollection-3.3.73.dist-info/METADATA,sha256=n-W08sBfp-dGc906XQcPoZAPLGvuccriOX1arQjm8GM,7878
11
- ScriptCollection-3.3.73.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
12
- ScriptCollection-3.3.73.dist-info/entry_points.txt,sha256=VIuxVCOpX38lSJUwRRENBNgcGKTIBxQyrCfbJVRHP8g,1968
13
- ScriptCollection-3.3.73.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
14
- ScriptCollection-3.3.73.dist-info/RECORD,,
10
+ ScriptCollection-3.3.74.dist-info/METADATA,sha256=73D1BAzKZnroByQrqwadaow6mrTeyX1vGsYIZQt7vLk,7878
11
+ ScriptCollection-3.3.74.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
12
+ ScriptCollection-3.3.74.dist-info/entry_points.txt,sha256=VIuxVCOpX38lSJUwRRENBNgcGKTIBxQyrCfbJVRHP8g,1968
13
+ ScriptCollection-3.3.74.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
14
+ ScriptCollection-3.3.74.dist-info/RECORD,,