Re: Introducing pyp2rpm - A python package to rpm specfile convertor

2012-06-19 Thread Bohuslav Kabrda
- Original Message - > Hi all, > for past few days, I've been working on a project called pyp2rpm. > It's a tool that allows you to easily convert python package from > PyPI to an RPM specfile. I would like to get it tested before I > package it into Fedora, so if anyone is interested, here

Re: Introducing pyp2rpm - A python package to rpm specfile convertor

2012-05-25 Thread Bohuslav Kabrda
- Original Message - > On 05/23/2012 06:55 PM, Bohuslav Kabrda wrote: > >> # monkey patch ZipFile to behave like TarFile > >> ZipFile.getmembers = ZipFile.infolist > >> ZipFile.extractfile = ZipFile.open > >> ZipFile.open = ZipFile # this line is at fault here > >> ZipInfo.name = ZipInfo.fi

Re: Introducing pyp2rpm - A python package to rpm specfile convertor

2012-05-25 Thread Nick Coghlan
On 05/23/2012 06:55 PM, Bohuslav Kabrda wrote: >> # monkey patch ZipFile to behave like TarFile >> ZipFile.getmembers = ZipFile.infolist >> ZipFile.extractfile = ZipFile.open >> ZipFile.open = ZipFile # this line is at fault here >> ZipInfo.name = ZipInfo.filename >> >> Real zipfile.ZipFile.open op