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 1282161
Summary: | pylibmc has python 3 support | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Taranjeet Singh <reachtotj> | ||||||
Component: | python-pylibmc | Assignee: | Tomas Orsava <torsava> | ||||||
Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 23 | CC: | dkrejci, kumarpraveen.nitdgp, metherid, mhroncok, pj.pandit, torsava | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | python-pylibmc-1.5.1-1.fc25 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-05-11 09:41:29 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1285816, 1333770 | ||||||||
Attachments: |
|
Description
Taranjeet Singh
2015-11-15 07:35:39 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 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 Hello Rahul, 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. [guide] http://python-rpm-porting.readthedocs.org/en/latest/index.html I am busy at the moment. If anyone wants to go ahead and commit any changes required, feel free to. Thanks! Created attachment 1152338 [details] Patch to update to latest version and add Python 3 support Hi Rahul, here is the change needed to add Python 3 support. Could you please review it and do the update? Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=13850479 (In reply to Dominika Krejčí from comment #4) > Created attachment 1152338 [details] > Patch to update to latest version and add Python 3 support > > Hi Rahul, > here is the change needed to add Python 3 support. Could you please review > it and do the update? > > Koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=13850479 I'm not sure %filter_provides_in can be used multiple times. But the thing it's trying to achieve is not necessary anyway, so just remove that part(s). Also why don't modernize it a bit and use %py3_install etc.? Created attachment 1153953 [details]
Patch to update to latest version and add Python 3 support (better version)
Thanks for comments, Miro. There is an upgraded version of the patch.
The patch looks good to me. Here's a successful scratch build: http://koji.fedoraproject.org/koji/taskinfo?taskID=13921283 Going to push and build it. Tested in rawhide mock, everything checks out! Thanks everybody! |