ScriptCollection 3.4.29__py3-none-any.whl → 3.4.31__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.
@@ -29,7 +29,7 @@ from .ProgramRunnerPopen import ProgramRunnerPopen
29
29
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
30
30
 
31
31
 
32
- version = "3.4.29"
32
+ version = "3.4.31"
33
33
  __version__ = version
34
34
 
35
35
 
@@ -124,7 +124,7 @@ class ScriptCollectionCore:
124
124
 
125
125
  @GeneralUtilities.check_arguments
126
126
  def dotnet_sign(self, dll_or_exe_file: str, snk_file: str, verbosity: int) -> None:
127
- enabled=False
127
+ enabled = False
128
128
  if not enabled:
129
129
  GeneralUtilities.write_message_to_stderr("Warning: Signing .NET-files is currently disabled.")
130
130
  return
@@ -176,7 +176,7 @@ class TasksForCommonProjectStructure:
176
176
  })[0]))
177
177
 
178
178
  @GeneralUtilities.check_arguments
179
- def get_codeunit_description(self, codeunit_file:str) -> bool:
179
+ def get_codeunit_description(self, codeunit_file: str) -> bool:
180
180
  root: etree._ElementTree = etree.parse(codeunit_file)
181
181
  return str(root.xpath('//cps:properties/@description', namespaces={
182
182
  'cps': 'https://projects.aniondev.de/PublicProjects/Common/ProjectTemplates/-/tree/main/Conventions/RepositoryStructure/CommonProjectStructure'
@@ -489,7 +489,7 @@ class TasksForCommonProjectStructure:
489
489
 
490
490
  project_name = codeunit_name
491
491
  csproj_file = os.path.join(codeunit_folder, project_name, project_name+".csproj")
492
- if not self.__standardized_task_verify_standard_format_for_project_csproj_file(csproj_file,codeunit_folder, codeunit_name, codeunit_version):
492
+ if not self.__standardized_task_verify_standard_format_for_project_csproj_file(csproj_file, codeunit_folder, codeunit_name, codeunit_version):
493
493
  raise ValueError(csproj_file+message)
494
494
 
495
495
  testproject_name = project_name+"Tests"
@@ -497,10 +497,10 @@ class TasksForCommonProjectStructure:
497
497
  if not self.__standardized_task_verify_standard_format_for_test_csproj_file(test_csproj_file, codeunit_name, codeunit_version):
498
498
  raise ValueError(test_csproj_file+message)
499
499
 
500
- def __standardized_task_verify_standard_format_for_project_csproj_file(self, csproj_file: str, codeunit_folder:str, codeunit_name: str, codeunit_version: str) -> bool:
500
+ def __standardized_task_verify_standard_format_for_project_csproj_file(self, csproj_file: str, codeunit_folder: str, codeunit_name: str, codeunit_version: str) -> bool:
501
501
  codeunit_name_regex = re.escape(codeunit_name)
502
- codeunit_file=os.path.join(codeunit_folder,codeunit_name,f"{codeunit_name}.codeunit.xml")
503
- codeunit_description=self.get_codeunit_description(codeunit_file)
502
+ codeunit_file = os.path.join(codeunit_folder, f"{codeunit_name}.codeunit.xml")
503
+ codeunit_description = self.get_codeunit_description(codeunit_file)
504
504
  codeunit_version_regex = re.escape(codeunit_version)
505
505
  codeunit_description_regex = re.escape(codeunit_description)
506
506
  regex = f"""^<Project Sdk=\\"Microsoft\\.NET\\.Sdk\\">
@@ -1139,14 +1139,14 @@ class TasksForCommonProjectStructure:
1139
1139
  GeneralUtilities.ensure_file_does_not_exist(unsignedcertificate_file)
1140
1140
 
1141
1141
  @GeneralUtilities.check_arguments
1142
- def get_codeunits(self, repository_folder: str,ignore_disabled_codeunits:bool=True) -> list[str]:
1142
+ def get_codeunits(self, repository_folder: str, ignore_disabled_codeunits: bool = True) -> list[str]:
1143
1143
  result: list[str] = []
1144
1144
  for direct_subfolder in GeneralUtilities.get_direct_folders_of_folder(repository_folder):
1145
1145
  subfoldername = os.path.basename(direct_subfolder)
1146
1146
  codeunit_file = os.path.join(direct_subfolder, f"{subfoldername}.codeunit.xml")
1147
1147
  if os.path.isfile(codeunit_file):
1148
1148
  if (ignore_disabled_codeunits):
1149
- if(self.codeunit_is_enabled(codeunit_file)):
1149
+ if (self.codeunit_is_enabled(codeunit_file)):
1150
1150
  result.append(subfoldername)
1151
1151
  else:
1152
1152
  result.append(subfoldername)
@@ -1155,7 +1155,7 @@ class TasksForCommonProjectStructure:
1155
1155
  @GeneralUtilities.check_arguments
1156
1156
  def codeunit_is_enabled(self, codeunit_file: str) -> bool:
1157
1157
  root: etree._ElementTree = etree.parse(codeunit_file)
1158
- return GeneralUtilities.string_to_boolean(str(root.xpath('//@enabled', namespaces={
1158
+ return GeneralUtilities.string_to_boolean(str(root.xpath('//cps:codeunit/@enabled', namespaces={
1159
1159
  'cps': 'https://projects.aniondev.de/PublicProjects/Common/ProjectTemplates/-/tree/main/Conventions/RepositoryStructure/CommonProjectStructure'
1160
1160
  })[0]))
1161
1161
 
@@ -2105,8 +2105,8 @@ class TasksForCommonProjectStructure:
2105
2105
  self.__sc.create_deb_package(codeunit_name, binary_folder, control_file_content, deb_output_folder, verbosity, 555)
2106
2106
 
2107
2107
  @GeneralUtilities.check_arguments
2108
- def repository_has_codeunits(self, repository: str,ignore_disabled_codeunits:bool=True) -> bool:
2109
- return len(self.get_codeunits(repository,ignore_disabled_codeunits))
2108
+ def repository_has_codeunits(self, repository: str, ignore_disabled_codeunits: bool = True) -> bool:
2109
+ return len(self.get_codeunits(repository, ignore_disabled_codeunits))
2110
2110
 
2111
2111
  @GeneralUtilities.check_arguments
2112
2112
  def verify_artifact_exists(self, codeunit_folder: str, artifact_name_regexes: dict[str, bool]) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ScriptCollection
3
- Version: 3.4.29
3
+ Version: 3.4.31
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=W2yLSQrksFFCUFd6JzO-UV2EDIMireFvmyLv
3
3
  ScriptCollection/ProgramRunnerBase.py,sha256=2kyOuoM3oFjBfLc9Q5t5RTz7Ya2CjUxFtB1rBBDmnjU,1937
4
4
  ScriptCollection/ProgramRunnerEpew.py,sha256=nIzY4dG6W-xEpkeoTbozwNZtFSIo-bU_W6t6u1AZKtE,6275
5
5
  ScriptCollection/ProgramRunnerPopen.py,sha256=veDNRg2Z0u0vd4iKWAycVFKbTm_uWYfuK6NTiwlbgrM,3230
6
- ScriptCollection/ScriptCollectionCore.py,sha256=Wgeq1C-bxwC3_2-pNaIL1yRqIuUfT3ODk8KzhDgbv6E,95299
7
- ScriptCollection/TasksForCommonProjectStructure.py,sha256=3RnL_Uldxzk0Ww4lBagaFxzpPL7GdlrOUvtdGm1Si8w,157188
6
+ ScriptCollection/ScriptCollectionCore.py,sha256=DPlqKV0R49v7YbAylB-rpGxOKLbEv5QjpSk3i8hCFlA,95301
7
+ ScriptCollection/TasksForCommonProjectStructure.py,sha256=easVujlsxl-Tl2W4tUa_KWj6DdFIiUJbP2xxK2JV-hQ,157205
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.4.29.dist-info/METADATA,sha256=hUY8lLeTWgQFKLc_I2Wb6Arsr9g5qwIM8ebR6tejJ4M,7645
11
- ScriptCollection-3.4.29.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
12
- ScriptCollection-3.4.29.dist-info/entry_points.txt,sha256=dJKdWcH41owxlKx_khj4P7DItr9lhxWP9JU2Dq8GSsQ,2088
13
- ScriptCollection-3.4.29.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
14
- ScriptCollection-3.4.29.dist-info/RECORD,,
10
+ ScriptCollection-3.4.31.dist-info/METADATA,sha256=LpeNkynxvZzWZZIp47BDG-FadCUjQzfWpq6VTsJzjys,7645
11
+ ScriptCollection-3.4.31.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
12
+ ScriptCollection-3.4.31.dist-info/entry_points.txt,sha256=dJKdWcH41owxlKx_khj4P7DItr9lhxWP9JU2Dq8GSsQ,2088
13
+ ScriptCollection-3.4.31.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
14
+ ScriptCollection-3.4.31.dist-info/RECORD,,