Skip to content

feat: serve PyPI and Simple JSON from the content app - #1350

Closed
TenSt wants to merge 1 commit into
pulp:mainfrom
TenSt:stepan/feat-add-contente-handler-json
Closed

feat: serve PyPI and Simple JSON from the content app#1350
TenSt wants to merge 1 commit into
pulp:mainfrom
TenSt:stepan/feat-add-contente-handler-json

Conversation

@TenSt

@TenSt TenSt commented Aug 24, 2026

Copy link
Copy Markdown

Add PythonDistribution.content_handler_json so the content app returns the same PyPI JSON and PEP 691 Simple JSON as the /pypi/ API when Accept prefers JSON. Package artifacts stay binary, and Simple JSON uses the official media type so pip can consume it.

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

Note: this PR is dependent on pulp/pulpcore#7996. Making it draft until that one is merged.

Add PythonDistribution.content_handler_json so the content app returns the same PyPI JSON and PEP 691 Simple JSON as the /pypi/ API when Accept prefers JSON. Package artifacts stay binary, and Simple JSON uses the official media type so pip can consume it.

"Assisted-By: Cursor"
@gerrod3

gerrod3 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Why is this needed? Doesn't seem necessary.

@dkliban

dkliban commented Aug 24, 2026

Copy link
Copy Markdown
Member

@gerrod3 This is not what i expected this change to bring. The goal is to provide a JSON representation of content present in the repository version associated with the distribution. this is to be used with a UI that shows what packages are in the repository.

@TenSt

TenSt commented Aug 25, 2026

Copy link
Copy Markdown
Author

Why is this needed? Doesn't seem necessary.

We had a discussion with @dkliban about it and I will close this one if favor of the future one.

@TenSt TenSt closed this Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants