get metadata from wheel files

Bug #1227788 reported by Holger Krekel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pkginfo
Fix Released
Undecided
Tres Seaver

Bug Description

It seems pkginfo doesn't look into ".whl" files. They are like zip files but have a METADATA file instead of a PKG-INFO one, and carry metadata version 2.0, see http://www.python.org/dev/peps/pep-0426/.

I am using pkginfo from "devpi", see http://doc.devpi.net . Thanks for caring!

Revision history for this message
Holger Krekel (hpk) wrote :

here is code that could be rather directly used with pkginfo (it extends pkingo) to support wheels:

https://github.com/dstufft/twine/blob/master/twine/wheel.py

Tres Seaver (tseaver)
Changed in pkginfo:
status: New → Confirmed
Revision history for this message
Tres Seaver (tseaver) wrote :

I heard no response from Donald about landing wheel support from his 'twine' project in 'pkginfo'. Given that it derives from 'pkginfo.Distribution' already, borrowed code from it, and is distributed under a permissive license, I landed it today, with slight modifications.

 http://bazaar.launchpad.net/~tseaver/pkginfo/trunk/revision/123
 http://bazaar.launchpad.net/~tseaver/pkginfo/trunk/revision/124
 http://bazaar.launchpad.net/~tseaver/pkginfo/trunk/revision/125

Changed in pkginfo:
assignee: nobody → Tres Seaver (tseaver)
status: Confirmed → Fix Committed
milestone: none → 1.2
Revision history for this message
Tres Seaver (tseaver) wrote :
Changed in pkginfo:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.