Skip to content

🐛 fix(pypi): honor PEP 792 project status - #1866

Merged
gaborbernat merged 1 commit into
mainfrom
fix/pep792-status-1190
Aug 30, 2026
Merged

gaborbernat merged 1 commit into
mainfrom
fix/pep792-status-1190

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Aug 30, 2026 •

Copy link
Copy Markdown
Member

PEP 792 puts PyPI project status in a top-level project-status object. Peryx read and emitted the former nested shape, so mirrors discarded status markers and served nonconforming JSON. 📦

Peryx parses and validates the object before cache storage, then emits it in Simple JSON and HTML. It holds streaming output until it has read the API version and status, so a late quarantine marker cannot expose file entries. Peryx normalizes cached pages in the legacy shape on read.

Closes #1190

@gaborbernat gaborbernat added the bug Something isn't working label Aug 30, 2026
@gaborbernat gaborbernat self-assigned this Aug 30, 2026
@codspeed

codspeed Bot commented Aug 30, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 23 untouched benchmarks
⏩ 139 skipped benchmarks1


Comparing fix/pep792-status-1190 (94cacfb) with main (b8436e6)

Open in CodSpeed

Footnotes

  1. 139 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

Move project status to the top-level JSON object required by PEP 792.
Parse and validate it before files can stream so quarantine remains
independent of member order.
@gaborbernat
gaborbernat force-pushed the fix/pep792-status-1190 branch from 02d6101 to 94cacfb Compare August 30, 2026 04:40
@gaborbernat
gaborbernat merged commit a5dc716 into main Aug 30, 2026
26 checks passed
@gaborbernat
gaborbernat deleted the fix/pep792-status-1190 branch August 30, 2026 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use the PEP 792 project-status JSON shape

1 participant