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.
- ScriptCollection/ScriptCollectionCore.py +1 -1
- ScriptCollection/TFCPS/TFCPS_Tools_General.py +8 -4
- {scriptcollection-4.4.60.dist-info → scriptcollection-4.4.61.dist-info}/METADATA +1 -1
- {scriptcollection-4.4.60.dist-info → scriptcollection-4.4.61.dist-info}/RECORD +7 -7
- {scriptcollection-4.4.60.dist-info → scriptcollection-4.4.61.dist-info}/WHEEL +0 -0
- {scriptcollection-4.4.60.dist-info → scriptcollection-4.4.61.dist-info}/entry_points.txt +0 -0
- {scriptcollection-4.4.60.dist-info → scriptcollection-4.4.61.dist-info}/top_level.txt +0 -0
|
@@ -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
|
-
|
|
244
|
-
|
|
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
|
-
|
|
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
|
|
|
@@ -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=
|
|
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=
|
|
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.
|
|
77
|
-
scriptcollection-4.4.
|
|
78
|
-
scriptcollection-4.4.
|
|
79
|
-
scriptcollection-4.4.
|
|
80
|
-
scriptcollection-4.4.
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|