balanced / balanced-python

Balanced API library in python.
MIT License
69 stars 49 forks source link

Make balanced-python compatible with python 3 #75

Open foxwoods369 opened 10 years ago

foxwoods369 commented 10 years ago

Hi all,

I recently started looking into developing a django website using python 3.3, but when looking at django-balanced, I found it isn't compatible with python 3, in part because balanced-python isn't compatible. I'm opening this issue to help gauge interest in updating balanced-python to python 3.

mjallday commented 10 years ago

I think we're definitely open to doing this. I actually attempted this about a year ago but gave up because one of the underlying libraries didn't support it at that time.

Here's a list of the requirements for the 1.1 branch of balanced-python, the first step would be to make sure all the libraries are compatible with python3.

It appears they are all at least installable since running pip install -r requirements.txt worked as expected.

mjallday commented 10 years ago

It's failing installing unittest2. There is an alternative package called unittest2py3k.

After working around that, it appears that wac uses some libraries (httplib for a start) which do not exist in python3. We're currently using an outdated version of wac so I think we're going to block on #74 before this can continue.

icook commented 10 years ago

I'm interested in this as well. I've done the minor patching to wac and balanced python needed to get imports working, but unable to run the test suite because of a few other incompatibilities. Would you accept a pull request that adds a dependency of six?

mahmoudimus commented 10 years ago

@mjallday unittest2 is not required because it has been merged in python2.7 +

mahmoudimus commented 10 years ago

@icook have you looked at using http://python-future.org/index.html ?

icook commented 10 years ago

I've heard of it but hadn't looked into it much. I'll look into using it instead of six since it looks like the more modern replacement.

mjallday commented 10 years ago

There's a great attempt happening over in #106