Project

Profile

Help

Story #3197

As a User, I can create a PythonPackageContent from an Artifact uploaded to Pulp

Added by amacdona@redhat.com almost 2 years ago. Updated 6 months ago.

Status:
MODIFIED
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

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

Description

The upload workflow in Pulp 3 is:
  1. Use pulpcore REST API to upload bits and create an Artifact
  2. POST to a Detail ContentUnit (api/v3/content/python/) to create a PythonPackageContent from a specified Artifact

This story is to make sure that (2) works. (1) Does not require anything from the plugin.

In Pulp 2, we create Uploaded Python ContentUnits here [0] by using twine, but we should move away from doing it that way. [1] We only use a small part of twine (which isn't really supposed to be used as a library), so we will need to implement that functionality. [2]

Extra credit: Put at least 1 of each upload type in https://github.com/PulpQE/pulp-fixtures (half extra credit, provide a link to 1 of each here)

[0]: https://github.com/pulp/pulp_python/blob/master/plugins/pulp_python/plugins/models.py#L125-L150
[1]: https://pulp.plan.io/issues/3157
[2]: https://github.com/pypa/twine/blob/3efd3b5d2715f537096b95cb2e6853e02990b059/twine/package.py


Checklist


Related issues

Related to Python Support - Refactor #3157: Refactor pulp-python to remove dependency on twine CLOSED - WONTFIX Actions

Associated revisions

Revision 3f8b9a62 View on GitHub
Added by werwty over 1 year ago

Create a PythonPackageContent from an Artifact uploaded to Pulp
Update content unit creation so it takes only a filename and artifact href

closes #3197, #3604

https://pulp.plan.io/issues/3197
https://pulp.plan.io/issues/3604

History

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

  • Related to Refactor #3157: Refactor pulp-python to remove dependency on twine added

#2 Updated by bizhang almost 2 years ago

  • Groomed changed from No to Yes

#3 Updated by bizhang almost 2 years ago

  • Sprint/Milestone set to 51

#4 Updated by bizhang almost 2 years ago

  • Sprint/Milestone deleted (51)

#5 Updated by bizhang over 1 year ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bizhang

#6 Updated by bizhang over 1 year ago

  • Status changed from ASSIGNED to POST

#7 Updated by bizhang over 1 year ago

  • Sprint/Milestone set to 3.0 beta release

#8 Updated by werwty over 1 year ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100

#9 Updated by bizhang over 1 year ago

  • Tags Pulp 3 added

#10 Updated by bmbouter 6 months ago

  • Tags deleted (Pulp 3)

Please register to edit this issue

Also available in: Atom PDF