Project

Profile

Help

Issue #1466

closed

package version discrepancy in pypi API causes problems for sync

Added by mhrivnak almost 9 years ago. Updated over 5 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
-
Sprint/Milestone:
-
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version - Python:
Platform Release:
Target Release - Python:
OS:
Triaged:
Yes
Groomed:
No
Sprint Candidate:
No
Tags:
Pulp 2
Sprint:
Quarter:

Description

Package "numpy" at version 1.10.0.post2 has a version discrepancy. Looking in PKG_INFO, we clearly see:

Version: 1.10.0.post2

But when querying the pypi API as such:

curl https://pypi.python.org/pypi/numpy/json/

We find the version represented as simply "1.10.0":

        "1.10.0": [
            {
                "has_sig": true, 
                "upload_time": "2015-10-07T19:47:09", 
                "comment_text": "", 
                "python_version": "source", 
                "url": "https://pypi.python.org/packages/source/n/numpy/numpy-1.10.0.post2.tar.gz", 
                "md5_digest": "5594d8c5c006db8901fca585a29f3620", 
                "downloads": 53995, 
                "filename": "numpy-1.10.0.post2.tar.gz", 
                "packagetype": "sdist", 
                "size": 4082399
            }, 

During a sync, this makes it difficult to know if pulp already has that package. It appears the only option is to actually download it and inspect it, unless we are comfortable ripping the version out of the filename. For now, I will proceed with downloading the package, and handling the possibility that a NotUniqueError will be raised when saving.


Related issues

Related to Python Support - Issue #1465: All versions in pulp get associated during sync, even if not in remote feedCLOSED - CURRENTRELEASEmhrivnakActions

Also available in: Atom PDF