dominno / django-moderation

django-moderation is reusable application for Django framework, that allows to moderate any model objects.
BSD 3-Clause "New" or "Revised" License
269 stars 91 forks source link

Python 3 support? #98

Closed SamTShaw closed 10 years ago

SamTShaw commented 10 years ago

What are the current road-blocks to supporting Python 3?

SamTShaw commented 10 years ago

Well I gave it a go. I'm no expert in python 2 -> 3, especially where it can all be automated (e.g. at install time). A few tests needed changing because the order of field serialisation is different, but there were no major changes.

My changes are in the branch py3, Moustacha/django-moderation/

SamTShaw commented 10 years ago

Supporting Python 3 unfortunately removes the ability to support Django 1.3, but this shouldn't be too big of an issue as it's not officially supported by the Django Software Foundation. Only 1.4.8 and up is supported.

The other caveat is that only Python 3.3+ is supported. This is because some of the packages used do not support Python 3.2, and some syntax (like the u'' prefix for strings) changes were made to 3.3+ that make it easier to support 2.6+ and 3 in the same code.