ScriptCollection 4.0.44__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.
- ScriptCollection/Executables.py +4 -0
- ScriptCollection/ScriptCollectionCore.py +1 -1
- ScriptCollection/TFCPS/TFCPS_Tools_General.py +7 -8
- {scriptcollection-4.0.44.dist-info → scriptcollection-4.0.46.dist-info}/METADATA +1 -1
- {scriptcollection-4.0.44.dist-info → scriptcollection-4.0.46.dist-info}/RECORD +8 -8
- {scriptcollection-4.0.44.dist-info → scriptcollection-4.0.46.dist-info}/entry_points.txt +1 -0
- {scriptcollection-4.0.44.dist-info → scriptcollection-4.0.46.dist-info}/WHEEL +0 -0
- {scriptcollection-4.0.44.dist-info → scriptcollection-4.0.46.dist-info}/top_level.txt +0 -0
ScriptCollection/Executables.py
CHANGED
@@ -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
|
@@ -88,7 +88,7 @@ class TFCPS_Tools_General:
|
|
88
88
|
sys.stdout.write(f"\rDownload: {percent:.2f}%")
|
89
89
|
sys.stdout.flush()
|
90
90
|
self.__sc.log.log(f"Downloaded \"{url}\".", LogLevel.Diagnostic)
|
91
|
-
|
91
|
+
GeneralUtilities.assert_file_exists(file)
|
92
92
|
return file
|
93
93
|
|
94
94
|
def __add_github_api_key_if_available(self, headers: dict):
|
@@ -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(
|
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,21 +999,21 @@ 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,
|
1004
|
-
self.
|
1005
|
-
openapigenerator_folder = os.path.join(codeunit_folder, "Other", "Resources", "OpenAPIGenerator")
|
1002
|
+
def ensure_openapigenerator_is_available(self,use_cache:bool) -> None:
|
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}"
|
1008
1006
|
jar_file_exists = os.path.isfile(jar_file)
|
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
|
-
|
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)
|
1017
1014
|
urllib.request.urlretrieve(download_link, jar_file)
|
1015
|
+
GeneralUtilities.assert_file_exists(jar_file)
|
1016
|
+
return jar_file
|
1018
1017
|
|
1019
1018
|
@GeneralUtilities.check_arguments
|
1020
1019
|
def standardized_tasks_update_version_in_docker_examples(self, codeunit_folder:str, codeunit_version:str) -> None:
|
@@ -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=
|
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=
|
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=
|
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.
|
39
|
-
scriptcollection-4.0.
|
40
|
-
scriptcollection-4.0.
|
41
|
-
scriptcollection-4.0.
|
42
|
-
scriptcollection-4.0.
|
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
|
File without changes
|
File without changes
|