Bug 1360713

Summary: python-xlib: Provide a Python 3 subpackage
Product: [Fedora] Fedora Reporter: Dominika Krejčí <dkrejci>
Component: python-xlibAssignee: Orion Poplawski <orion>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abdel.g.martinez.l, jspaleta, lbalhar, leigh123linux, orion
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-xlib-0.17-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-09-30 22:57:45 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: 1285816, 1312032    
Attachments:
Description Flags
Add Python 3 & version update none

Description Dominika Krejčí 2016-07-27 11:32:41 UTC
Upstream, this software supports Python 3 [0]. Please provide a Python 3
package for Fedora.


According to the Python packaging guidelines [1], software must be
packaged for Python 3 if upstream supports it.
The guidelines give detailed information on how to do this, and even
provide an example spec file [2].

The current best practice is to provide subpackages for the two Python
versions (called "Common SRPM" in the guidelines). Alternatively, if
nothing depends on your Python2 package, you can just switch to Python 3
entirely.

It's OK to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 24 as well.


If you need more instructions, a guide for porting Python-based RPMs is
available at [3].
If anything is unclear, or if you need any kind of assistance with the
porting, you can ask on IRC (#fedora-python on Freenode), or reply here.
We'll be happy to help!


[0] https://github.com/python-xlib/python-xlib/releases/tag/0.16
[1] https://fedoraproject.org/wiki/Packaging:Python
[2] https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec_file
[3] http://python-rpm-porting.readthedocs.io/

Comment 1 Dominika Krejčí 2016-08-25 12:36:07 UTC
Hi Abdel,
how is it going? Do you need any help?

Comment 2 Dominika Krejčí 2016-08-31 12:50:59 UTC
Created attachment 1196359 [details]
Add Python 3 & version update

Hi Abdel,
here is the change needed to add Python 3 support and update the version. Could you please review it and do the update?

Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=15450087

Also tested in Mock (fedora-23-x86_64, fedora-24-x86_64, fedora-25-x86_64, fedora-rawhide-x86_64, fedora-rawhide-i386).

Comment 3 Lumír Balhar 2016-09-12 10:15:26 UTC
Hello, Dominiko.

I tried to do a review of your patch but I think that your changes could have big impact on whole package and I also think that maintainer should look on non-working patches and decide what to do.

Comment 4 Orion Poplawski 2016-09-30 22:39:24 UTC
*** Bug 1361018 has been marked as a duplicate of this bug. ***