Project

Profile

Help

Story #2886

As a user, I can publish a Python repository in a way that can be consumed by Pulp

Added by amacdona@redhat.com about 2 years ago. Updated 4 months ago.

Status:
NEW
Priority:
High
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

0%

Platform Release:
Blocks Release:
Target Release - Python:
Backwards Incompatible:
No
Groomed:
No
Sprint Candidate:
No
Tags:
QA Contact:
Complexity:
Smash Test:
Verified:
No
Verification Required:
No
Sprint:

Description

This story is to implement PyPI's json API. This story is successful when a second Pulp can sync from a repository published by this Pulp.

Since we want to use the resulting api for both upload from twine, and syncing from Pulp we should provide a 'live' endpoint for the packages without using Pulp's publication/distribution mechanism, since those objects are only used for a 'flat' publish.

We would need a new view that would dynamically generate the json and the url for each PythonPackageContent, the 'url' in the json would link to the location of the package in the Content View.

This new view would provide an endpoint like

/pypi/{repo-name}/{package-name}/json
for each package in a repository. This new view would not have to support upload requests from twine, as that will be done in #2887


Related issues

Blocked by Python Support - Story #2884: As a user I can sync from PyPI MODIFIED Actions

History

#1 Updated by amacdona@redhat.com about 2 years ago

  • Blocked by Story #2884: As a user I can sync from PyPI added

#2 Updated by mhrivnak about 2 years ago

Do you have any thoughts or a recommendation around prioritizing this one vs #2885 ?

#3 Updated by amacdona@redhat.com about 2 years ago

This is only necessary for Pulp syncing from Pulp, so if only considering this plugin, this could be a pretty low priority. It is in the MVP, but could be done near the release.

This story could go into some exciting new territory, to create a custom API endpoint that implements PyPI's json API. Since the json API is simpler than puppet or crane, this story might be worth doing soon as a prototype for other plugins.

#4 Updated by bizhang over 1 year ago

  • Sprint/Milestone set to 51

#5 Updated by bizhang over 1 year ago

  • Description updated (diff)

#6 Updated by bizhang over 1 year ago

  • Sprint/Milestone deleted (51)

#7 Updated by bizhang about 1 year ago

  • Sprint/Milestone set to 3.0 GA

#8 Updated by bizhang about 1 year ago

  • Priority changed from Normal to High

#9 Updated by bmbouter 4 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF