Bug 1393781

Summary: python-openstack-nose-plugin: Switch to Python 3
Product: [Fedora] Fedora Reporter: Iryna Shcherbina <ishcherb>
Component: python-openstack-nose-pluginAssignee: Matthias Runge <mrunge>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ishcherb, itamar, jberan, mrunge
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-14 08:22:30 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 file with a Python 3 subpackage
none
Fixed spec file with a Python 3 subpackage none

Description Iryna Shcherbina 2016-11-10 10:37:36 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].

Since users aren't expected to import this tool from Python code,
you can just switch to /usr/bin/python3. Alternatively, if you want or
need to keep a Python 2 version, the current best practice is to provide
subpackages -- this is called "Common SRPM" in the guidelines.

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


If you need more instructions, a guide for porting Python-based RPMs is
available at [2].
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
[2] http://python-rpm-porting.readthedocs.io/

Comment 1 Jan Beran 2016-11-11 18:47:01 UTC
Created attachment 1219850 [details]
Spec file with a Python 3 subpackage

Hi Matthias, please could you review the patch?

Comment 2 Matthias Runge 2016-11-14 08:22:30 UTC
Thanks for the patch, merged and rebuilt.

Comment 3 Iryna Shcherbina 2016-11-14 10:09:59 UTC
Hello Matthias,

please note that python3- subpackage has a dependency on `python2-colorama` introducing dependency on both Python 3 and Python 2. I would ask you to make a small change and make it `python3-colorama`.

Comment 4 Jan Beran 2016-11-14 10:46:32 UTC
Created attachment 1220351 [details]
Fixed spec file with a Python 3 subpackage

Hi Iryna and Matthias,

it was my mistake (python2-colorama in python3 subpackages), I have fixed the typo in the attached patch. Iryna, thank you!

Comment 5 Matthias Runge 2016-11-14 14:58:55 UTC
thanks for the heads-up, pushed and issued a build