feat(pypi): emit PEP 700 fields in the simple JSON - #963
Merged
Conversation
|
🐳 Test image pushed: docker pull ghcr.io/getnora-io/nora:pr-963
docker run --rm -p 4000:4000 ghcr.io/getnora-io/nora:pr-963 |
ertime037
approved these changes
Sep 6, 2026
Add meta.api-version 1.1, a project-level versions[] list, and per-file upload-time (RFC3339, from the cached dates.json) + size (from storage) to the PyPI Simple JSON. Lets clients such as Renovate compute a minimum release age; before this only PEP 691 (filename/url/hashes) was exposed though upload-time was already cached for digest-quarantine. Fields are additive and omitted when unknown (upstream-only files). Closes #896.
devitway
force-pushed
the
feat/896-pypi-pep700
branch
from
September 6, 2026 04:49
9a25f48 to
8416bf1
Compare
|
🐳 Test image pushed: docker pull ghcr.io/getnora-io/nora:pr-963
docker run --rm -p 4000:4000 ghcr.io/getnora-io/nora:pr-963 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the PEP 700 fields to NORA's PyPI Simple JSON (PEP 691) responses:
meta.api-versionis now1.1versionslistupload-time(RFC 3339) andsize(bytes)This lets clients that key off release metadata — e.g. Renovate's
minimumReleaseAge— work against a NORA-proxied index. NORA already recorded the upstreamupload-time(used for the download-quarantine clock); this surfaces it, together with the file size from storage and the version list parsed from the filenames, in the JSON index.The fields are additive and omitted when unknown (e.g.
sizefor an upstream-only file that has not been cached yet), so existing PEP 691 consumers are unaffected.Closes #896.