Red Hat Bugzilla – Bug 1309784
python-libcloud: Provide a Python 3 subpackage
Last modified: 2018-03-05 04:42:04 EST
Upstream, 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!
This bug appears to have been reported against 'rawhide' during the Fedora 24 development cycle.
Changing version to '24'.
More information and reason for this action is here:
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.
Created attachment 1158546 [details]
Patch to update spec for python3
Please find patch to update the spec file for this package to build a python3 version.
(In reply to philip.worrall from comment #3)
> Created attachment 1158546 [details]
> Patch to update spec for python3
Could you create a scratch build and test the package maybe in mock, so we can verify that the python 3 subpackage works as expected?
Your patch looks good to me, but it needs to be rebased to current specfile version. Could you also provide scratch build and test it in mock?
Then I can move it forward to push.
Is there any problem with rebase? Do not hesitate to contact me for any help.
Created attachment 1198583 [details]
Rebased patch to update spec for python3
Hi, I have rebased the patch and also fixed rpmlint error and warning about demos.
Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=15527540
Your patch looks good to me, thanks.
If maintainer has nothing against, we can push this change after a week.
Have a nice day.
Created attachment 1221154 [details]
2. rebased patch to update spec for Python 3
Hi, there is a new rebased patch. :)
+ koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=16474811
Fixed for rawhide, please reopen the bug if you require this change for F25 as well.
I am reopening the ticket, as since commit  building python3-libcloud was disabled for Fedora.
Given that python3-pytest-runner is available, I do not see the reason for this change. Could you please provide any details?
Bump, I need the python 3 package.
Without the python-pytest-runner package mentioned in BuildRequires while building it was trying to pull the dependency from pypi and hence failed. So, I mentioned the package name explicitly in the specfile.
I have updated the specfile to build the python3-libcloud package.