Bug 1312333

Summary: python-flask-principal: Provide a Python 3 subpackage
Product: [Fedora] Fedora Reporter: Tomas Orsava <torsava>
Component: python-flask-principalAssignee: Richard Marko <rmarko>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: athoscribeiro, dkrejci, lbalhar, rmarko
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-flask-principal-0.4.0-10.fc24 python-flask-principal-0.4.0-10.fc23 python-flask-principal-0.4.0-10.fc25 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-07 23:23:31 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, 1333770    
Attachments:
Description Flags
Patch adding python 2 and 3 subpackages
none
Patch adding python 2 and 3 subpackages none

Description Tomas Orsava 2016-02-26 12:59:00 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 ok to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 24 as well.


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 Dominika Krejčí 2016-06-28 13:36:31 UTC
Hello Richard,

Do you need any help adding Python 3 support to the RPM?

If you need more instructions, a [guide] for porting Python-based RPMs is available.

[guide] http://python-rpm-porting.readthedocs.org/

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

Comment 3 Athos Ribeiro 2016-07-26 17:20:40 UTC
Created attachment 1184342 [details]
Patch adding python 2 and 3 subpackages

Hello, 

I prepared a patch adding python 2 and 3 subpackages.

Here is a COPR build: https://copr.fedorainfracloud.org/coprs/ribeiro/fedora/build/422859/

If you see any problem with the patch, let me know and I will work on it, thanks.

Comment 4 Lumír Balhar 2016-08-09 08:32:00 UTC
Hello Athos.

Your patch looks very good, thank you. I have only a few suggestions:

- You can define a global macro for source name and then use %{srcname} instead 'flask-principal' in the whole specfile.
- Please, move LICENSE file from %doc to %license.
- Global macro for summary is not necessary. You can fill summary into standard Summary: and then use %{summary} macro in subpackages.

Thank you one more time for your effort.

Comment 5 Athos Ribeiro 2016-08-10 03:33:13 UTC
Created attachment 1189463 [details]
Patch adding python 2 and 3 subpackages

(In reply to Lumír Balhar from comment #4)
> Hello Athos.
> 

Hello, 

> Your patch looks very good, thank you. I have only a few suggestions:
> 
> - You can define a global macro for source name and then use %{srcname}
> instead 'flask-principal' in the whole specfile.
> - Please, move LICENSE file from %doc to %license.
> - Global macro for summary is not necessary. You can fill summary into
> standard Summary: and then use %{summary} macro in subpackages.
> 
> Thank you one more time for your effort.

I applied the suggested changes, here is an updated patch.

COPR build: https://copr.fedorainfracloud.org/coprs/ribeiro/fedora/build/440028/

Comment 6 Lumír Balhar 2016-08-11 12:30:57 UTC
Hello.

Specfile looks good to me now. If maintainer has nothing against we can push it after a week.

Thank you.

Comment 7 Fedora Update System 2016-08-27 16:37:44 UTC
python-flask-principal-0.4.0-10.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-3fc31e713c

Comment 8 Fedora Update System 2016-08-27 16:38:11 UTC
python-flask-principal-0.4.0-10.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-c1537194c1

Comment 9 Fedora Update System 2016-08-27 16:38:32 UTC
python-flask-principal-0.4.0-10.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-9132744ddc

Comment 10 Richard Marko 2016-08-27 16:39:31 UTC
Thank you all!

Comment 11 Fedora Update System 2016-08-28 09:26:34 UTC
python-flask-principal-0.4.0-10.fc25 has been pushed to the Fedora 25 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-2016-9132744ddc

Comment 12 Fedora Update System 2016-08-28 16:19:13 UTC
python-flask-principal-0.4.0-10.fc24 has been pushed to the Fedora 24 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-2016-3fc31e713c

Comment 13 Fedora Update System 2016-08-28 16:19:36 UTC
python-flask-principal-0.4.0-10.fc23 has been pushed to the Fedora 23 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-2016-c1537194c1

Comment 14 Fedora Update System 2016-11-07 23:23:31 UTC
python-flask-principal-0.4.0-10.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2016-11-08 22:52:14 UTC
python-flask-principal-0.4.0-10.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 16 Fedora Update System 2016-11-19 21:00:21 UTC
python-flask-principal-0.4.0-10.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.