eudicots / Cactus

Static site generator for designers. Uses Python and Django templates.
BSD 3-Clause "New" or "Revised" License
3.47k stars 314 forks source link

Python 3 support #93

Closed gaborbernat closed 7 years ago

gaborbernat commented 10 years ago

Is this on the roadmap? What problems are in making this happen?

krallin commented 10 years ago

Cactus v3 (check the branch) should already have support for it, but you will not be able to deploy to S3 - the issue here being that boto does not support Python 3. On Jun 28, 2014 1:25 PM, "Gábor Bernát" notifications@github.com wrote:

Is this on the roadmap? What problems are in making this happen?

— Reply to this email directly or view it on GitHub https://github.com/koenbok/Cactus/issues/93.

jonasvp commented 9 years ago

Installing the v3 branch under Python 3.4 I'm getting a lot of errors about except clauses:

File "virtualenvs/anziehhilfe/lib/python3.4/site-packages/cactus/plugin/loader.py", line 112
    except Exception, e:
                    ^
SyntaxError: invalid syntax

Is anyone working on this already? If not, I'll get started on a pull request.

krallin commented 9 years ago

Hey Jonas,

Looks like this slipped through. I think a good approach would be to make the tox test environment support Python 3 (might be some work to do), that'll make it easier to rat out those issues).

Let me know if I can help.

jonasvp commented 9 years ago

Turns out I won't have time to work on this. If anyone else is looking at this issue, feel free to take over.

krallin commented 9 years ago

See: https://github.com/koenbok/Cactus/pull/115

Please test, let me know if that works for you