-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 3 support #47
Comments
Next release will be python3 compatible. Probably at the end of the month. |
ok, finally got most of the bits to port restkit to py3. restkit will use http-parser in next release which support py3. net restkit will be online in 1 or 2 weeks with python3 support and somme enhancements. This version will also drop support for py2.5 . |
Is there a status update on python 3 support ? I was thinking of hacking up a small program this weekend to learn python3 and was thinking of using restkit for REST stuff. (otherwise i'll just fall back to python2 and port when available) |
available in 021104a . |
I tried cloning 021104a and installing it, but when I import it in python3 there are a lot of errors. Exceptions still use python2 syntax and imported modules still use python2 names. Are you sure that's the right commit ? |
you can't just import you need toiinstall it or patch it manually with
On Monday, June 20, 2011, gelendir
|
Are you interested in using six (http://packages.python.org/six/) to make a version which doesn't need patching with 2to3? I've just done that for restpose-py, and it seemed a reasonable approach, though there may be harder issues to fix for restkit. |
Scratch that comment - I see that installing does the 2to3 conversion - clever, and cunning. I can't get it to work yet, though (though it does import ok once installed); may be I'm calling it wrong. |
On Sunday, July 24, 2011, rboulton <
|
Cool - I look forward to testing it. |
seems to install fine with Python 3 (3.2.2 here), but a demo that tries OAuth fails with:
the code is :
|
regarding the last exception, it seems to be created by several occurences of body='' which is not translated by 2to3. |
Hi, when will be ready py3 support? |
sometimes next week. i've most of the tests passing on a test branch here, but I need to do a small refactoring first. |
@benoitc thank you, if you need any help please let me know I am using restkit as base of one project. |
restkit seems to work in Python 3 if I run 2to3 manually, but when I install restkit from PyPI that doesn't happen – should it? (I don't see any 2to3 setup in setup.py) |
There is the 3 years old version of restkit on PyPI. Please, do you consider to finalize Python 3 version, and update PyPI? |
The py3 support actually only requires a few things to be done, it seems:
Haven't actually tested this yet, but import is no longer failing :) |
There is a pull request to support python 3. Just not finished. |
Is there any roadmap for python 3 support? I have some scripts that I might like to convert to py3k soon but are using restkit. I may be able to help somewhat with the translation, but I'm not sure if I can properly dedicate the time. Since it's pure python (as far as I can tell), it shouldn't take much effort to make it compatible.
The text was updated successfully, but these errors were encountered: