apple / ccs-pykerberos

Python Kerberos library used by CalendarServer
https://www.calendarserver.org
Apache License 2.0
117 stars 65 forks source link

PyKerberos should be made Python 2 and 3 compatible #29

Closed macosforgebot closed 10 years ago

macosforgebot commented 11 years ago

cuidighth@… originally submitted this as ticket:815


PyKerberos (https://svn.calendarserver.org/repository/calendarserver/PyKerberos/trunk/) is not Python 3 compatible. The main code is 100% compatible, but the setup.py uses the long deprecated (since 2.6, which was released in jurassic period or so) commands module which causes problems as it does not exist anymore. Changing the import to subprocess works for 3.x, but the backwards compatibility requires some work (I have no idea what as my Python skills are unfortunately still too feeble).

I would kindly ask someone to work on a version that works for both Python 2.x and 3.x as it is used by large amounts of projects via pypi (see https://pypi.python.org/pypi/kerberos/). Those projects are sadly at this moment unable to upgrade their Python versions due a minor problem in this package. PyKerberos is used because it offers the most convenience API for interfacing with GSSAPI/Kerberos for web based services, and it has been used with basically every major Python based web development framework.

I contacted earlier Roland (mentioned as the maintainer at pypi), and he said he doesn't really maintain the package. Apparently this should be done by that CalendarServer project and/or Apple.

macosforgebot commented 11 years ago

@wsanchez originally submitted this as comment:1:⁠ticket:815


We'd be happy to look at patches to fix this, but I don't know what anyone currently working on PyKerberos has any incentive to spend time working on getting it to work with Python 3; CalendarServer can't use Python 3 until Twisted works on Python 3.

macosforgebot commented 10 years ago

mcepl@… originally submitted this as comment:2:⁠ticket:815


Isn't this is a duplicate of #⁠798 ?

macosforgebot commented 10 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:815


mcepl… yes, it is, thanks.