Bug 1024845 - rpmlint: Use Python 3 instead of Python 2
Summary: rpmlint: Use Python 3 instead of Python 2
Alias: None
Product: Fedora
Classification: Fedora
Component: rpmlint
Version: 22
Hardware: Unspecified
OS: Unspecified
Target Milestone: ---
Assignee: Tom "spot" Callaway
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2013-10-30 13:52 UTC by Miro Hrončok
Modified: 2015-07-10 16:02 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-07-10 16:02:39 UTC
Type: Bug

Attachments (Terms of Use)
Use python3 for F-23+ (2.52 KB, patch)
2015-07-08 13:25 UTC, Ville Skyttä
no flags Details | Diff

Description Miro Hrončok 2013-10-30 13:52:38 UTC
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)

Comment 1 Miro Hrončok 2013-10-30 13:53:49 UTC
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

Comment 2 Ville Skyttä 2013-10-31 14:23:34 UTC
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...

Comment 3 Miro Hrončok 2013-10-31 16:17:48 UTC
(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.

Comment 4 Ville Skyttä 2013-10-31 19:54:04 UTC
(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?

Comment 5 Jaroslav Reznik 2015-03-03 15:10:42 UTC
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:

Comment 6 Ville Skyttä 2015-07-08 13:25:26 UTC
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.

Comment 7 Tom "spot" Callaway 2015-07-10 16:02:39 UTC
rpmlint-1.7-1.fc23 is built with python3 support in rawhide.

Note You need to log in before you can comment on or make changes to this bug.