ScriptCollection 4.0.52__py3-none-any.whl → 4.0.54__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.
@@ -113,7 +113,7 @@ class AnionBuildPlatform:
113
113
 
114
114
  def __update_dependencies(self,product_name:str) -> None:
115
115
  self.__sc.log.log("Update dependencies...")
116
- repository:str=os.path.join(self.__configuration,product_name+"Build","Submodules",product_name)
116
+ repository:str=os.path.join(self.__configuration.build_repositories_folder,product_name+"Build","Submodules",product_name)
117
117
  self.__sc.assert_no_uncommitted_changes(repository)
118
118
  self.__sc.run_program("python","UpdateDependencies.py",os.path.join(repository,"Other","Scripts"))
119
119
  codeunits:list[str]=self._tFCPS_Tools_General.get_codeunits(repository)
@@ -36,7 +36,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
36
36
  from .ProgramRunnerPopen import ProgramRunnerPopen
37
37
  from .SCLog import SCLog, LogLevel
38
38
 
39
- version = "4.0.52"
39
+ version = "4.0.54"
40
40
  __version__ = version
41
41
 
42
42
 
@@ -1831,7 +1831,7 @@ class ScriptCollectionCore:
1831
1831
 
1832
1832
  @GeneralUtilities.check_arguments
1833
1833
  def run_with_epew(self, program: str, argument: str = "", working_directory: str = None, print_errors_as_information: bool = False, log_file: str = None, timeoutInSeconds: int = 600, addLogOverhead: bool = False, title: str = None, log_namespace: str = "", arguments_for_log: list[str] = None, throw_exception_if_exitcode_is_not_zero: bool = True, custom_argument: object = None, interactive: bool = False,print_live_output:bool=False,encode_argument_in_base64:bool=False) -> tuple[int, str, str, int]:
1834
- epew_argument=f"-p {program} -a {argument} -w {working_directory}"
1834
+ epew_argument=f"-p {program} -a \"{argument}\" -w {working_directory}"
1835
1835
  if encode_argument_in_base64:
1836
1836
  base64_bytes = base64.b64encode(argument)
1837
1837
  base64_string = base64_bytes.decode('utf-8')
@@ -20,7 +20,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
20
20
  def __init__(self,current_file:str,verbosity:LogLevel,targetenvironmenttype:str,use_cache:bool,is_pre_merge:bool):
21
21
  super().__init__(current_file, verbosity,targetenvironmenttype,use_cache,is_pre_merge)
22
22
  self.csproj_file=os.path.join(self.get_codeunit_folder(), self.get_codeunit_name(), self.get_codeunit_name() + ".csproj")
23
- self.is_library="<OutputType>Library</OutputType>" in GeneralUtilities.read_text_from_file(self.csproj_file)#TODO do a real check
23
+ self.is_library="<OutputType>Library</OutputType>" in GeneralUtilities.read_text_from_file(self.csproj_file)#TODO do a real check by checking this property using xpath
24
24
 
25
25
  @GeneralUtilities.check_arguments
26
26
  def build(self,runtimes:list[str],generate_open_api_spec:bool) -> None:
@@ -195,7 +195,7 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
195
195
  pass#TODO
196
196
 
197
197
  @GeneralUtilities.check_arguments
198
- def do_common_tasks(self,current_codeunit_version:str,certificateGeneratorInformation:CertificateGeneratorInformationBase,run_t4:bool)-> None:
198
+ def do_common_tasks(self,current_codeunit_version:str,certificateGeneratorInformation:CertificateGeneratorInformationBase)-> None:
199
199
  self.do_common_tasks_base(current_codeunit_version)
200
200
  codeunit_name =self.get_codeunit_name()
201
201
  codeunit_version = self.tfcps_Tools_General.get_version_of_project(self.get_repository_folder()) # Should always be the same as the project-version #TODO make this configurable from outside
@@ -206,8 +206,6 @@ class TFCPS_CodeUnitSpecific_DotNet_Functions(TFCPS_CodeUnitSpecific_Base):
206
206
  self._protected_sc.replace_version_in_nuspec_file(GeneralUtilities.resolve_relative_path(f"./Build/{codeunit_name}.nuspec", folder_of_current_file), codeunit_version)
207
207
  if certificateGeneratorInformation.generate_certificate():
208
208
  self.tfcps_Tools_General.set_constants_for_certificate_private_information(self.get_codeunit_folder())
209
- if run_t4:
210
- self.tfcps_Tools_General.t4_transform(self.get_codeunit_folder(),True,self.use_cache())
211
209
  self.standardized_task_verify_standard_format_csproj_files()
212
210
 
213
211
  @GeneralUtilities.check_arguments
@@ -202,7 +202,6 @@ class TFCPS_CodeUnitSpecific_Base(ABC):
202
202
 
203
203
 
204
204
 
205
-
206
205
  @GeneralUtilities.check_arguments
207
206
  def generate_reference_using_docfx(self=None):
208
207
  reference_folder =os.path.join( self.get_codeunit_folder(),"Other","Reference")
@@ -51,7 +51,7 @@ class TFCPS_CodeUnit_BuildCodeUnit:
51
51
 
52
52
  self.sc.log.log("Do common tasks...")
53
53
  self.sc.run_program("python", f"CommonTasks.py {arguments}", os.path.join(self.codeunit_folder, "Other"), print_live_output=True)
54
- self.verify_artifact_exists(self.codeunit_folder, dict[str, bool]({"Changelog": False, "License": True, "DiffReport": True}))
54
+ self.verify_artifact_exists(self.codeunit_folder, dict[str, bool]({"License": True, "DiffReport": True}))
55
55
 
56
56
  self.sc.log.log("Build...")
57
57
  self.sc.run_program("python", f"Build.py {arguments}", os.path.join(self.codeunit_folder, "Other", "Build"), print_live_output=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 4.0.52
3
+ Version: 4.0.54
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
@@ -1,4 +1,4 @@
1
- ScriptCollection/AnionBuildPlatform.py,sha256=57bEfg-AKkSzdZ81JyAJZ48dw4nhZioCqGrFMkp_fWk,12501
1
+ ScriptCollection/AnionBuildPlatform.py,sha256=olCBNO6dG4F9ZAFERE8DlgDf7ViiftQ6Vza9SctU4aU,12527
2
2
  ScriptCollection/CertificateUpdater.py,sha256=GXPxmYaW-ufOqsiP9kUYdtI6eNg1-GzrrCqsZdwW_HY,9199
3
3
  ScriptCollection/Executables.py,sha256=7SXsAA2UxtAMQ8d7agexYtGiXdjF3JE_TVJOF_KJNJs,42059
4
4
  ScriptCollection/GeneralUtilities.py,sha256=9Xd9aKPj3TkpVtdHXzFMILrRoXAfJCph69XRTstdsBo,49280
@@ -9,10 +9,10 @@ ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrR
9
9
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
10
10
  ScriptCollection/ProgramRunnerSudo.py,sha256=_khC3xuTdrPoLluBJZWfldltmmuKltABJPcbjZSFW-4,4835
11
11
  ScriptCollection/SCLog.py,sha256=dxGOI4E9lG5v9jk_LajXCkM5nghliCDV8YB8Ihn160s,4541
12
- ScriptCollection/ScriptCollectionCore.py,sha256=2EqLxmuiBYobgKIjQ2yBYZYkHmu1g3QsZykfhvU1SbI,142125
12
+ ScriptCollection/ScriptCollectionCore.py,sha256=4zX_FiOzRTEPvGp2QUdrxkwjvgRC7GwGAKOqNL1jtBc,142129
13
13
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
- ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=H9ampfCfJ4-ohN33VkYWTKwYaTV-y3AelZAiTduwHzw,25442
15
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=4rYKgTAga11NiDx8YUqz3K_Q4eX_n3kC6lvNdXEa24s,7389
14
+ ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=VyoVQPQ5t3VmRsR599tzsjRlnL42Hj3kubMmeoTQW7A,25441
15
+ ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=m3bZZCoKV0mxME6HtDa3BAsGD4DSbiSp4XkqKOJyc9Y,7369
16
16
  ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=f9oGnopuzn3iDHC1AksU7Qr60LbDe0eLjYeXGiDPhAk,7526
17
17
  ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=bcJlfI062Eoq7MOIhun-_iNG7SdO1ZIuC_cylaoLI1s,6332
18
18
  ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=O-0guM_LJCcZmPZJhMgTvXD2RXUJEBWWv6Bt6hDFhvM,1943
@@ -27,7 +27,7 @@ ScriptCollection/TFCPS/Docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5N
27
27
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationBase.py,sha256=bT6Gd5pQpZCw4OQz6HWkPCSn5z__eUUEisABLDSxd0o,200
28
28
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationGenerate.py,sha256=QyjOfMY22JWCvKjMelHiDWbJiWqotOfebpJpgDUaoO4,237
29
29
  ScriptCollection/TFCPS/DotNet/CertificateGeneratorInformationNoGenerate.py,sha256=i0zEGehj0sttxjjZtoq2KFSKp_ulxVyWp_ZgAhIY_So,241
30
- ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=ufeWuqtNOPAtEyHayxHGPdjiJsT0lxYR2gAWle9p7T4,31031
30
+ ScriptCollection/TFCPS/DotNet/TFCPS_CodeUnitSpecific_DotNet.py,sha256=XLAtSvYKq4CgpGffdUxqT2DeOVE6Vdr0TBW0_Wb7aWA,30938
31
31
  ScriptCollection/TFCPS/DotNet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
32
32
  ScriptCollection/TFCPS/Flutter/TFCPS_CodeUnitSpecific_Flutter.py,sha256=TIR95f6TVOnW25ieX9q4RUi1FogbYEfrlZOcZ1aE014,6969
33
33
  ScriptCollection/TFCPS/Flutter/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -35,8 +35,8 @@ ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=e2bvR_zzAr
35
35
  ScriptCollection/TFCPS/NodeJS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  ScriptCollection/TFCPS/Python/TFCPS_CodeUnitSpecific_Python.py,sha256=q7msAxCb5VIZ-xhFg1MfzUvWomQRKYldqmW42KFhyMU,6868
37
37
  ScriptCollection/TFCPS/Python/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- scriptcollection-4.0.52.dist-info/METADATA,sha256=5SNVHNlcuIWhu4ufQyC648iLMrNWuaMTHtSE7d6toQM,7688
39
- scriptcollection-4.0.52.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
- scriptcollection-4.0.52.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
41
- scriptcollection-4.0.52.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
42
- scriptcollection-4.0.52.dist-info/RECORD,,
38
+ scriptcollection-4.0.54.dist-info/METADATA,sha256=rHc6N0LSSdGLUMzS88gosvFfEwfraHaw8p_1jPsQ4rg,7688
39
+ scriptcollection-4.0.54.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
+ scriptcollection-4.0.54.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
41
+ scriptcollection-4.0.54.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
42
+ scriptcollection-4.0.54.dist-info/RECORD,,