Bug 1014583
Summary: | python-pycurl: Support Python 3 | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miro Hrončok <mhroncok> |
Component: | python-pycurl | Assignee: | Kamil Dudka <kdudka> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 20 | CC: | a.badger, frh+fedora, home, jpopelka, kdudka |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | python-pycurl-7.19.3-1.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-01-10 14:36:22 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: | 984711, 1029565 | ||
Bug Blocks: | 985288, 1024819 |
Description
Miro Hrončok
2013-10-02 11:15:49 UTC
Note: do not follow this portion of the advice as it is against the Packaging Guidelines: "When upstream is dead or unwilling to support Python 3, you'll need to patch this package on Fedora level. Try to avoid this as much as you can, but use it, if it's the last option." If you are in this situation, you'll essentially be forking upstream in order to produce a python3 port. In that situation, the proper thing to do is to create a new package with the python3 port. It would be even better to create the proper upstream infrastructure as well (new upstream scm and issue tracker) but that isn't 100% required by the guidelines. (In reply to Toshio Ernie Kuratomi from comment #1) > Note: do not follow this portion of the advice as it is against the > Packaging Guidelines: "When upstream is dead or unwilling to support Python > 3, you'll need to patch this package on Fedora level. Try to avoid this as > much as you can, but use it, if it's the last option." Pycurl upstream is NOT dead. A new release of pycurl was announced last week: http://curl.haxx.se/mail/curlpython-2013-09/0014.html work in progress: https://github.com/kdudka/pycurl/compare/python3 Great, thanks. Maybe you've already used that, but juts in case you didn't know: https://aur.archlinux.org/packages/python3-pycurl/ http://packages.ubuntu.com/quantal/python3-pycurl https://sourceforge.net/p/pycurl/patches/12/ Thanks for the pointer! I am trying to rebase the patch against the latest upstream version of pycurl and make it working... Here is the result of my attempt to rebase the patch: https://github.com/kdudka/pycurl/compare/python3 The problem is that the python2 API of pycurl relies on the PyString and PyFile types, which do not exist in python3 any more and have no drop-in replacements. The upstream test-suite depends on cherrypy. Unfortunately, python3-cherrypy seems to be a dead package on Fedora, waiting for a maintainer. See bug 984711. Cherrypy is being removed in F20. If you'll note, that bug is assigned to 'orphan maintainer' - there's no one actually maintaining that package currently. It's been dropped from Fedora 20. Received this from Bill Nottingham. So we need to find a new maintainer for it and get the package back to Fedora. Taking it. (In reply to Miro Hrončok from comment #10) > Taking it. That was fast :) Thanks! There is a new upstream patch providing the python 3 support: http://curl.haxx.se/mail/curlpython-2013-12/0000.html I have imported the patch into Fedora: http://pkgs.fedoraproject.org/cgit/python-pycurl.git/tree/pycurl-7.19.0.2-pyton3.patch?h=private-kdudka-python3 ... and built a scratch build with the patch applied: http://koji.fedoraproject.org/koji/taskinfo?taskID=6272214 Great I have updated my private branch to the latest upstream version: http://pkgs.fedoraproject.org/cgit/python-pycurl.git/tree/pycurl-7.19.0.3-pyton3.patch?h=private-kdudka-python3 ... and built a new scratch build from it: http://koji.fedoraproject.org/koji/taskinfo?taskID=6353202 I am going to merge it into rawhide once the upstream version 7.19.3 is out: http://curl.haxx.se/mail/curlpython-2013-12/0031.html python-pycurl-7.19.3-2.fc21 provides the python 3 support as distributed by pycurl upstream so I am closing this bug as resolved. From now on, please file any issues with the python3 support of pycurl as separate bugs. Would it be possible to also put this in F20? Yes, it would. Are you going to depend on python3-pycurl in a Fedora package? (In reply to Kamil Dudka from comment #17) > Yes, it would. Are you going to depend on python3-pycurl in a Fedora > package? No, it's just that I would like to use it for some personal scripts. python-pycurl-7.19.3-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/python-pycurl-7.19.3-1.fc20 Thank you so much for putting it in F20, Kamil. I've been testing it today, and it's working great! Great! Thanks for testing it, Frederik. python-pycurl-7.19.3-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |