Bug 1393781 - python-openstack-nose-plugin: Switch to Python 3
Summary: python-openstack-nose-plugin: Switch to Python 3
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-openstack-nose-plugin
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthias Runge
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3 PY3PATCH-AVAILABLE
TreeView+ depends on / blocked
 
Reported: 2016-11-10 10:37 UTC by Iryna Shcherbina
Modified: 2016-11-14 14:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-11-14 08:22:30 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Spec file with a Python 3 subpackage (3.30 KB, patch)
2016-11-11 18:47 UTC, Jan Beran
no flags Details | Diff
Fixed spec file with a Python 3 subpackage (3.30 KB, patch)
2016-11-14 10:46 UTC, Jan Beran
no flags Details | Diff

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


Note You need to log in before you can comment on or make changes to this bug.