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]. 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 entirely. It's OK to do this in Rawhide only, however, it would be greatly appreciated if you could push it to Fedora 24 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/
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle. Changing version to '25'.
Created attachment 1196673 [details] add Python 3 & update version Hi Pradeep, here is the change needed to add Python 3 support and update the version. Could you please review it and do the update? There is an issue on F24 - problem witch BuildRequire: python-pycadf, it can not be found. On 25 and rawhide works fine. Koji scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=15461555 Also tested in Mock (fedora-25-x86_64, fedora-rawhide-x86_64).
Thanks. I just applied your patch and tried building and i get a error with BuildRequires: python3-pycadf . Does python3-pycadf exist? i get package not found. I can pull in python-pycadf though.
also if i remove python3-pycadf build requires it moves forward but fails with size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' + /usr/bin/python2 setup.py build '--executable=/usr/bin/python2 -s' ERROR:root:Error parsing Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/pbr/core.py", line 109, in pbr attrs = util.cfg_to_args(path) File "/usr/lib/python2.7/site-packages/pbr/util.py", line 261, in cfg_to_args wrap_commands(kwargs) File "/usr/lib/python2.7/site-packages/pbr/util.py", line 541, in wrap_commands for cmd, _ in dist.get_command_list(): File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 447, in get_command_list cmdclass = ep.resolve() File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2235, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/lib/python2.7/site-packages/testrepository/setuptools_command.py", line 33, in <module> from testrepository import commands File "/usr/lib/python2.7/site-packages/testrepository/commands/__init__.py", line 40, in <module> import subunit File "/usr/lib/python2.7/site-packages/subunit/__init__.py", line 141, in <module> from iso8601 import iso8601 ImportError: cannot import name iso8601 error in setup command: Error parsing /home/pkilambi/rpmbuild/BUILD/ceilometermiddleware-0.5.0/setup.cfg: ImportError: cannot import name iso8601 error: Bad exit status from /var/tmp/rpm-tmp.aTEsgT (%build) looks like we are missing python-iso8601 requires too.
ok ignore the above iso8601 error, looks like i needed to update pbr. If we can confirm on python3 package for pycadf, i'll push this out and build.
> Does python3-pycadf exist? i get package not found. I can pull in > python-pycadf though. python3-pycadf exists in rawhide so far.
python-ceilometermiddleware-0.5.0-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6027fb6110
submitted the patch and built packages. Thanks!
python-ceilometermiddleware-0.5.0-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6027fb6110
python-ceilometermiddleware-0.5.0-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.