Python 3 Support

I haven't used Plone in awhile. I think since around 2003.
Browsing/searching the forums here I cannot tell if Plone 5 supports add-on development in Python3.x
I do see where it's being considered but no actual status messages.

What is the current status of Python 3.6/3.7 support for developing addons for Plone 5?

Please see Porting Plone to Python 3 for details. In short: not yet in an official release.

Great.

So if I want to play with the bleeding edge which branch should I check out?

Use branch 5.2 of https://github.com/plone/buildout.coredev. Add a local.cfg and in that add the addon you want to migrate like this example:

[buildout]
extends = buildout-py3.cfg
custom-eggs += collective.easyform
test-eggs += collective.easyform [test]
auto-checkout += collective.easyform

[sources]
collective.easyform = git git@github.com:collective/collective.easyform.git branch=python3

Run buildout with

$ python3.7 -m venv .
$ ./bin/pip install -r requirements.txt
$ ./bin/buildout -c local.cfg

Start Plone with ./bin/wsgi or run tests with ./bin/test -s collective.easyform

2 Likes

small typo, it should be:

./bin/buildout -c local.cfg