Bug 1018525

Summary: Enh: Support python 3 package
Product: [Fedora] Fedora Reporter: Andy Grover <agrover>
Component: python-ethtoolAssignee: Miro Hrončok <mhroncok>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: acme, bazulay, cstratak, galtukho, jberan, lbalhar, mhroncok, ovasik, pviktori, redhat
Target Milestone: ---Keywords: FutureFeature, Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-ethtool-0.13-1.fc27 python-ethtool-0.13-1.fc26 Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-23 14:19:51 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1322027    
Attachments:
Description Flags
dist-git patch
none
dist-git patch cstratak: review+

Description Andy Grover 2013-10-12 23:00:08 UTC
I'm working on making targetcli package Python 3-compatible. Since python-ethtool is used by targetcli, this requires python-ethool also have a Python 3 version.

Feel free to assign this back to me if you'd like me to take a stab.

Comment 1 David Sommerseth 2013-10-17 22:55:23 UTC
I haven't yet started looking at Python 3 support yet.  First in line was to move it towards libnl-3 and clean up the code a bit.  This has come quite far, but still not released yet.  Planning on a release in the not too far future.

If you have any ideas or thoughts about the complexity to add support for Python 3, I'm all ears.

Comment 2 Andy Grover 2013-10-18 00:27:12 UTC
It doesn't look *too* bad, actually, just some slightly ugly ifdeffing around module init:

http://docs.python.org/3/howto/cporting.html

Whenever you wanted to roll it into your normal development cycle, I'd be happy to help with testing.

Comment 3 Antoni Segura Puimedon 2013-11-14 17:52:35 UTC
I submitted a first version of the patch for python 3 compatibility:
https://lists.fedorahosted.org/pipermail/python-ethtool-devel/2013/000022.html

Comment 4 Petr Viktorin (pviktori) 2016-01-16 14:57:33 UTC
Hello; what is the status of this bug?

I see there was a new patchset posted on the mailing list in 2014, with no reply: https://lists.fedorahosted.org/archives/list/python-ethtool-devel%40lists.fedorahosted.org/2014/10/

Comment 5 Gennadii Altukhov 2016-05-04 08:29:29 UTC
Hello David,

I would like to know the status of this bug because Spacewalk project uses ethtool, and now we need it for Python 3. Do you need any help with this bug?

Comment 6 David Sommerseth 2016-05-12 11:44:56 UTC
Re-assigning this bz to Gennadii Altukhov, as he will take over the maintenance of python-ethtool

Comment 7 Lumír Balhar 2016-07-18 12:26:07 UTC
Hello.

Is there any progress? Do you need help?

Have a nice day.
Lumir

Comment 8 Gennadii Altukhov 2016-07-18 12:39:55 UTC
Hello Lumir,

I will apply patches in near future. Sorry for the delay.

Comment 9 Charalampos Stratakis 2016-08-17 14:28:13 UTC
Upstream maintainer has pushed commits for Python 3 support and released a new version, all that remains is porting of the SPEC file.

Comment 10 Charalampos Stratakis 2016-09-08 09:14:59 UTC
Also the setup.py upstream needs to be modified for the new version.

Created a ticket here:
https://fedorahosted.org/python-ethtool/ticket/2

Comment 11 Charalampos Stratakis 2016-09-14 16:02:21 UTC
Checked the code and still a lot of changes need to be made upstream. With latest commits only the C parts of the code are python 3 compatible.

Changing to block the upstream tracker

Comment 12 Lumír Balhar 2017-05-15 10:45:16 UTC
Hello.

We did some changes in source code and now we have python-ethtool version 0.12 which should be Python 2/3 compatible.

Could you please try to build it respectively make separated subpackages for Python 2 and 3? If you need help, there is a guide for porting RPM packages [0] and/or we can help you of course.

Have a nice day.

[0] https://python-rpm-porting.readthedocs.io/en/latest/application-modules.html#

Comment 13 Miro Hrončok 2017-06-13 15:35:57 UTC
Taking over this. Just release ethtool 0.13 on PyPI and will update the package in rawhide and F26 soon. Speak against it now or never :D

Comment 14 Miro Hrončok 2017-06-13 16:18:35 UTC
Created attachment 1287378 [details]
dist-git patch

Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=20012215

Comment 15 Miro Hrončok 2017-06-13 16:21:19 UTC
I see I've used python-setuptools. Will change that to python2-setuptools.

Comment 16 Miro Hrončok 2017-06-13 16:22:39 UTC
arm failure. will resubmit.

Comment 17 Miro Hrončok 2017-06-13 16:29:32 UTC
Created attachment 1287381 [details]
dist-git patch

Working Koji scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=20012263

Comment 18 Charalampos Stratakis 2017-06-20 15:02:14 UTC
Patch LGTM. Tested on mock as well and everything is working as expected under python3. No regressions noted and the respective modules import successfully under python2 and python3.

Comment 20 Fedora Update System 2017-06-20 16:28:11 UTC
python-ethtool-0.13-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-6b1e4c28dc

Comment 21 Fedora Update System 2017-06-21 06:24:25 UTC
python-ethtool-0.13-1.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-6b1e4c28dc

Comment 22 Fedora Update System 2017-06-23 14:19:51 UTC
python-ethtool-0.13-1.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.