c2cciutils 1.6.7.dev2__py3-none-any.whl → 1.6.8.dev3__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.
- c2cciutils/scripts/publish.py +17 -4
- {c2cciutils-1.6.7.dev2.dist-info → c2cciutils-1.6.8.dev3.dist-info}/METADATA +1 -1
- {c2cciutils-1.6.7.dev2.dist-info → c2cciutils-1.6.8.dev3.dist-info}/RECORD +6 -6
- {c2cciutils-1.6.7.dev2.dist-info → c2cciutils-1.6.8.dev3.dist-info}/LICENSE +0 -0
- {c2cciutils-1.6.7.dev2.dist-info → c2cciutils-1.6.8.dev3.dist-info}/WHEEL +0 -0
- {c2cciutils-1.6.7.dev2.dist-info → c2cciutils-1.6.8.dev3.dist-info}/entry_points.txt +0 -0
c2cciutils/scripts/publish.py
CHANGED
|
@@ -215,6 +215,9 @@ def main() -> None:
|
|
|
215
215
|
|
|
216
216
|
security = c2cciutils.security.Security(security_text)
|
|
217
217
|
version_index = security.headers.index("Version")
|
|
218
|
+
alternate_tag_index = (
|
|
219
|
+
security.headers.index("Alternate Tag") if "Alternate Tag" in security.headers else -1
|
|
220
|
+
)
|
|
218
221
|
|
|
219
222
|
row_index = -1
|
|
220
223
|
for index, row in enumerate(security.data):
|
|
@@ -223,11 +226,21 @@ def main() -> None:
|
|
|
223
226
|
break
|
|
224
227
|
|
|
225
228
|
alt_tags = set()
|
|
226
|
-
if
|
|
227
|
-
|
|
228
|
-
|
|
229
|
+
if alternate_tag_index >= 0 and row_index >= 0:
|
|
230
|
+
alt_tags = {
|
|
231
|
+
t.strip() for t in security.data[row_index][alternate_tag_index].split(",") if t.strip()
|
|
232
|
+
}
|
|
229
233
|
if security.data[-1][version_index] == version:
|
|
230
|
-
|
|
234
|
+
add_latest = True
|
|
235
|
+
for data in security.data:
|
|
236
|
+
row_tags = {t.strip() for t in data[alternate_tag_index].split(",") if t.strip()}
|
|
237
|
+
print(row_tags)
|
|
238
|
+
if "latest" in row_tags:
|
|
239
|
+
print("latest found in ", row_tags)
|
|
240
|
+
add_latest = False
|
|
241
|
+
break
|
|
242
|
+
if add_latest:
|
|
243
|
+
alt_tags.add("latest")
|
|
231
244
|
|
|
232
245
|
images_src: set[str] = set()
|
|
233
246
|
images_full: list[str] = []
|
|
@@ -30,12 +30,12 @@ c2cciutils/scripts/k8s/wait.py,sha256=qzQn6hbB9p1CX4bUxrkukPnbu_p6oRNem29WiMtplN
|
|
|
30
30
|
c2cciutils/scripts/main.py,sha256=pj9gPIrmDUctVPEtaQQGZo-7k7mMeIs14sKQ7w6Sw1Y,1162
|
|
31
31
|
c2cciutils/scripts/pin_pipenv.py,sha256=jBTwlolcEL0MUyq6VYzO-adkcL1gqN7B3kBb3UjTo2k,2150
|
|
32
32
|
c2cciutils/scripts/pr_checks.py,sha256=lhCt7COlqSm26ue1xNSx4zReTA-Nxj3wHA0a8GEU-MU,2182
|
|
33
|
-
c2cciutils/scripts/publish.py,sha256=
|
|
33
|
+
c2cciutils/scripts/publish.py,sha256=46PCD44taW7nbs5vXfwzodTCdvbWYjjwNZ8l8zZETMw,19266
|
|
34
34
|
c2cciutils/scripts/trigger_image_update.py,sha256=UPCSgFcllewo1NOC7kUkJ2QMXU0dCA2QAq6LFQHr0Uw,2780
|
|
35
35
|
c2cciutils/scripts/version.py,sha256=gqg4l5Lm3ttdIziB2GKPiXn5gDsQboRa_KyiF4lIWf0,7630
|
|
36
36
|
c2cciutils/security.py,sha256=X4qI1xhKoeRVRSpHV5VHNgYpEYkLHiC7D3XFdtlDAVQ,1511
|
|
37
|
-
c2cciutils-1.6.
|
|
38
|
-
c2cciutils-1.6.
|
|
39
|
-
c2cciutils-1.6.
|
|
40
|
-
c2cciutils-1.6.
|
|
41
|
-
c2cciutils-1.6.
|
|
37
|
+
c2cciutils-1.6.8.dev3.dist-info/entry_points.txt,sha256=jPDp7KeB0Fz_TpOwbOODeW2WEcdLNJZACPtKpRqtHs4,1030
|
|
38
|
+
c2cciutils-1.6.8.dev3.dist-info/LICENSE,sha256=pK1gU5i1jYBv--vi5omcf6-86pYmAWk6ZGbdERjAgcw,1307
|
|
39
|
+
c2cciutils-1.6.8.dev3.dist-info/WHEEL,sha256=gSF7fibx4crkLz_A-IKR6kcuq0jJ64KNCkG8_bcaEao,88
|
|
40
|
+
c2cciutils-1.6.8.dev3.dist-info/METADATA,sha256=plKkYyQHJvZmyWwfCWVQToUQYUOsSrRWfe0uiAufSkU,19656
|
|
41
|
+
c2cciutils-1.6.8.dev3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|