Red Hat Bugzilla – Bug 1464090
python-exabgp: Provide a Python 3 subpackage
Last modified: 2017-08-15 04:26:31 EDT
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 OK to do this in Rawhide only, however, it would be greatly
appreciated if you could push it to Fedora 26 as well.
If you need more instructions, a guide for porting Python-based RPMs is
available at .
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!
Thanks Iryna, will start on this early next week, which will coincide with the next upstream release due.
Spec URL: https://raw.githubusercontent.com/lukehinds/ExaBGP-Packaging/master/python-exabgp.spec
SRPM URL: https://github.com/lukehinds/ExaBGP-Packaging/raw/master/python-exabgp-4.0.1-1.fc25.src.rpm
Putting the spec / srpm so i can run fedora-review.
The above works ok with mock, but koji is failing: https://koji.fedoraproject.org/koji/taskinfo?taskID=20183757
I am quite sure the spec breaks the DRY principle a fair amount, but could not work out how to share areas of %file operations between both 2&3.
If you have any feedback, please do let me know.
This has been completed now:
thanks for adding a Python 3 subpackage.
I would like to point out that although you have added a %check section you are not running any tests. As far as I see, upstream runs tests with the following commands :
> nosetests-2 ./qa/tests/*_test.py
> nosetests-3 ./qa/tests/*_test.py
So you may add a build dependency on python2/3-nose and run them as well.
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.