Project

Profile

Help

Refactor #3157

closed

Refactor pulp-python to remove dependency on twine

Added by bizhang almost 7 years ago. Updated about 4 years ago.

Status:
CLOSED - WONTFIX
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Platform Release:
Target Release - Python:
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

We've recently had an issue where the twine package in fedora rawhide [0] stopped providing python2-twine.

The maintainer for twine stated that he would "look at building a python2-twine package again that doesn't provide any binaries" [1] This would resolves our problem for the short term (until f28 is released in May 2018). But in the long run we should remove our dependency on twine.

We should refactor our pulp-python Package model [2] to use pkg_resources and pkginfo to parse package info, since twine is not meant to be a library and can change its internal APIs without warning.

[0] https://apps.fedoraproject.org/packages/python-twine
[1] https://bugzilla.redhat.com/show_bug.cgi?id=1512552#c3
[2] https://github.com/pulp/pulp_python/blob/77ec66251cc12e8b4def37c30c0381a64d97690e/plugins/pulp_python/plugins/models.py#L138


Related issues

Related to Python Support - Story #3197: As a User, I can create a PythonPackageContent from an Artifact uploaded to PulpMODIFIEDbizhang

Actions

Also available in: Atom PDF