ScriptCollection 4.4.70__py3-none-any.whl → 4.4.71__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.
@@ -41,7 +41,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
41
41
  from .ProgramRunnerPopen import ProgramRunnerPopen
42
42
  from .SCLog import SCLog, LogLevel
43
43
 
44
- version = "4.4.70"
44
+ version = "4.4.71"
45
45
  __version__ = version
46
46
 
47
47
  class VSCodeWorkspaceShellTask:
@@ -754,14 +754,17 @@ class ScriptCollectionCore:
754
754
 
755
755
  @GeneralUtilities.check_arguments
756
756
  def push_nuget_build_artifact(self, nupkg_file: str, registry_address: str, api_key: str = None):
757
- nupkg_file_name = os.path.basename(nupkg_file)
758
- nupkg_file_folder = os.path.dirname(nupkg_file)
759
- argument = f"nuget push {nupkg_file_name} --force-english-output --source {registry_address}"
760
- argument_for_log = argument
757
+ # dotnet reads the NuGet-configuration of the working-directory and of all of its parent-folders. The build-artifact usually lies
758
+ # inside a repository, and a NuGet.config of that repository which contains "<clear />" would hide the package-sources which are
759
+ # registered in the user-level-configuration, so that a source given by its name would be reported as invalid. Therefore the push is
760
+ # done from the temp-folder, where only the user-level- and the machine-wide-configuration apply.
761
+ absolute_nupkg_file = os.path.abspath(nupkg_file)
762
+ arguments = ["nuget", "push", absolute_nupkg_file, "--force-english-output", "--source", registry_address]
763
+ arguments_for_log = list(arguments)
761
764
  if api_key is not None:
762
- argument = f"{argument} --api-key {api_key}"
763
- argument_for_log = f"{argument_for_log} --api-key ***"
764
- self.run_program("dotnet", argument, nupkg_file_folder, arguments_for_log=argument_for_log)
765
+ arguments = arguments + ["--api-key", api_key]
766
+ arguments_for_log = arguments_for_log + ["--api-key", "***"]
767
+ self.run_program_argsasarray("dotnet", arguments, GeneralUtilities.get_temp_folder(), arguments_for_log=arguments_for_log)
765
768
 
766
769
  @GeneralUtilities.check_arguments
767
770
  def dotnet_build(self, folder: str, projectname: str, configuration: str):
@@ -383,7 +383,7 @@ class TFCPS_CodeUnit_BuildCodeUnits:
383
383
  self.sc.format_json_file(workspace_file)
384
384
 
385
385
  #TODO add option to define exceptions (means: files which should not be normalized).
386
- self.sc.normalize_invisible_characters_of_files_in_folder(self.repository, ["txt", "md", "py", "json", "xml", "svg", "csv", "yml", "yaml", "toml","gitignore", "gitattributes", "code-workspace", "plantuml"])
386
+ self.sc.normalize_invisible_characters_of_files_in_folder(self.repository, ["txt", "md", "py", "json", "jsonl", "xml", "svg", "csv", "yml", "yaml", "toml","gitignore", "gitattributes", "code-workspace", "plantuml"])
387
387
 
388
388
  @GeneralUtilities.check_arguments
389
389
  def is_working_branch(self)->bool:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scriptcollection
3
- Version: 4.4.70
3
+ Version: 4.4.71
4
4
  Summary: The ScriptCollection is the place for reusable scripts.
5
5
  Author-email: Marius Göcke <marius.goecke@gmail.com>
6
6
  License-Expression: GPL-3.0-only
@@ -12,7 +12,7 @@ ScriptCollection/ProgramRunnerSudo.py,sha256=vwKq-MOcqsgiKhSf-MBUDBC_UyaU8evP3Ro
12
12
  ScriptCollection/RepositoryDiagramGenerator.py,sha256=K_u2NW_p4ozdWD50irJEkkcDVa70TcUJpZN63TeXSLw,7092
13
13
  ScriptCollection/RepositoryHistoryAnalyzer.py,sha256=u9141B9D-Kef-9uo3yR7BXKUMzIKLVsesnYk7H-cWm4,6157
14
14
  ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
15
- ScriptCollection/ScriptCollectionCore.py,sha256=TGrqGY-6FePu8d8ZY4zovOd_gVK24oP5uCqM4Httqh8,311272
15
+ ScriptCollection/ScriptCollectionCore.py,sha256=_DLU7t7p5kYTZ3kzaaYQOwsL55gyRid-0YrTvzV9gic,311801
16
16
  ScriptCollection/TestKind.py,sha256=jqLJwNvQeyea7SZf-UFzMC9pM0znv4do7FIC1xq8u9M,1672
17
17
  ScriptCollection/UnassignedVariablesCheck.py,sha256=8xNcp1D5HeOLO1a1NEerq2TsnpFhw7yzYPkaay-oisY,3804
18
18
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -51,7 +51,7 @@ ScriptCollection/TFCPS/TFCPS_BuildCodeUnitsHook.py,sha256=67_DQwoH5bhxxSmwtuAeoW
51
51
  ScriptCollection/TFCPS/TFCPS_CodeSpellCheck.py,sha256=zV62O7UiGjewx1yQUIWmUJ9D-5ipkV_f28uNhp-JWUs,5306
52
52
  ScriptCollection/TFCPS/TFCPS_CodeUnitSpecific_Base.py,sha256=Rh7S84B8QbeWn5qJxRItoI7jquJYvFnNRi_WiX3FjWo,40414
53
53
  ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnit.py,sha256=CB0K8OZNtQESdS2pqX9RQqN-lI5M-cbmXYOR0rbuRlk,9741
54
- ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=mMBCIUxocQjpGLwEs_Jdzr_zpxSqtzs_Gh3GcinaF0s,60412
54
+ ScriptCollection/TFCPS/TFCPS_CodeUnit_BuildCodeUnits.py,sha256=Tr3YWQN3bkNaFAFBVNJN6KM7sCy3mmBZ2NIGv5CzkHY,60421
55
55
  ScriptCollection/TFCPS/TFCPS_CreateRelease.py,sha256=BVK3fpEyjcXYVHIb6YYLH7bWe6iKRaCtPrJ3tXAemYw,6582
56
56
  ScriptCollection/TFCPS/TFCPS_FindingsSorter.py,sha256=3ChuKf-Myr3sBtQhYGw6dHlk93HO6PAH-Jq1oPYdW1s,4804
57
57
  ScriptCollection/TFCPS/TFCPS_Generic.py,sha256=mRBcf7XuNWOSXbZYc3NuJow18AMZ30D6Z-BtyNYfNcM,2072
@@ -87,8 +87,8 @@ ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=yyjWPMHQjPLkML
87
87
  ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
88
  ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=ILVhJHvwG5TvPBBqSvyACYb7W9QnWrJpxKgHu8IQu4g,9249
89
89
  ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
90
- scriptcollection-4.4.70.dist-info/METADATA,sha256=f2TidWG9qvOSpYEZOtREuj5AfEkZXG_hHBZqmPzEIB8,8032
91
- scriptcollection-4.4.70.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
92
- scriptcollection-4.4.70.dist-info/entry_points.txt,sha256=itrRUdhNeGltyisLNqXVjWadCqzemZy9MGFcoMf53CE,6385
93
- scriptcollection-4.4.70.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
94
- scriptcollection-4.4.70.dist-info/RECORD,,
90
+ scriptcollection-4.4.71.dist-info/METADATA,sha256=xvkiYA53qICH84LIqkThwK3-5VhlZCuBZo_K2oI4GA0,8032
91
+ scriptcollection-4.4.71.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
92
+ scriptcollection-4.4.71.dist-info/entry_points.txt,sha256=itrRUdhNeGltyisLNqXVjWadCqzemZy9MGFcoMf53CE,6385
93
+ scriptcollection-4.4.71.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
94
+ scriptcollection-4.4.71.dist-info/RECORD,,