Bug 1024845 - rpmlint: Use Python 3 instead of Python 2
rpmlint: Use Python 3 instead of Python 2
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: rpmlint (Show other bugs)
22
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Tom "spot" Callaway
Fedora Extras Quality Assurance
:
Depends On:
Blocks: PY3PACKAGER
  Show dependency treegraph
 
Reported: 2013-10-30 09:52 EDT by Miro Hrončok
Modified: 2015-07-10 12:02 EDT (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-10 12:02:39 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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

  None (edit)
Description Miro Hrončok 2013-10-30 09:52:38 EDT
Hi, we would like to use Python 3 on the default installation instead of Python 2 on Fedora 22.

https://fedoraproject.org/wiki/Changes/Python_3_as_Default

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.

https://fedoraproject.org/wiki/User:Churchyard/python3#fedora-packager

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 09:53:49 EDT
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 10:23:34 EDT
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 12:17:48 EDT
(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 15:54:04 EDT
(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 10:10:42 EST
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:
https://fedoraproject.org/wiki/Fedora_Program_Management/HouseKeeping/Fedora22
Comment 6 Ville Skyttä 2015-07-08 09:25:26 EDT
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 12:02:39 EDT
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.