Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1352490 - python-ceilometermiddleware: Provide a Python 3 subpackage
Summary: python-ceilometermiddleware: Provide a Python 3 subpackage
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-ceilometermiddleware
Version: 25
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Pradeep Kilambi
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: PYTHON3 PY3PATCH-AVAILABLE
TreeView+ depends on / blocked
 
Reported: 2016-07-04 09:19 UTC by Petr Viktorin (pviktori)
Modified: 2017-02-23 18:51 UTC (History)
3 users (show)

Fixed In Version: python-ceilometermiddleware-0.5.0-1.fc25
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-02-22 16:50:32 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
add Python 3 & update version (deleted)
2016-09-01 09:49 UTC, Dominika Krejčí
no flags Details | Diff

Description Petr Viktorin (pviktori) 2016-07-04 09:19:53 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].

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/

Comment 1 Jan Kurik 2016-07-26 04:55:41 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 25 development cycle.
Changing version to '25'.

Comment 2 Dominika Krejčí 2016-09-01 09:49:14 UTC
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).

Comment 3 Pradeep Kilambi 2016-09-14 18:34:39 UTC
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.

Comment 4 Pradeep Kilambi 2016-09-14 18:39:21 UTC
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.

Comment 5 Pradeep Kilambi 2016-09-14 19:03:12 UTC
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.

Comment 6 Dominika Krejčí 2016-09-21 14:58:51 UTC
> Does python3-pycadf exist? i get package not found. I can pull in
> python-pycadf though.

python3-pycadf exists in rawhide so far.

Comment 7 Fedora Update System 2016-11-02 20:14:49 UTC
python-ceilometermiddleware-0.5.0-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6027fb6110

Comment 8 Pradeep Kilambi 2016-11-02 20:15:59 UTC
submitted the patch and built packages. Thanks!

Comment 9 Fedora Update System 2016-11-05 18:57:35 UTC
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

Comment 10 Fedora Update System 2017-02-23 18:51:16 UTC
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.


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