[UG] Porting urlgrabber to Python 3

James Antill james at fedoraproject.org
Wed Jun 25 21:06:40 UTC 2014


On Wed, 2014-06-25 at 17:56 +0200, Tomas Radej wrote:
> Hi.
> 
> On 06/25/2014 05:27 PM, James Antill wrote:
> > On Wed, 2014-06-25 at 16:49 +0200, Tomas Radej wrote:
> >> FYI: This message pertains to urlgrabber, whose website instructed me to
> >> post to this list.
> >>
> >> Hi, all.
> >>
> >> In context of the large ongoing effort to port Fedora's core parts to
> >> Python 3, I took a look at urlgrabber, as some key packages depend on
> >> it, and we need it running on Python 3.
> >>
> >> I would like to ask you if you are OK with me doing the port of the
> >> package to Python 3 in the first place, and if so, whether there are
> >> some non-obvious constraints or limitations. Another question is what
> >> versions of Python you intend to support, since I inferred from the code
> >> comments that some pretty old versions of Python are (or were) being
> >> calculated with. I would submit patches for your review and potential
> >> inclusion as a matter of course.
> >
> >   Well, yum is not being ported to py3 and AIUI dnf doesn't use
> > urlgrabber. So there are currently no plans to do anything with
> > urlgrabber, that I know of.
> 
> Of course, I understand that the yum community is not the target 
> audience of such a change. The packages in question which require 
> urlgrabber are e. g. anaconda, pykickstart or virt-manager.
> 
> My intention is that *I* would perform the change

 Sure, sounds fine.

>  This is the reason why I asked which versions 
> are intended to be still supported should the change happen, because 
> having the code run on e. g. both Python 2.4 and 3.4 is a bit tricky, to 
> say the least.

 It's probably easier to work and just have a py3 version, leaving the
py2 version at whatever is there now. But if you want to merge both
languages for some reason, then it only needs to work on the latest
Fedora py2.x ... as there's no reason to ever backport it.

>  >   It'd probably be best if the main package that is going to be using
>  > urlgrabber in F22+ owned it.
> 
> If by 'owning' you mean bundling, that's rather not possible, because a 
> multitude of packages depend on it, as stated above.

 No, literally just whoever wants to be responsible getting
co-maintainer status in Fedora and maybe upstream.



More information about the Yum-devel mailing list