Bug 1311533

Summary: python-django-haystack: Provide a Python 3 subpackage
Product: [Fedora] Fedora Reporter: Tomas Orsava <torsava>
Component: python-django-haystackAssignee: Matthias Runge <mrunge>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: dkrejci, jberan, pviktori, sgallagh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-django-haystack-2.5.0-1.fc26 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-03 09:51:29 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
spec diff
none
updated spec file
none
updated spec file
none
Updated spec file none

Description Tomas Orsava 2016-02-24 12:23:02 UTC
Upstream, this software supports Python 3. Please provide a Python 3
package for Fedora.


According to the Python packaging guidelines [0], 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 [1].

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 fine to do this in Rawhide only.


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://fedoraproject.org/wiki/Packaging:Python
[1] https://fedoraproject.org/wiki/Packaging:Python#Example_common_spec_file

Comment 1 Fedora Admin XMLRPC Client 2016-02-24 16:05:42 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora Admin XMLRPC Client 2016-02-24 19:40:10 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Jan Beran 2016-07-22 09:02:30 UTC
Hi Matthias, would you agree when I prepare a Python 3 patch?

Comment 4 Matthias Runge 2016-07-22 09:12:07 UTC
Hi Jan, yes, please go ahead! 

Do you want commit acls? If yes, please request access in packagedb.
Any help is greatly appreciated.

Comment 5 Jan Beran 2016-07-22 14:39:31 UTC
I work on that.

Comment 6 Jan Beran 2016-07-22 19:16:37 UTC
Created attachment 1182933 [details]
spec diff

SPEC diff file attached.

Comment 7 Jan Beran 2016-07-22 19:19:21 UTC
Created attachment 1182934 [details]
updated spec file

Updated SPEC file attached.

Comment 8 Jan Beran 2016-07-25 08:59:09 UTC
Created attachment 1183638 [details]
updated spec file

Corrections in python2-django-haystack package:
python-django -> python2-django
python-sphinx -> python2-sphinx

Comment 9 Tomas Orsava 2016-07-25 16:23:46 UTC
Hi Jan!

The patch looks really good!

The only issue I could find was that there are two entries missing from the changelog—you should do a git pull before starting to edit. Thankfully, however, both entries are from a mass rebuild, so no changes were made to the actual contents of the spec file.

Comment 10 Jan Kurik 2016-07-26 04:22:36 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 11 Jan Beran 2016-07-29 17:33:01 UTC
Hi Tomáš, thank you for the review. As no changes are required, I keep the patch unmodified.

Comment 12 Jan Beran 2016-08-01 12:49:38 UTC
Hi Matthias, the attached spec file is ready to provide the Python 3 subpackage.

Comment 13 Jan Beran 2016-08-03 08:05:47 UTC
Created attachment 1186977 [details]
Updated spec file

Hi Matthias,

I have updated the spec file according to your recommendation (bug #1311552). Would it be suitable?

Comment 14 Matthias Runge 2016-08-03 09:51:29 UTC
Jan, thank you, looks better. I just applied your patch.