ScriptCollection 4.4.60__py3-none-any.whl → 4.4.61__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.
@@ -40,7 +40,7 @@ from .ProgramRunnerBase import ProgramRunnerBase
40
40
  from .ProgramRunnerPopen import ProgramRunnerPopen
41
41
  from .SCLog import SCLog, LogLevel
42
42
 
43
- version = "4.4.60"
43
+ version = "4.4.61"
44
44
  __version__ = version
45
45
 
46
46
  class VSCodeWorkspaceShellTask:
@@ -238,15 +238,19 @@ class TFCPS_Tools_General:
238
238
  return response_json["tag_name"]
239
239
 
240
240
  def __add_github_api_key_if_available(self, headers: dict):
241
+ # Trailing newlines/whitespace in either the env var or the token-file
242
+ # would silently corrupt the Authorization header and make GitHub treat
243
+ # the request as anonymous (60/h rate limit), so strip in both paths.
241
244
  token = os.getenv("GITHUB_TOKEN")
242
245
  if token is not None:
243
- headers["Authorization"] = f"Bearer {token}"
244
- else:
246
+ token = token.strip()
247
+ if not token:
245
248
  user_folder = str(Path.home())
246
249
  github_token_file: str = str(os.path.join(user_folder, ".github", "token.txt"))
247
250
  if os.path.isfile(github_token_file):
248
- token = GeneralUtilities.read_text_from_file(github_token_file)
249
- headers["Authorization"] = f"Bearer {token}"
251
+ token = GeneralUtilities.read_text_from_file(github_token_file).strip()
252
+ if token:
253
+ headers["Authorization"] = f"Bearer {token}"
250
254
  return headers
251
255
 
252
256
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scriptcollection
3
- Version: 4.4.60
3
+ Version: 4.4.61
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
@@ -11,7 +11,7 @@ ScriptCollection/ProgramRunnerSudo.py,sha256=vwKq-MOcqsgiKhSf-MBUDBC_UyaU8evP3Ro
11
11
  ScriptCollection/RepositoryDiagramGenerator.py,sha256=K_u2NW_p4ozdWD50irJEkkcDVa70TcUJpZN63TeXSLw,7092
12
12
  ScriptCollection/RepositoryHistoryAnalyzer.py,sha256=u9141B9D-Kef-9uo3yR7BXKUMzIKLVsesnYk7H-cWm4,6157
13
13
  ScriptCollection/SCLog.py,sha256=Fjf8Pdi63cXHGMxL_aI6A0dwGm7QIfrv3czjvpSUlaM,4705
14
- ScriptCollection/ScriptCollectionCore.py,sha256=9Th5XXyQIGQWQ7ZwXwVhhYKD9_REr3RzU8X5mjylSOs,310633
14
+ ScriptCollection/ScriptCollectionCore.py,sha256=iiOvej2wdxKVh6dRp-2HqIsm9i2KTiG35ca6WP0aYPk,310633
15
15
  ScriptCollection/TestKind.py,sha256=jqLJwNvQeyea7SZf-UFzMC9pM0znv4do7FIC1xq8u9M,1672
16
16
  ScriptCollection/UnassignedVariablesCheck.py,sha256=8xNcp1D5HeOLO1a1NEerq2TsnpFhw7yzYPkaay-oisY,3804
17
17
  ScriptCollection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -47,7 +47,7 @@ ScriptCollection/TFCPS/TFCPS_MergeToStable.py,sha256=oYEhz5ZWMnbu97_CcYEqdDxakUF
47
47
  ScriptCollection/TFCPS/TFCPS_OCIImageSecretScan.py,sha256=Jb7AaMcJDW-gYEYBUVZAG3QLTTNWmXlvVEW-lZsykws,14821
48
48
  ScriptCollection/TFCPS/TFCPS_PreBuildCodeunitsScript.py,sha256=XLVsFTA1jvfDbZ7wYJgIdEByZhF_bYVbA5jkisuvK4k,2322
49
49
  ScriptCollection/TFCPS/TFCPS_RemoteBuild.py,sha256=2Tx5HLk1ZftBWDCTiGZdP2QiiGNyWsEuTCSt33dNQjc,23891
50
- ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=x14mMI8MAL1IkfVb8fXgRL4OVlQgLA4s9ed5UEGJGhM,160522
50
+ ScriptCollection/TFCPS/TFCPS_Tools_General.py,sha256=HLOprSZy4wvE5Vyxe32SxLGw8GZqUSNoBqeaSZ8CtKs,160766
51
51
  ScriptCollection/TFCPS/TFCPS_VisualRegressionTests.py,sha256=F90CF5kLCgV_M3yN696xWzF1cglWLXecau9My2ZyGxw,42230
52
52
  ScriptCollection/TFCPS/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  ScriptCollection/TFCPS/CPP/TFCPS_CodeUnitSpecific_CPP.py,sha256=BNZPMjGiWLMBH7QDtP06WEVLMnI38NLX4Dpd13bSbi4,16614
@@ -73,8 +73,8 @@ ScriptCollection/TFCPS/Rust/TFCPS_CodeUnitSpecific_Rust.py,sha256=yyjWPMHQjPLkML
73
73
  ScriptCollection/TFCPS/Rust/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
74
  ScriptCollection/TFCPS/TypeScript/TFCPS_CodeUnitSpecific_TypeScript.py,sha256=ILVhJHvwG5TvPBBqSvyACYb7W9QnWrJpxKgHu8IQu4g,9249
75
75
  ScriptCollection/TFCPS/TypeScript/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
76
- scriptcollection-4.4.60.dist-info/METADATA,sha256=n0nNo0P5YP-odhwwCQu41xz-IwmQ-se0JItkM7AyZnU,8032
77
- scriptcollection-4.4.60.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
78
- scriptcollection-4.4.60.dist-info/entry_points.txt,sha256=--Xk3EcTa14uk1YnUD8CQ2naQjNKJFohScd1ONy4CeY,6135
79
- scriptcollection-4.4.60.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
80
- scriptcollection-4.4.60.dist-info/RECORD,,
76
+ scriptcollection-4.4.61.dist-info/METADATA,sha256=TRCqRXBsDxdQhL3dk4o5EAWEBgTr_1PJBQ44PhtpL04,8032
77
+ scriptcollection-4.4.61.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
78
+ scriptcollection-4.4.61.dist-info/entry_points.txt,sha256=--Xk3EcTa14uk1YnUD8CQ2naQjNKJFohScd1ONy4CeY,6135
79
+ scriptcollection-4.4.61.dist-info/top_level.txt,sha256=hY2hOVH0V0Ce51WB76zKkIWTUNwMUdHo4XDkR2vYVwg,17
80
+ scriptcollection-4.4.61.dist-info/RECORD,,