Red Hat Bugzilla – Bug 1024845
rpmlint: Use Python 3 instead of Python 2
Last modified: 2015-07-10 12:02:39 EDT
Hi, we would like to use Python 3 on the default installation instead of Python 2 on Fedora 22.
While this package is not in minimal buildroot, it belongs to fedora-packager stack. We would like to switch to Python 3 there as well.
The goal here is, that for F22 you should use Python 3 instead of Python 2 in this package.
Please, help us update to Python 3 flawlessly.
Check if upstream already support Python 3, if yes, use it and add the support to the package.
If upstream doesn't support Python 3 yet, encourage it to do so by sending patches and offering your help.
When upstream is dead or unwilling to support Python 3, say so and we can solve the problem together.
Chances are, that you ARE the upstream. In that case, everything is easier, just do it yourself.
There is a table on wiki, that should list your package. Chances are, that you can see an upstream link that covers the problem. Anyway, please update the table with information you know.
I offer my help with this task, so if you have no idea, how to work on this, or it is just not your priority, don't hesitate to ask for help.
(As you've already realized, this is a bulk text, so if something is not quite exact about your package, sorry for that, just ask)
Note that I can work on patches that would introduce support for Python 3 (while keep it working with Python 2.6 and 2.7) while doing bz1019204
If you work on python 3 stuff, be sure to work on the latest upstream git code, it has some python 3 tweaks committed after the 1.5 release already.
Note that currently rpmlint is said to require python 2.x where x >= 4. If necessary for sanity while doing the 3.x work, dropping support for < 2.6 would be fine in my opinion.
I'd say this stuff and #1019204 would be better tracked upstream than here, not that people involved would be any different but...
(In reply to Ville Skyttä from comment #2)
> I'd say this stuff and #1019204 would be better tracked upstream than here,
> not that people involved would be any different but...
Agreed, but has no idea where that is. On sourceforge, I cannot file a new bug, as I'm not the member of the project.
(In reply to Miro Hrončok from comment #3)
> On sourceforge,
That's where it is.
> I cannot file a new bug, as I'm not the member of the project.
Oh, I wonder why they have such a silly default. Maybe it works now?
This bug appears to have been reported against 'rawhide' during the Fedora 22 development cycle.
Changing version to '22'.
More information and reason for this action is here:
Created attachment 1049874 [details]
Use python3 for F-23+
The next upstream rpmlint release (>= 1.7) will ship with Python 3 support. Here's a patch that builds a package using Python 3 on F-23+ for future reference.
rpmlint-1.7-1.fc23 is built with python3 support in rawhide.