Commit 591cb52
authored
Expose wheel upload time via data-upload-time in HTML index (#8000)
## Summary
- Adds `data-upload-time` attribute (RFC 3339, UTC with `Z` suffix) to
each wheel anchor in
the PEP 503 simple HTML index emitted by `s3_management/manage_v2.py`.
- Timestamp is sourced from the S3 `LastModified` returned by
`ListObjectsV2`, threaded
through a new `S3Object.last_modified` field populated in
`fetch_object_names` / `from_S3`.
- Unblocks dependency tooling (e.g. supply-chain grace-period checks)
that needs per-file
upload times, per pytorch/pytorch#178980.
## Test plan
- [ ] `python s3_management/manage_v2.py whl/nightly --do-not-upload`
and spot-check a
generated `index.html` — each `<a>` has
`data-upload-time="YYYY-MM-DDTHH:MM:SSZ"`.
- [ ] Confirm existing attributes (`data-dist-info-metadata`,
`data-core-metadata`,
`#sha256=` fragment) still render correctly alongside the new attribute.
- [ ] Verify libtorch/source_code index generation is unaffected (those
HTML methods don't
consume `last_modified`).1 parent c57427d commit 591cb52
1 file changed
Lines changed: 18 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
561 | 561 | | |
562 | 562 | | |
563 | 563 | | |
| 564 | + | |
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
| |||
851 | 852 | | |
852 | 853 | | |
853 | 854 | | |
| 855 | + | |
| 856 | + | |
854 | 857 | | |
855 | 858 | | |
856 | 859 | | |
| |||
1332 | 1335 | | |
1333 | 1336 | | |
1334 | 1337 | | |
1335 | | - | |
1336 | | - | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
1337 | 1348 | | |
1338 | 1349 | | |
1339 | 1350 | | |
1340 | 1351 | | |
1341 | 1352 | | |
1342 | 1353 | | |
1343 | 1354 | | |
1344 | | - | |
| 1355 | + | |
1345 | 1356 | | |
1346 | 1357 | | |
1347 | 1358 | | |
| |||
1362 | 1373 | | |
1363 | 1374 | | |
1364 | 1375 | | |
1365 | | - | |
| 1376 | + | |
1366 | 1377 | | |
1367 | 1378 | | |
1368 | 1379 | | |
| |||
1447 | 1458 | | |
1448 | 1459 | | |
1449 | 1460 | | |
| 1461 | + | |
1450 | 1462 | | |
1451 | | - | |
| 1463 | + | |
1452 | 1464 | | |
1453 | 1465 | | |
1454 | 1466 | | |
| |||
0 commit comments