ScriptCollection 3.5.54__py3-none-any.whl → 3.5.56__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 +5 -5
- ScriptCollection/TasksForCommonProjectStructure.py +36 -35
- {ScriptCollection-3.5.54.dist-info → ScriptCollection-3.5.56.dist-info}/METADATA +1 -1
- {ScriptCollection-3.5.54.dist-info → ScriptCollection-3.5.56.dist-info}/RECORD +7 -7
- {ScriptCollection-3.5.54.dist-info → ScriptCollection-3.5.56.dist-info}/WHEEL +0 -0
- {ScriptCollection-3.5.54.dist-info → ScriptCollection-3.5.56.dist-info}/entry_points.txt +0 -0
- {ScriptCollection-3.5.54.dist-info → ScriptCollection-3.5.56.dist-info}/top_level.txt +0 -0
|
@@ -31,7 +31,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
|
|
|
31
31
|
from .ProgramRunnerPopen import ProgramRunnerPopen
|
|
32
32
|
from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
|
|
33
33
|
|
|
34
|
-
version = "3.5.
|
|
34
|
+
version = "3.5.56"
|
|
35
35
|
__version__ = version
|
|
36
36
|
|
|
37
37
|
|
|
@@ -612,9 +612,9 @@ class ScriptCollectionCore:
|
|
|
612
612
|
@GeneralUtilities.check_arguments
|
|
613
613
|
def is_file(self, path: str) -> bool:
|
|
614
614
|
if self.program_runner.will_be_executed_locally():
|
|
615
|
-
return os.path.isfile(path) # much more performant than always running an external program
|
|
615
|
+
return os.path.isfile(path) # works only locally, but much more performant than always running an external program
|
|
616
616
|
else:
|
|
617
|
-
exit_code, _, stderr = self.
|
|
617
|
+
exit_code, _, stderr = self.run_program_argsasarray("scfileexists", ["--path", path], throw_exception_if_exitcode_is_not_zero=False) # works platform-indepent
|
|
618
618
|
if exit_code == 0:
|
|
619
619
|
return True
|
|
620
620
|
elif exit_code == 1:
|
|
@@ -625,10 +625,10 @@ class ScriptCollectionCore:
|
|
|
625
625
|
|
|
626
626
|
@GeneralUtilities.check_arguments
|
|
627
627
|
def is_folder(self, path: str) -> bool:
|
|
628
|
-
if self.program_runner.will_be_executed_locally(): # much more performant than always running an external program
|
|
628
|
+
if self.program_runner.will_be_executed_locally(): # works only locally, but much more performant than always running an external program
|
|
629
629
|
return os.path.isdir(path)
|
|
630
630
|
else:
|
|
631
|
-
exit_code, _, stderr = self.
|
|
631
|
+
exit_code, _, stderr = self.run_program_argsasarray("scfolderexists", ["--path", path], throw_exception_if_exitcode_is_not_zero=False) # works platform-indepent
|
|
632
632
|
if exit_code == 0:
|
|
633
633
|
return True
|
|
634
634
|
elif exit_code == 1:
|
|
@@ -35,11 +35,10 @@ class CreateReleaseConfiguration():
|
|
|
35
35
|
public_repository_url: str
|
|
36
36
|
additional_arguments_file: str = None
|
|
37
37
|
repository_folder_name: str = None
|
|
38
|
+
repository_folder: str = None
|
|
38
39
|
__sc: ScriptCollectionCore = None
|
|
39
40
|
|
|
40
41
|
def __init__(self, projectname: str, remotename: str, build_artifacts_target_folder: str, push_artifacts_scripts_folder: str, verbosity: int, repository_folder: str, additional_arguments_file: str, repository_folder_name: str):
|
|
41
|
-
|
|
42
|
-
self.__sc.assert_is_git_repository(repository_folder)
|
|
43
42
|
self.__sc = ScriptCollectionCore()
|
|
44
43
|
self.projectname = projectname
|
|
45
44
|
self.remotename = remotename
|
|
@@ -52,6 +51,7 @@ class CreateReleaseConfiguration():
|
|
|
52
51
|
self.public_repository_url = self.__sc.git_get_remote_url(repository_folder, remotename)
|
|
53
52
|
self.reference_repository_remote_name = self.remotename
|
|
54
53
|
self.additional_arguments_file = additional_arguments_file
|
|
54
|
+
self.repository_folder = repository_folder
|
|
55
55
|
self.repository_folder_name = repository_folder_name
|
|
56
56
|
|
|
57
57
|
|
|
@@ -307,7 +307,7 @@ class TasksForCommonProjectStructure:
|
|
|
307
307
|
|
|
308
308
|
@GeneralUtilities.check_arguments
|
|
309
309
|
def generate_bom_for_python_project(self, verbosity: int, codeunit_folder: str, codeunitname: str, commandline_arguments: list[str]) -> None:
|
|
310
|
-
self.
|
|
310
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
311
311
|
verbosity = TasksForCommonProjectStructure.get_verbosity_from_commandline_arguments(commandline_arguments, verbosity)
|
|
312
312
|
codeunitversion = self.get_version_of_codeunit_folder(codeunit_folder)
|
|
313
313
|
bom_folder = "Other/Artifacts/BOM"
|
|
@@ -363,7 +363,7 @@ class TasksForCommonProjectStructure:
|
|
|
363
363
|
|
|
364
364
|
@GeneralUtilities.check_arguments
|
|
365
365
|
def get_version_of_codeunit_folder(self, codeunit_folder: str) -> None:
|
|
366
|
-
self.
|
|
366
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
367
367
|
codeunit_file = os.path.join(codeunit_folder, f"{os.path.basename(codeunit_folder)}.codeunit.xml")
|
|
368
368
|
return self.get_version_of_codeunit(codeunit_file)
|
|
369
369
|
|
|
@@ -485,7 +485,7 @@ class TasksForCommonProjectStructure:
|
|
|
485
485
|
GeneralUtilities.ensure_directory_does_not_exist(obj_folder)
|
|
486
486
|
|
|
487
487
|
def standardized_task_verify_standard_format_csproj_files(self, codeunit_folder: str) -> bool:
|
|
488
|
-
self.
|
|
488
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
489
489
|
repository_folder = os.path.dirname(codeunit_folder)
|
|
490
490
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
491
491
|
codeunit_folder = os.path.join(repository_folder, codeunit_name)
|
|
@@ -505,7 +505,7 @@ class TasksForCommonProjectStructure:
|
|
|
505
505
|
raise ValueError(test_csproj_file+message+f'"{result2[1]}".')
|
|
506
506
|
|
|
507
507
|
def __standardized_task_verify_standard_format_for_project_csproj_file(self, csproj_file: str, codeunit_folder: str, codeunit_name: str, codeunit_version: str) -> tuple[bool, str]:
|
|
508
|
-
self.
|
|
508
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
509
509
|
codeunit_name_regex = re.escape(codeunit_name)
|
|
510
510
|
codeunit_file = os.path.join(codeunit_folder, f"{codeunit_name}.codeunit.xml")
|
|
511
511
|
codeunit_description = self.get_codeunit_description(codeunit_file)
|
|
@@ -751,7 +751,7 @@ class TasksForCommonProjectStructure:
|
|
|
751
751
|
@GeneralUtilities.check_arguments
|
|
752
752
|
def generate_sbom_for_dotnet_project(self, codeunit_folder: str, verbosity: int, commandline_arguments: list[str]) -> None:
|
|
753
753
|
GeneralUtilities.write_message_to_stdout("Generate SBOM...")
|
|
754
|
-
self.
|
|
754
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
755
755
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
756
756
|
sc = ScriptCollectionCore()
|
|
757
757
|
bomfile_folder = "Other\\Artifacts\\BOM"
|
|
@@ -1166,7 +1166,7 @@ class TasksForCommonProjectStructure:
|
|
|
1166
1166
|
|
|
1167
1167
|
@GeneralUtilities.check_arguments
|
|
1168
1168
|
def generate_certificate_for_development_purposes_for_codeunit(self, codeunit_folder: str, domain: str = None):
|
|
1169
|
-
self.
|
|
1169
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1170
1170
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
1171
1171
|
self.ensure_product_resource_is_imported(codeunit_folder, "CA")
|
|
1172
1172
|
ca_folder: str = os.path.join(codeunit_folder, "Other", "Resources", "CA")
|
|
@@ -1262,6 +1262,7 @@ class TasksForCommonProjectStructure:
|
|
|
1262
1262
|
def merge_to_stable_branch(self, create_release_file: str, createRelease_configuration: CreateReleaseConfiguration):
|
|
1263
1263
|
|
|
1264
1264
|
GeneralUtilities.write_message_to_stdout(f"Create release for project {createRelease_configuration.projectname}.")
|
|
1265
|
+
self.__sc.assert_is_git_repository(createRelease_configuration.repository_folder)
|
|
1265
1266
|
folder_of_create_release_file_file = os.path.abspath(os.path.dirname(create_release_file))
|
|
1266
1267
|
|
|
1267
1268
|
build_repository_folder = GeneralUtilities.resolve_relative_path(f"..{os.path.sep}..", folder_of_create_release_file_file)
|
|
@@ -1671,7 +1672,7 @@ class TasksForCommonProjectStructure:
|
|
|
1671
1672
|
|
|
1672
1673
|
@GeneralUtilities.check_arguments
|
|
1673
1674
|
def replace_common_variables_in_nuspec_file(self, codeunit_folder: str) -> None:
|
|
1674
|
-
self.
|
|
1675
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1675
1676
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
1676
1677
|
codeunit_version = self.get_version_of_codeunit_folder(codeunit_folder)
|
|
1677
1678
|
nuspec_file = os.path.join(codeunit_folder, "Other", "Build", f"{codeunit_name}.nuspec")
|
|
@@ -1695,7 +1696,7 @@ class TasksForCommonProjectStructure:
|
|
|
1695
1696
|
|
|
1696
1697
|
@GeneralUtilities.check_arguments
|
|
1697
1698
|
def standardized_tasks_build_bom_for_node_project(self, codeunit_folder: str, verbosity: int, commandline_arguments: list[str]) -> None:
|
|
1698
|
-
self.
|
|
1699
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1699
1700
|
verbosity = TasksForCommonProjectStructure.get_verbosity_from_commandline_arguments(commandline_arguments, verbosity)
|
|
1700
1701
|
# TODO
|
|
1701
1702
|
|
|
@@ -1823,7 +1824,7 @@ class TasksForCommonProjectStructure:
|
|
|
1823
1824
|
|
|
1824
1825
|
@GeneralUtilities.check_arguments
|
|
1825
1826
|
def set_default_constants(self, codeunit_folder: str) -> None:
|
|
1826
|
-
self.
|
|
1827
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1827
1828
|
self.set_constant_for_commitid(codeunit_folder)
|
|
1828
1829
|
self.set_constant_for_commitdate(codeunit_folder)
|
|
1829
1830
|
self.set_constant_for_codeunitname(codeunit_folder)
|
|
@@ -1833,47 +1834,47 @@ class TasksForCommonProjectStructure:
|
|
|
1833
1834
|
|
|
1834
1835
|
@GeneralUtilities.check_arguments
|
|
1835
1836
|
def set_constant_for_commitid(self, codeunit_folder: str) -> None:
|
|
1836
|
-
self.
|
|
1837
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1837
1838
|
repository = GeneralUtilities.resolve_relative_path("..", codeunit_folder)
|
|
1838
1839
|
commit_id = self.__sc.git_get_commit_id(repository)
|
|
1839
1840
|
self.set_constant(codeunit_folder, "CommitId", commit_id)
|
|
1840
1841
|
|
|
1841
1842
|
@GeneralUtilities.check_arguments
|
|
1842
1843
|
def set_constant_for_commitdate(self, codeunit_folder: str) -> None:
|
|
1843
|
-
self.
|
|
1844
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1844
1845
|
repository = GeneralUtilities.resolve_relative_path("..", codeunit_folder)
|
|
1845
1846
|
commit_date: datetime = self.__sc.git_get_commit_date(repository)
|
|
1846
1847
|
self.set_constant(codeunit_folder, "CommitDate", GeneralUtilities.datetime_to_string(commit_date))
|
|
1847
1848
|
|
|
1848
1849
|
@GeneralUtilities.check_arguments
|
|
1849
1850
|
def set_constant_for_codeunitname(self, codeunit_folder: str) -> None:
|
|
1850
|
-
self.
|
|
1851
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1851
1852
|
codeunit_name: str = os.path.basename(codeunit_folder)
|
|
1852
1853
|
self.set_constant(codeunit_folder, "CodeUnitName", codeunit_name)
|
|
1853
1854
|
|
|
1854
1855
|
@GeneralUtilities.check_arguments
|
|
1855
1856
|
def set_constant_for_codeunitversion(self, codeunit_folder: str) -> None:
|
|
1856
|
-
self.
|
|
1857
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1857
1858
|
codeunit_version: str = self.get_version_of_codeunit_folder(codeunit_folder)
|
|
1858
1859
|
self.set_constant(codeunit_folder, "CodeUnitVersion", codeunit_version)
|
|
1859
1860
|
|
|
1860
1861
|
@GeneralUtilities.check_arguments
|
|
1861
1862
|
def set_constant_for_codeunitmajorversion(self, codeunit_folder: str) -> None:
|
|
1862
|
-
self.
|
|
1863
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1863
1864
|
codeunit_version: str = self.get_version_of_codeunit_folder(codeunit_folder)
|
|
1864
1865
|
major_version = int(codeunit_version.split(".")[0])
|
|
1865
1866
|
self.set_constant(codeunit_folder, "CodeUnitMajorVersion", str(major_version))
|
|
1866
1867
|
|
|
1867
1868
|
@GeneralUtilities.check_arguments
|
|
1868
1869
|
def set_constant_for_description(self, codeunit_folder: str) -> None:
|
|
1869
|
-
self.
|
|
1870
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1870
1871
|
codeunit_name: str = os.path.basename(codeunit_folder)
|
|
1871
1872
|
codeunit_description: str = self.get_codeunit_description(f"{codeunit_folder}/{codeunit_name}.codeunit.xml")
|
|
1872
1873
|
self.set_constant(codeunit_folder, "CodeUnitDescription", codeunit_description)
|
|
1873
1874
|
|
|
1874
1875
|
@GeneralUtilities.check_arguments
|
|
1875
1876
|
def set_constant(self, codeunit_folder: str, constantname: str, constant_value: str, documentationsummary: str = None, constants_valuefile: str = None) -> None:
|
|
1876
|
-
self.
|
|
1877
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1877
1878
|
if documentationsummary is None:
|
|
1878
1879
|
documentationsummary = ""
|
|
1879
1880
|
constants_folder = os.path.join(codeunit_folder, "Other", "Resources", "Constants")
|
|
@@ -1928,7 +1929,7 @@ class TasksForCommonProjectStructure:
|
|
|
1928
1929
|
|
|
1929
1930
|
@GeneralUtilities.check_arguments
|
|
1930
1931
|
def copy_development_certificate_to_default_development_directory(self, codeunit_folder: str, build_environment: str, domain: str = None, certificate_resource_name: str = "DevelopmentCertificate") -> None:
|
|
1931
|
-
self.
|
|
1932
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1932
1933
|
if build_environment != "Productive":
|
|
1933
1934
|
codeunit_name: str = os.path.basename(codeunit_folder)
|
|
1934
1935
|
if domain is None:
|
|
@@ -1949,7 +1950,7 @@ class TasksForCommonProjectStructure:
|
|
|
1949
1950
|
@GeneralUtilities.check_arguments
|
|
1950
1951
|
def set_constants_for_certificate_public_information(self, codeunit_folder: str, source_constant_name: str = "DevelopmentCertificate", domain: str = None) -> None:
|
|
1951
1952
|
"""Expects a certificate-resource and generates a constant for its public information"""
|
|
1952
|
-
self.
|
|
1953
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1953
1954
|
certificate_file = os.path.join(codeunit_folder, "Other", "Resources", source_constant_name, f"{source_constant_name}.crt")
|
|
1954
1955
|
with open(certificate_file, encoding="utf-8") as text_wrapper:
|
|
1955
1956
|
certificate = crypto.load_certificate(crypto.FILETYPE_PEM, text_wrapper.read())
|
|
@@ -1959,7 +1960,7 @@ class TasksForCommonProjectStructure:
|
|
|
1959
1960
|
@GeneralUtilities.check_arguments
|
|
1960
1961
|
def set_constants_for_certificate_private_information(self, codeunit_folder: str) -> None:
|
|
1961
1962
|
"""Expects a certificate-resource and generates a constant for its sensitive information in hex-format"""
|
|
1962
|
-
self.
|
|
1963
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1963
1964
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
1964
1965
|
resource_name: str = "DevelopmentCertificate"
|
|
1965
1966
|
filename: str = codeunit_name+"DevelopmentCertificate"
|
|
@@ -1968,7 +1969,7 @@ class TasksForCommonProjectStructure:
|
|
|
1968
1969
|
|
|
1969
1970
|
@GeneralUtilities.check_arguments
|
|
1970
1971
|
def generate_constant_from_resource_by_filename(self, codeunit_folder: str, resource_name: str, filename: str, constant_name: str) -> None:
|
|
1971
|
-
self.
|
|
1972
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1972
1973
|
certificate_resource_folder = GeneralUtilities.resolve_relative_path(f"Other/Resources/{resource_name}", codeunit_folder)
|
|
1973
1974
|
resource_file = os.path.join(certificate_resource_folder, filename)
|
|
1974
1975
|
resource_file_content = GeneralUtilities.read_binary_from_file(resource_file)
|
|
@@ -1977,7 +1978,7 @@ class TasksForCommonProjectStructure:
|
|
|
1977
1978
|
|
|
1978
1979
|
@GeneralUtilities.check_arguments
|
|
1979
1980
|
def generate_constant_from_resource_by_extension(self, codeunit_folder: str, resource_name: str, extension: str, constant_name: str) -> None:
|
|
1980
|
-
self.
|
|
1981
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1981
1982
|
certificate_resource_folder = GeneralUtilities.resolve_relative_path(f"Other/Resources/{resource_name}", codeunit_folder)
|
|
1982
1983
|
resource_file = self.__sc.find_file_by_extension(certificate_resource_folder, extension)
|
|
1983
1984
|
resource_file_content = GeneralUtilities.read_binary_from_file(resource_file)
|
|
@@ -1986,7 +1987,7 @@ class TasksForCommonProjectStructure:
|
|
|
1986
1987
|
|
|
1987
1988
|
@GeneralUtilities.check_arguments
|
|
1988
1989
|
def copy_constant_from_dependent_codeunit(self, codeunit_folder: str, constant_name: str, source_codeunit_name: str) -> None:
|
|
1989
|
-
self.
|
|
1990
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1990
1991
|
source_codeunit_folder: str = GeneralUtilities.resolve_relative_path(f"../{source_codeunit_name}", codeunit_folder)
|
|
1991
1992
|
value = self.get_constant_value(source_codeunit_folder, constant_name)
|
|
1992
1993
|
documentation = self.get_constant_documentation(source_codeunit_folder, constant_name)
|
|
@@ -1994,7 +1995,7 @@ class TasksForCommonProjectStructure:
|
|
|
1994
1995
|
|
|
1995
1996
|
@GeneralUtilities.check_arguments
|
|
1996
1997
|
def copy_resources_from_dependent_codeunit(self, codeunit_folder: str, resource_name: str, source_codeunit_name: str) -> None:
|
|
1997
|
-
self.
|
|
1998
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
1998
1999
|
source_folder: str = GeneralUtilities.resolve_relative_path(f"../{source_codeunit_name}/Other/Resources/{resource_name}", codeunit_folder)
|
|
1999
2000
|
target_folder: str = GeneralUtilities.resolve_relative_path(f"Other/Resources/{resource_name}", codeunit_folder)
|
|
2000
2001
|
GeneralUtilities.ensure_directory_does_not_exist(target_folder)
|
|
@@ -2044,7 +2045,7 @@ class TasksForCommonProjectStructure:
|
|
|
2044
2045
|
|
|
2045
2046
|
@GeneralUtilities.check_arguments
|
|
2046
2047
|
def ensure_openapigenerator_is_available(self, codeunit_folder: str) -> None:
|
|
2047
|
-
self.
|
|
2048
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2048
2049
|
openapigenerator_folder = os.path.join(codeunit_folder, "Other", "Resources", "OpenAPIGenerator")
|
|
2049
2050
|
internet_connection_is_available = GeneralUtilities.internet_connection_is_available()
|
|
2050
2051
|
filename = "open-api-generator.jar"
|
|
@@ -2178,7 +2179,7 @@ class TasksForCommonProjectStructure:
|
|
|
2178
2179
|
|
|
2179
2180
|
@GeneralUtilities.check_arguments
|
|
2180
2181
|
def get_dependencies_which_are_ignored_from_updates(self, codeunit_folder: str, print_warnings_for_ignored_dependencies: bool) -> list[str]:
|
|
2181
|
-
self.
|
|
2182
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2182
2183
|
namespaces = {'cps': 'https://projects.aniondev.de/PublicProjects/Common/ProjectTemplates/-/tree/main/Conventions/RepositoryStructure/CommonProjectStructure', 'xsi': 'http://www.w3.org/2001/XMLSchema-instance'}
|
|
2183
2184
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
2184
2185
|
codeunit_file = os.path.join(codeunit_folder, f"{codeunit_name}.codeunit.xml")
|
|
@@ -2373,7 +2374,7 @@ class TasksForCommonProjectStructure:
|
|
|
2373
2374
|
|
|
2374
2375
|
@GeneralUtilities.check_arguments
|
|
2375
2376
|
def create_artifact_for_development_certificate(self, codeunit_folder: str):
|
|
2376
|
-
self.
|
|
2377
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2377
2378
|
ce_source_folder = GeneralUtilities.resolve_relative_path("Other/Resources/DevelopmentCertificate", codeunit_folder)
|
|
2378
2379
|
ca_source_folder = GeneralUtilities.resolve_relative_path("Other/Resources/CA", codeunit_folder)
|
|
2379
2380
|
ce_target_folder = GeneralUtilities.resolve_relative_path("Other/Artifacts/DevelopmentCertificate", codeunit_folder)
|
|
@@ -2409,7 +2410,7 @@ class TasksForCommonProjectStructure:
|
|
|
2409
2410
|
|
|
2410
2411
|
@GeneralUtilities.check_arguments
|
|
2411
2412
|
def build_codeunit(self, codeunit_folder: 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 = False, commandlinearguments: list[str] = []) -> None:
|
|
2412
|
-
self.
|
|
2413
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2413
2414
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
2414
2415
|
repository_folder = os.path.dirname(codeunit_folder)
|
|
2415
2416
|
self.build_specific_codeunits(repository_folder, [codeunit_name], verbosity, target_environmenttype, additional_arguments_file, is_pre_merge, export_target_directory, assume_dependent_codeunits_are_already_built, commandlinearguments, False)
|
|
@@ -2561,7 +2562,7 @@ class TasksForCommonProjectStructure:
|
|
|
2561
2562
|
|
|
2562
2563
|
@GeneralUtilities.check_arguments
|
|
2563
2564
|
def __ensure_grylibrary_is_available(self, codeunit_folder: str) -> None:
|
|
2564
|
-
self.
|
|
2565
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2565
2566
|
grylibrary_folder = os.path.join(codeunit_folder, "Other", "Resources", "GRYLibrary")
|
|
2566
2567
|
grylibrary_dll_file = os.path.join(grylibrary_folder, "BuildResult_DotNet_win-x64", "GRYLibrary.dll")
|
|
2567
2568
|
internet_connection_is_available = GeneralUtilities.internet_connection_is_available()
|
|
@@ -2593,7 +2594,7 @@ class TasksForCommonProjectStructure:
|
|
|
2593
2594
|
|
|
2594
2595
|
@GeneralUtilities.check_arguments
|
|
2595
2596
|
def ensure_ffmpeg_is_available(self, codeunit_folder: str) -> None:
|
|
2596
|
-
self.
|
|
2597
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2597
2598
|
ffmpeg_folder = os.path.join(codeunit_folder, "Other", "Resources", "FFMPEG")
|
|
2598
2599
|
internet_connection_is_available = GeneralUtilities.internet_connection_is_available()
|
|
2599
2600
|
exe_file = f"{ffmpeg_folder}/ffmpeg.exe"
|
|
@@ -2680,7 +2681,7 @@ class TasksForCommonProjectStructure:
|
|
|
2680
2681
|
|
|
2681
2682
|
@GeneralUtilities.check_arguments
|
|
2682
2683
|
def create_deb_package_for_artifact(self, codeunit_folder: str, maintainername: str, maintaineremail: str, description: str, verbosity: int, cmd_arguments: list[str]) -> None:
|
|
2683
|
-
self.
|
|
2684
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2684
2685
|
verbosity = self.get_verbosity_from_commandline_arguments(cmd_arguments, verbosity)
|
|
2685
2686
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
2686
2687
|
binary_folder = GeneralUtilities.resolve_relative_path("Other/Artifacts/BuildResult_DotNet_linux-x64", codeunit_folder)
|
|
@@ -2704,7 +2705,7 @@ class TasksForCommonProjectStructure:
|
|
|
2704
2705
|
|
|
2705
2706
|
@GeneralUtilities.check_arguments
|
|
2706
2707
|
def update_year_for_dotnet_codeunit(self, codeunit_folder: str) -> None:
|
|
2707
|
-
self.
|
|
2708
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2708
2709
|
codeunit_name = os.path.basename(codeunit_folder)
|
|
2709
2710
|
csproj_file = os.path.join(codeunit_folder, codeunit_name, f"{codeunit_name}.csproj")
|
|
2710
2711
|
self.__sc.update_year_in_copyright_tags(csproj_file)
|
|
@@ -2720,7 +2721,7 @@ class TasksForCommonProjectStructure:
|
|
|
2720
2721
|
|
|
2721
2722
|
@GeneralUtilities.check_arguments
|
|
2722
2723
|
def verify_artifact_exists(self, codeunit_folder: str, artifact_name_regexes: dict[str, bool]) -> None:
|
|
2723
|
-
self.
|
|
2724
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2724
2725
|
codeunit_name: str = os.path.basename(codeunit_folder)
|
|
2725
2726
|
artifacts_folder = os.path.join(codeunit_folder, "Other/Artifacts")
|
|
2726
2727
|
existing_artifacts = [os.path.basename(x) for x in GeneralUtilities.get_direct_folders_of_folder(artifacts_folder)]
|
|
@@ -2739,7 +2740,7 @@ class TasksForCommonProjectStructure:
|
|
|
2739
2740
|
|
|
2740
2741
|
@GeneralUtilities.check_arguments
|
|
2741
2742
|
def __build_codeunit(self, codeunit_folder: str, verbosity: int = 1, target_environmenttype: str = "QualityCheck", additional_arguments_file: str = None, is_pre_merge: bool = False, assume_dependent_codeunits_are_already_built: bool = False, commandline_arguments: list[str] = []) -> None:
|
|
2742
|
-
self.
|
|
2743
|
+
self.assert_is_codeunit_folder(codeunit_folder)
|
|
2743
2744
|
now = datetime.now()
|
|
2744
2745
|
codeunit_folder = GeneralUtilities.resolve_relative_path_from_current_working_directory(codeunit_folder)
|
|
2745
2746
|
codeunit_name: str = os.path.basename(codeunit_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=yNHKk4ZK5h5JXDcQJX2PUR7uJe2mtCH7EnoGh1Vr0bk,111174
|
|
9
|
+
ScriptCollection/TasksForCommonProjectStructure.py,sha256=SaX_1ulRQLmO7FzRsIMPXKq48Z7hFYuRJVLi3aJHRj8,212976
|
|
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.56.dist-info/METADATA,sha256=7k_DYV9PlgqQISwRIy54IolCzQW0S6K69e9Mp8Eopi8,7664
|
|
13
|
+
ScriptCollection-3.5.56.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
14
|
+
ScriptCollection-3.5.56.dist-info/entry_points.txt,sha256=FQ6G7VA5YX6TmEqcZD8BA-2dYRAw8Y4C5Ckl1QET95c,3145
|
|
15
|
+
ScriptCollection-3.5.56.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
|
|
16
|
+
ScriptCollection-3.5.56.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|