Project

Profile

Help

Story #3197

closed

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

Added by amacdona@redhat.com almost 7 years ago. Updated almost 4 years ago.

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

100%

Estimated time:
Platform Release:
3.0.0
Target Release - Python:
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Quarter:

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


Related issues

Related to Python Support - Refactor #3157: Refactor pulp-python to remove dependency on twineCLOSED - WONTFIX

Actions
Actions #1

Updated by amacdona@redhat.com almost 7 years ago

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

Updated by bizhang almost 7 years ago

  • Groomed changed from No to Yes
Actions #3

Updated by bizhang almost 7 years ago

  • Sprint/Milestone set to 51
Actions #4

Updated by bizhang almost 7 years ago

  • Sprint/Milestone deleted (51)
Actions #5

Updated by bizhang over 6 years ago

  • Status changed from NEW to ASSIGNED
  • Assignee set to bizhang
Actions #6

Updated by bizhang over 6 years ago

  • Status changed from ASSIGNED to POST
Actions #7

Updated by bizhang over 6 years ago

  • Sprint/Milestone set to 3.0 beta release

Added by werwty over 6 years ago

Revision 3f8b9a62 | View on GitHub

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

Actions #8

Updated by werwty over 6 years ago

  • Status changed from POST to MODIFIED
  • % Done changed from 0 to 100
Actions #9

Updated by bizhang over 6 years ago

  • Tags Pulp 3 added
Actions #10

Updated by bmbouter over 5 years ago

  • Tags deleted (Pulp 3)
Actions #11

Updated by dalley almost 4 years ago

  • Platform Release set to 3.0.0

Also available in: Atom PDF