ScriptCollection 4.0.45__py3-none-any.whl → 4.0.46__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.
@@ -862,3 +862,7 @@ def CreateRelease()->int:
862
862
  sc.run_program("python", arguments, scripts_folder,print_live_output=True)
863
863
 
864
864
  return 0
865
+
866
+ def CleanToolsCache()->int:
867
+ GeneralUtilities.ensure_folder_exists_and_is_empty(TFCPS_Tools_General(ScriptCollectionCore()).get_global_cache_folder())
868
+ return 0
@@ -37,7 +37,7 @@ from .ProgramRunnerPopen import ProgramRunnerPopen
37
37
  from .ProgramRunnerEpew import ProgramRunnerEpew, CustomEpewArgument
38
38
  from .SCLog import SCLog, LogLevel
39
39
 
40
- version = "4.0.45"
40
+ version = "4.0.46"
41
41
  __version__ = version
42
42
 
43
43
 
@@ -983,8 +983,7 @@ class TFCPS_Tools_General:
983
983
  @GeneralUtilities.check_arguments
984
984
  def generate_api_client_from_dependent_codeunit_for_angular(self, codeunit_folder:str, name_of_api_providing_codeunit: str, generated_program_part_name: str,language:str,use_cache:bool) -> None:
985
985
  target_subfolder_in_codeunit = f"src/app/generated/{generated_program_part_name}"
986
- self.ensure_openapigenerator_is_available(codeunit_folder,use_cache)
987
- openapigenerator_jar_file = os.path.join(codeunit_folder, "Other", "Resources", "OpenAPIGenerator", "open-api-generator.jar")
986
+ openapigenerator_jar_file = self.ensure_openapigenerator_is_available(use_cache)
988
987
  openapi_spec_file = os.path.join(codeunit_folder, "Other", "Resources", "DependentCodeUnits", name_of_api_providing_codeunit, "APISpecification", f"{name_of_api_providing_codeunit}.latest.api.json")
989
988
  target_folder = os.path.join(codeunit_folder, target_subfolder_in_codeunit)
990
989
  GeneralUtilities.ensure_folder_exists_and_is_empty(target_folder)
@@ -1000,8 +999,7 @@ class TFCPS_Tools_General:
1000
999
  json.dump(data, f, indent=2)
1001
1000
 
1002
1001
  @GeneralUtilities.check_arguments
1003
- def ensure_openapigenerator_is_available(self, codeunit_folder: str,use_cache:bool) -> None:
1004
- self.assert_is_codeunit_folder(codeunit_folder)
1002
+ def ensure_openapigenerator_is_available(self,use_cache:bool) -> None:
1005
1003
  openapigenerator_folder = os.path.join(self.get_global_cache_folder(), "Tools", "OpenAPIGenerator")
1006
1004
  filename = "open-api-generator.jar"
1007
1005
  jar_file = f"{openapigenerator_folder}/{filename}"
@@ -1009,8 +1007,7 @@ class TFCPS_Tools_General:
1009
1007
  update:bool=not jar_file_exists or not use_cache
1010
1008
  if update:
1011
1009
  self.__sc.log.log("Download OpenAPIGeneratorCLI...",LogLevel.Debug)
1012
- version_file = os.path.join(codeunit_folder, "Other", "Resources", "Dependencies", "OpenAPIGenerator", "Version.txt")
1013
- used_version = GeneralUtilities.read_text_from_file(version_file)
1010
+ used_version ="7.16.0"#TODO retrieve latest version
1014
1011
  download_link = f"https://repo1.maven.org/maven2/org/openapitools/openapi-generator-cli/{used_version}/openapi-generator-cli-{used_version}.jar"
1015
1012
  GeneralUtilities.ensure_directory_does_not_exist(openapigenerator_folder)
1016
1013
  GeneralUtilities.ensure_directory_exists(openapigenerator_folder)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ScriptCollection
3
- Version: 4.0.45
3
+ Version: 4.0.46
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,6 +1,6 @@
1
1
  ScriptCollection/AnionBuildPlatform.py,sha256=57bEfg-AKkSzdZ81JyAJZ48dw4nhZioCqGrFMkp_fWk,12501
2
2
  ScriptCollection/CertificateUpdater.py,sha256=GXPxmYaW-ufOqsiP9kUYdtI6eNg1-GzrrCqsZdwW_HY,9199
3
- ScriptCollection/Executables.py,sha256=31RgdqQDRBpY955m9NSBms5M15jwHAMQFBBtUwKbSME,41891
3
+ ScriptCollection/Executables.py,sha256=7SXsAA2UxtAMQ8d7agexYtGiXdjF3JE_TVJOF_KJNJs,42059
4
4
  ScriptCollection/GeneralUtilities.py,sha256=9Xd9aKPj3TkpVtdHXzFMILrRoXAfJCph69XRTstdsBo,49280
5
5
  ScriptCollection/ImageUpdater.py,sha256=qTe3yoqzQJY7LZdXBbjbWvrsSQaeHy1VwmOxaRzU2ig,29305
6
6
  ScriptCollection/ProcessesRunner.py,sha256=3mu4ZxzZleQo0Op6o9EYTCFiJfb6kx5ov2YfZfT89mU,1395
@@ -9,7 +9,7 @@ ScriptCollection/ProgramRunnerEpew.py,sha256=TJdDx9zIMSiCaXh8X-ekrMlbXfGtmd0Mmyx
9
9
  ScriptCollection/ProgramRunnerMock.py,sha256=uTu-aFle1W_oKjeQEmuPsFPQpvo0kRf2FrRjAPIwT5Y,37
10
10
  ScriptCollection/ProgramRunnerPopen.py,sha256=BPY7-ZMIlqT7JOKz8qlB5c0laF2Js-ijzqk09GxZC48,3821
11
11
  ScriptCollection/SCLog.py,sha256=dxGOI4E9lG5v9jk_LajXCkM5nghliCDV8YB8Ihn160s,4541
12
- ScriptCollection/ScriptCollectionCore.py,sha256=_qwjaWj7vuU1BSkTgn94r2hw5I4G0Ox0WY58-8k3a5A,142113
12
+ ScriptCollection/ScriptCollectionCore.py,sha256=ezkO1GA4Ed3QJ4R7y6fZwB4KlFc6sX1KK_kTpdejxy8,142113
13
13
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=2Ng-GyKWQ6FfTUmogd7g-xF6_XeTMxvkeJddagxFR5o,25853
15
15
  ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=4rYKgTAga11NiDx8YUqz3K_Q4eX_n3kC6lvNdXEa24s,7389
@@ -20,7 +20,7 @@ ScriptCollection/TFCPS/TFCPS_MergeToMain.py,sha256=41g219jaBRZ2VQCrWM4-Trvervrt8
20
20
  ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=ifB1K6A903vvfH0LvtiFbZgYSgR94thfEI-jjf40LpU,21653
21
21
  ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=CxdwUklhZVuJGp0vcokoH_KMXFzmlUlZwj77xFYijho,2242
22
22
  ScriptCollection/TFCPS/TFCPS_Tools_Dependencies.py,sha256=o7HI3ki3WWqlAiUsrh3Lky_w6UhYh9hdjYPGOhubQGA,414
23
- ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=wqF_szXoB_EMMvpdYdow20v2A2E5jT3P3Op-tgT0y-s,76517
23
+ ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=dDpu6NJlSk4xi2FfJ1Bcwl-ZG1g3xfq4cE0IP4PT8NY,76173
24
24
  ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  ScriptCollection/TFCPS/Docker/TFCPS_CodeUnitSpecific_Docker.py,sha256=-g8h2gCf9rh0KJXUBeQD5d0qLJgBU3Q8DNZXM1UXC04,5259
26
26
  ScriptCollection/TFCPS/Docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -35,8 +35,8 @@ ScriptCollection/TFCPS/NodeJS/TFCPS_CodeUnitSpecific_NodeJS.py,sha256=dnuDlQXThF
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.45.dist-info/METADATA,sha256=qzrk27G_cN2Gw5hfAfffblykLWFYU0CH1TiOtRVaDDs,7688
39
- scriptcollection-4.0.45.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
- scriptcollection-4.0.45.dist-info/entry_points.txt,sha256=RhfJxpWvSMIkdQ_1Pan1uXPTgYCTD1EcP0ZshkA2vtA,4366
41
- scriptcollection-4.0.45.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
42
- scriptcollection-4.0.45.dist-info/RECORD,,
38
+ scriptcollection-4.0.46.dist-info/METADATA,sha256=FIM4IegIbWXIMCm_7GC1RDFqULbhjMKPpAeim65b-k0,7688
39
+ scriptcollection-4.0.46.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
40
+ scriptcollection-4.0.46.dist-info/entry_points.txt,sha256=_izhaQEyHiyBIfM2zTYDaJ7qvgsP1WntkVChFnkWymE,4431
41
+ scriptcollection-4.0.46.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
42
+ scriptcollection-4.0.46.dist-info/RECORD,,
@@ -6,6 +6,7 @@ scbuildcodeunitsc = ScriptCollection.Executables:BuildCodeUnitsC
6
6
  sccalculatebitcoinblockhash = ScriptCollection.Executables:CalculateBitcoinBlockHash
7
7
  scchangefileextension = ScriptCollection.Executables:ChangeFileExtensions
8
8
  scchangehashofprogram = ScriptCollection.Executables:ChangeHashOfProgram
9
+ sccleantoolscache = ScriptCollection.Executables:CleanToolsCache
9
10
  scconvertgitrepositorytobarerepository = ScriptCollection.Executables:ConvertGitRepositoryToBareRepository
10
11
  sccopy = ScriptCollection.Executables:Copy
11
12
  sccreatechangelogentry = ScriptCollection.Executables:CreateChangelogEntry