Red Hat Bugzilla – Bug 1311520
python-cmdln: Provide a Python 3 subpackage
Last modified: 2016-04-20 10:11:17 EDT
Upstream (versions 2.x), this software supports Python 3.
Please provide a Python 3 package for Fedora.
According to the Python packaging guidelines , 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 .
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
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!
Andrea, do you need any help with the update and the Python 3 subpackage?
Hey Petr! I should be able to push an updated package to rawhide today. One question though: how do you want me to perform main package to python2-cmldn transition when it comes to move Py2 files over to it?
Right now the main package (python-cmdln) does contain the Python 2 files and migrating to the new layout would mean leaving the main package itself with no files at all. My idea would be to add a dependency between python-cmdln and python2-cmdln for default installations while leaving users the freedom to install the python3 package too if they really want to.
What do you think?
Seems the provides are automagically set:
/var/lib/mock/fedora-rawhide-x86_64/result $ rpm -qp --provides python2-cmdln-2.0.0-1.fc25.noarch.rpm
python-cmdln = 2.0.0-1.fc25
python2-cmdln = 2.0.0-1.fc25
That means we shouldn't need any specific dependency in place between the old and new package. I did commit all the changes , can you please verify it looks OK before I go ahead and update the package?
Right, "Provides: python-cmdln" is set by the "python_provide" macro.
The changes look OK!
Thanks for your effort!
You're welcome! Package is finally built . Let me know if you want me to build it for any other Fedora release.